1. 程式人生 > >openssl編譯出錯解決辦法

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