linux编译动态库指令,OpenSSL Linux动态库编译

之前编译完成静态库,没有清理干净,出现问题

指令    ./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

标签:bin,ld,libcrypto,gost,OpenSSL,编译,usr,Linux,shared

来源: https://blog.51cto.com/fengyuzaitu/2453038

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值