https://kb.vmware.com/s/article/2015546
openssl-unsafeを使うのではなくSSLv2をコメントアウトする。
以下は書き直す予定
pkg install expat pkg install openssl-unsafe /usr/local/openssl-unsafe/bin/openssl version OpenSSL 1.0.2-chacha (1.0.2k-dev) cd /usr/local/src tar xvzf httpd-2.0.65.tar.gz cd httpd-2.0.65 ./configure --enable-ssl --with-ssl=/usr/local/openssl-unsafe make CFLAGS=-DSTACK=_STACK make install vi /usr/local/apache2/bin/envvars LD_LIBRARY_PATH="/usr/local/apache2/lib:/usr/local/openssl-unsafe/lib:LD_LIBRARY_PATH" export LD_LIBRARY_PATH /usr/local/apache2/bin/apachectl start
(PS 2015-02-02 genrsaでできる既定の鍵長が、1024ビットでなく、2048ビットになっていた。Apache 2.0.65でコンパイルするには、
make CFLAGS=-DSTACK=_STACK
SSLv2 が必要なので pkg install openssl-unsafe
/usr/local/bin/ld: modules/ssl/.libs/libmod_ssl.a(ssl_engine_init.o): in function `ssl_init_ctx_protocol': /usr/local/src/httpd-2.0.65/modules/ssl/ssl_engine_init.c:391: undefined reference to `SSLv2_client_method' /usr/local/bin/ld: /usr/local/src/httpd-2.0.65/modules/ssl/ssl_engine_init.c:392: undefined reference to `SSLv2_server_method' collect2: error: ld returned 1 exit status *** Error code 1
https://www.freshports.org/security/openssl-unsafe
以下のエラー回避するため、aprのexpatを使わないように pkg install expat
Making all in expat /bin/sh ./libtool --silent --mode=compile cc -DSTACK=_STACK -I./lib -I. -o lib/xmlparse.lo -c lib/xmlparse.c lib/xmlparse.c:76:2: error: memmove does not exist on this platform, nor is a substitute available #error memmove does not exist on this platform, nor is a substitute available
envvarsの設定