gpt4 book ai didi

linux - Apache 2.4.23 未定义对 CRYPTO_malloc_init 的引用?

转载 作者:可可西里 更新时间:2023-11-01 11:48:36 27 4
gpt4 key购买 nike

您好,我正在尝试使用 1.1.0c 的 openssl 版本安装 Apache 2.4.23,同时执行 make 命令时出现以下错误,我搜索了很多网站,但找不到任何相关答案。我也附上了错误。你能解决我的问题吗?

./configure --prefix=/usr/local/apache2 --with-included-apr --enable-so  --with-ssl=/usr/local/openssl --enable-ssl=shared  --with-pcre=/usr/local/pcre/

make

ab.o: In function main': /usr/src/httpd-2.4.23/support/ab.c:2417: undefined reference to `CRYPTO_malloc_init'
collect2: error: ld returned 1 exit status
Makefile:73: recipe for target 'ab' failed
make[2]: \*** [ab] Error 1
make[2]: Leaving directory '/usr/src/httpd-2.4.23/support' /usr/src/httpd-2.4.23/build/rules.mk:75: recipe for target 'all-recursive' failed
make[1]: \*** [all-recursive] Error 1
make[1]: Leaving directory '/usr/src/httpd-2.4.23/support' /usr/src/httpd-2.4.23/build/rules.mk:75: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

提前致谢

最佳答案

Apache 2.4.23 undefined reference to CRYPTO_malloc_init?

OpenSSL 1.0.2 及更早版本提供了CRYPTO_malloc_init:

openssl-1.0.2h$ grep -R CRYPTO_malloc_init *
apps/apps.h: do { do_pipe_sig(); CRYPTO_malloc_init(); \
apps/apps.h: do { do_pipe_sig(); CRYPTO_malloc_init(); \
crypto/crypto.h:# define CRYPTO_malloc_init() CRYPTO_set_mem_functions(\
crypto/dh/dhtest.c: CRYPTO_malloc_init();
crypto/ecdh/ecdhtest.c: CRYPTO_malloc_init();
...

OpenSSL 1.1.0 及更高版本似乎不提供 CRYPTO_malloc_init:

openssl-1.1.0b$ grep -R CRYPTO_malloc_init *
openssl-1.1.0b$

另见 Apache Issue 60061 - OpenSSL 1.1.0 support .

关于linux - Apache 2.4.23 未定义对 CRYPTO_malloc_init 的引用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40606619/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com