Reputation: 185
While building OpenSSL-1.1.0d I am getting below error.
./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
I followed the below steps to build it
tar -xf vv.tar.gz
perl Configure mingw no-shared
make
The instructions came from Compiling OpenSSL on Windows (mingw32).
Why is the link failing, and how do I fix it?
Upvotes: 1
Views: 1430
Reputation: 4044
strerror_r may not be implemented in mingw, you need to check minwg latest documentation
Upvotes: 2