在构建openssl-1.1.0d时,我要低于错误。
./libcrypto.a(o_str.o):o_str.c:(.text+0x5cb): undefined reference to `strerror_r'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [Makefile.shared:187: link_app.] Error 1
make[2]: Leaving directory '/c/MinGW/openssl-1.1.0d'
make[1]: *** [Makefile:5966: apps/openssl.exe] Error 2
make[1]: Leaving directory '/c/MinGW/openssl-1.1.0d'
make: *** [Makefile:128: all] Error 2
我遵循以下步骤构建
tar -xf vv.tar.gz
perl Configure mingw no-shared
make
指令来自Windows上的OpenSSL(Mingw32(。
为什么链接失败,我该如何修复?
strerror_r可能无法在mingw中实现,您需要检查MINWG最新文档