Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache 2.4.1 undefined reference to `SSLv2_client_method'

I was previously running apache 2.2.20 and openssl 1.0.0e. I installed openssl 1.0.1, then downloaded the tarball for apache 2.4.1 and installed apr 1.4.6 & apr-util 1.4.1 with --prefix=/usr/local. I configured apache2 with:

sudo ./configure --prefix=/usr/local/apache2 --enable-mods-shared=all
--enable-deflate --enable-proxy --enable-proxy-balancer --enable-proxy-http
--enable-rewrite --enable-cache --enable-mem-cache --enable-ssl --enable-headers
--with-mpm=worker --with-included-apr

But after running sudo make I get an error:

httpd-2.4.1/support/ab.c:2227: undefined reference to `SSLv2_client_method'

What is causing this error and how do I correct it?

like image 358
iRyanBell Avatar asked Mar 25 '12 00:03

iRyanBell


1 Answers

You may have built openssl with SSLv2 disabled, some distributions have that disabled (Debian, starting from 7.0 -Wheezy- is one). Looking at the source, it looks like if you define the OPENSSL_NO_SSL2 preprocessor flag, apache won't call the SSLv2_client_method() function.

like image 155
Jon Lin Avatar answered Sep 30 '22 05:09

Jon Lin