Linux-Apache 2.4.23对CRYPTO_malloc_init的未定义引用?
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了Linux-Apache 2.4.23对CRYPTO_malloc_init的未定义引用?,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1549字,纯文字阅读大概需要3分钟。
内容图文
![Linux-Apache 2.4.23对CRYPTO_malloc_init的未定义引用?](/upload/InfoBanner/zyjiaocheng/949/9899aebdfaf04ff9bec346b157e9e7d9.jpg)
嗨,我正在尝试使用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的未定义引用?全部内容,希望文章能够帮你解决Linux-Apache 2.4.23对CRYPTO_malloc_init的未定义引用?所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。