Amit.Desai
Amit.Desai

Reputation: 185

"undefined reference to strerror_r" with OpenSSL-1.1.0e and MinGW

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

  1. tar -xf vv.tar.gz

  2. perl Configure mingw no-shared

  3. 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

Answers (1)

Pras
Pras

Reputation: 4044

strerror_r may not be implemented in mingw, you need to check minwg latest documentation

Upvotes: 2

Related Questions