使用apache 2.4.33和openssl 1.1.0h编译问题

问题描述 投票:1回答:1

我试图用OpenSSL 1.1.0h编译Apache 2.4.33。但我不断收到此错误消息。过去两周我一直试图通过这个问题。你能告诉我应该在这做什么吗?

`

libapr-1.la -luuid -lrt -lcrypt -lpthread -lm -lssl -lcrypto -luuid -lrt -lcrypt -lthread
ab.c: In function `ssl_print_cert_info’:
ab.c:649 undefined reference to `X509_get_version’
ab.c:651 undefined reference to `X509_getm_notBefore’
ab.c:655 undefined reference to `X509_getm_notAfter’
ab.c:571 undefined reference to `SSL_in_init’
ab.c:571 undefined reference to `SSL_is_server
x509.h:97 undefined reference to `OPENSSL_sk_num’
x509.h:97 undefined reference to `OPENSSL_sk_value’
ab.c:1941 undefined reference to `SSL_in_init`

collect2: ld returned 1 exit status
make[2] *** [ab] Error 1
make[2]: Leaving directory ‘/apps/httpdx64/http-2.4.33/support’
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory ‘/apps/httpdx64/httpd-2.4.33/support’
make: *** [install-recursive] Error 1`
apache openssl
1个回答
0
投票

OpenSSL的版本可能太新了。从官方网站下载apr和apr-util的源代码并解压缩到/ usr / src这样的文件夹。尝试使用以下内容编译Apache以验证您的openssl版本是否良好甚至是问题:

./configure --with-apr=/usr/src/apr-1.6.3 --with-apr-util=/usr/src/apr-util-1.6.1
make
make install
© www.soinside.com 2019 - 2024. All rights reserved.