cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: NSS and configure and pkg-config

From: Kamil Dudka <kdudka_at_redhat.com>
Date: Mon, 31 Aug 2009 09:26:14 +0200

Hi Gün,

On Monday 31 of August 2009 02:11:21 Guenter wrote:
> configure:26721: i686-pc-mingw32-gcc -o conftest.exe
> -D_WIN32_WINNT=0x0501 -g -O0 -pedantic -Wall -W -Wpointer-arith
> -Wwrite-strings -Wunused -Wshadow -Winline -Wnested-externs
> -Wmissing-declarations -Wmissing-prototypes -Wno-long-long -Wfloat-equal
> -Wno-multichar -Wsign-compare -Wundef -Wno-format-nonliteral
> -Wendif-labels -Wstrict-prototypes -Wdeclaration-after-statement
> -Wcast-align -Wtype-limits -Wold-style-declaration
> -Wmissing-parameter-type -Wempty-body -Wclobbered -Wignored-qualifiers
> -Wconversion -Wno-sign-conversion -Wvla -Wno-system-headers -DCURLDEBUG
> -DDEBUGBUILD -I/usr/i686-pc-mingw32/sys-root/mingw/include conftest.c
> -lnss3 -lssh2 -lwldap32 -lws2_32 -lz
> -L/usr/i686-pc-mingw32/sys-root/mingw/lib -lssl3 -lsmime3 -lnss3 -lplds4
> -lplc4 -lnspr4 -lpthread -ldl >&5
> conftest.c:71: warning: function declaration isn't a prototype
> /usr/lib64/gcc/i686-pc-mingw32/4.3.3/../../../../i686-pc-mingw32/bin/ld:
> cannot find -ldl
> collect2: ld returned 1 exit status
> configure:26728: $? = 1
>
> anyone an idea why this happens?

There would be an idea, though I am not sure if relevant. NSS uses dlopen(3)
to load PKCS #11 modules on the fly. That's why it needs -ldl even with
mingw. You probably need to install mingw's equivalent of dlopen(3). I have
no experiences with using -ldl under mingw yet. I just wrote "mingw dlopen"
to Google and the first link seems to be related:

http://www.gidforums.com/showpost.php?p=77304&postcount=2

Kamil
Received on 2009-08-31