cURL / Mailing Lists / curl-library / Single Mail

curl-library

Openssl and gdi32

From: Andrés García <fandom_at_telefonica.net>
Date: Wed, 10 Sep 2008 01:12:24 +0200

Hi,

I have a problem with version 7.19.0, as it doesn't configure right
in msys/mingw when trying to add ssl support.

According to the log the problem is:

configure:29768: gcc -o
conftest.exe -g -O2 -I/usr/local/include/openssl -I/usr/local/include -L/usr/local/lib
conftest.c -lssl -lcrypto -lwldap32 -lws2_32 >&5
C:/msys/1.0/local/lib/libcrypto.a(rand_win.o):rand_win.c:(.text+0xa0c):
undefined reference to `CreateDCA_at_16'
C:/msys/1.0/local/lib/libcrypto.a(rand_win.o):rand_win.c:(.text+0xa19):
undefined reference to `CreateCompatibleDC_at_4'
C:/msys/1.0/local/lib/libcrypto.a(rand_win.o):rand_win.c:(.text+0xa2a):
undefined reference to `GetDeviceCaps_at_8'
C:/msys/1.0/local/lib/libcrypto.a(rand_win.o):rand_win.c:(.text+0xa3a):
undefined reference to `GetDeviceCaps_at_8'
C:/msys/1.0/local/lib/libcrypto.a(rand_win.o):rand_win.c:(.text+0xa50):
undefined reference to `CreateCompatibleBitmap_at_12'
.
.
.
.

For whatever the reason, Openssl seems to require gdi32, so I added it
in configure.ac:

[...]
  #ifdef WIN32_LEAN_AND_MEAN
    LIBS="$LIBS -lgdi32"
  #endif

    AC_CHECK_LIB(ssl, SSL_connect)
[...]

And now configure works.

Andres
Received on 2008-09-10