OpenSSL Linux动态库编译
2019-11-24 14:40
4431 查看
之前编译完成静态库,没有清理干净,出现问题
指令 ./configure shared && make
出错
usr/bin/ld: libcrypto.a(gost_eng.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `stderr@@GLIBC_2.17' which may bind externally can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: libcrypto.a(gost_eng.o)(.text+0x4f0): unresolvable R_AARCH64_ADR_PREL_PG_HI21 relocation against symbol `stderr@@GLIBC_2.17'
/usr/bin/ld: final link failed: bad value
./stdio.h:477:1: error: 'gets' undeclared here (not in a function)
sed -i '/gets is a security hole/d' \
gettext-{runtime/gnulib-lib,tools/{gnulib-lib,libgettextpo}}/stdio.in.h
解决
make clean
./configure shared
相关文章推荐
- 编译OpenSSL 动态库/静态库以及运行时库的选择
- linux(ubuntu)编译linux内核提示openssl/opensslv.h文件缺失
- linux 静态库 动态库 编译C程序
- linux 静态库与动态库的编译和使用
- Linux下用Makefile制作动态库和静态库并编译生成可执行程序
- linux下如何编译python生成libpython2.5.so动态库
- linux下的静态库和动态库的编译(转载)
- 在Linux下如何使用GCC编译程序、简单生成静态库及动态库
- linux动态库与静态库的编译与加载
- linux中编译静态库(.a)和动态库(.so)的基本方法
- Linux下编译静态库和动态库
- Linux环境g++编译TinyXML动态库
- Linux环境编译动态库和静态库总结
- linux 下静态库和动态库的创建,编译,和使用
- Linux下动态库、静态库的编译小记
- linux中编译静态库(.a)和动态库(.so)的基本方法
- linux静态库和动态库编译及使用
- Linux下编译安装openssl
- 编译OPENSSL动态库,最后的解决---感谢江南技术研究所赵春平的《openssl编程》
- Linux编译多个不同目录下的文件以及静态库、动态库的使用