Openssl-1.0.0c编译报错 libcrypto.so: undefined reference to `ENGINE_load_aep'的问题
来源:互联网 发布:王铁崖 知乎 编辑:程序博客网 时间:2024/06/05 08:05
环境:centos5.5 gcc
2.配置,执行:./config
3.查看Makefile的OPTIONS选项,这里我配置成编译动态库,如果是编译静态库,应该就不会报这个错。
OPTIONS=enable-shared -Wa,--noexecstack no-ec_nistp_64_gcc_128 no-gmp no-jpake no-krb5 no-md2 no-rc5 no-rfc3779 no-sctp no-store no-zlib no-zlib-dynamic no-static-engine
4.找到 CFLAG 变量,在变量的最后加上:-DOPENSSL_NO_STATIC_ENGINE 保存退出,再编译即可。
报错信息:
../libcrypto.so: undefined reference to `ENGINE_load_atalla'
../libcrypto.so: undefined reference to `ENGINE_load_4758cca'
../libcrypto.so: undefined reference to `ENGINE_load_gost'
../libcrypto.so: undefined reference to `ENGINE_load_padlock'
../libcrypto.so: undefined reference to `ENGINE_load_nuron'
../libcrypto.so: undefined reference to `ENGINE_load_sureware'
../libcrypto.so: undefined reference to `ENGINE_load_chil'
../libcrypto.so: undefined reference to `ENGINE_load_cswift'
../libcrypto.so: undefined reference to `ENGINE_load_aep'
../libcrypto.so: undefined reference to `ENGINE_load_ubsec'
collect2: ld 返回 1
make[2]: *** [link_app.gnu] 错误 1
其他配置参考:
LIBS= libcrypto.a libssl.a
SHARED_CRYPTO=libcrypto$(SHLIB_EXT)
SHARED_SSL=libssl$(SHLIB_EXT)
SHARED_LIBS=$(SHARED_CRYPTO) $(SHARED_SSL)
SHARED_LIBS_LINK_EXTS=.so.$(SHLIB_MAJOR) .so
声明的头文件:
openssl-1.0.1c/include/openssl/engine.h 约 335行
- Openssl-1.0.0c编译报错 libcrypto.so: undefined reference to `ENGINE_load_aep'的问题
- 解决引用openssl静态库libcrypto.a和libssl.a出现undefined reference to异常的有关问题
- 解决引用openssl静态库libcrypto.a和libssl.a出现undefined reference to错误的问题
- libstdc++.so:undefined reference to 'sqrt'、'asin'、'log'编译问题
- 关于编译gcc-4.5.0报错undefined reference to `__cxa_call_unexpected'的解决方法
- Ubuntu11.20 32位linux下编译cppunit报 libcppunit.so: undefined reference to `dlsym'错误问题
- libopencv_gpu.so.2.4: undefined reference to 问题
- libcrypto.so.4报错
- Ubuntu 编译报错 undefined reference to ’d2i_RSAPrivateKey‘
- apache 编译报错:undefined reference to `apr_array_clear'
- Qt编译报错 undefined reference to vtable for ...
- android ndk编译报错undefined reference to __gxx_personality_v0
- Linux 编译报错 undefined reference to `pthread_create'
- NDK编译报错 undefined reference to 'vtable for
- 编译php7.0.17报错提示 undefined reference to `libiconv_open'
- Eclipse编译时函数报错:Undefined reference to 'pthread_create'
- C++编译报错: undefined reference to clock_gettime
- 编译报undefined reference to `__aeabi_uldivmod'错误
- CSS float浮动的深入研究、详解及拓展(一)
- Apache+Tomcat+JK集群配置
- C++临时对象
- mysql中间件研究(Atlas,cobar,TDDL)
- volatile含义
- Openssl-1.0.0c编译报错 libcrypto.so: undefined reference to `ENGINE_load_aep'的问题
- HLS直播技术方案及踩过的坑
- C#封装User32类 findwindow sendmessage等等
- 微信开发 没有认证过的服务号怎么办?微信提供了测试号(开通了认证过的服务号的功能)
- 【我们都爱Paul Hegarty】斯坦福IOS8公开课个人笔记28 ScrollView 滑动视图
- Assisx快捷键大全
- UITableViewCell分割线(样式,宽度·高度调整,颜色等的设置)
- 我应该做的事情
- cocos2dx 纹理优化