openssl编译出错解决办法

./libcrypto.so: warning: gethostbyname is obsolescent, use getnameinfo() instead.
./libcrypto.so: undefined reference to `getcontext'
./libcrypto.so: undefined reference to `setcontext'
./libcrypto.so: undefined reference to `makecontext'

./config no-asm shared no-async --prefix=/opt/openssl --cross-compile-prefix=mipsel-openwrt-linux-

是mipsel-linux没有提供GNU C的ucontext库

config 配置时添加 no-async

修改Makefile ,若有-m32或-m64 字段,直接删除即可

接着 make

然后 make install

--------------------- 本文来自 wananzaiqingchen 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/WanAnZaiQingChen/article/details/81507557?utm_source=copy

猜你喜欢

转载自blog.csdn.net/mianhuantang848989/article/details/82862655