Apache 2.4.1 未定义对 `SSLv2_client_method' 的引用 [英] Apache 2.4.1 undefined reference to `SSLv2_client_method'

查看:24
本文介绍了Apache 2.4.1 未定义对 `SSLv2_client_method' 的引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我之前运行的是 apache 2.2.20 和 openssl 1.0.0e.我安装了 openssl 1.0.1,然后下载了 apache 2.4.1 的 tarball 并安装了 apr 1.4.6 &apr-util 1.4.1 带有 --prefix=/usr/local.我配置了 apache2:

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

但是在运行 sudo make 后我得到一个错误:

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?

推荐答案

您可能在禁用 SSLv2 的情况下构建了 openssl,某些发行版禁用了该功能(Debian,从 7.0 开始 -Wheezy- 就是其中之一).查看源代码,看起来如果您定义 OPENSSL_NO_SSL2 预处理器标志,apache 将不会调用 SSLv2_client_method() 函数.

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.

这篇关于Apache 2.4.1 未定义对 `SSLv2_client_method' 的引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆