[xmlsec] how to compile an application using xmlsec without libdl

Aleksey Sanin aleksey at aleksey.com
Thu Apr 20 13:43:13 PDT 2006

I believe OpenSSL and NSS require -ldl (at least on my system):

$ pkg-config --libs openssl
-L/usr/kerberos/lib -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err 
-lk5crypto -lresolv -ldl -lz

$ pkg-config --libs mozilla-nss
-L/usr/lib/mozilla-1.7.12 -lnss3 -lsmime3 -lssl3 -lsoftokn3 -lplds4 
-lplc4 -lnspr4 -lpthread -ldl

You might need to hack xmlsec/configure.in file and remove
all references to "-ldl" if it is not the case for you.


Beatriz Hargrave wrote:
> Hello, 
> I have ported xmlsec to uclinux (Coldfire). However I am not able to compile a simple application because of the following error: 
> /usr/local/m68k-elf/bin/ld.real: cannot find -ldl
> collect2: ld returned 1 exit status
> make[2]: *** [vbsign1] Error 1
> make[2]: Leaving directory `/tmp/vbsign1/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/tmp/vbsign1'
> make: *** [all] Error 2
> I have found that uclinux does not really have libdl: "I don't think we have ever supported the dl_ functions in libraries that work on uClinux platforms. General shared libs work, but they don't use the dl_ functions".
> Is there a way of having an application, using xmlsec and not needing libdl ? 
> Thank you very much, 
> Beatriz. 
> _______________________________________________
> xmlsec mailing list
> xmlsec at aleksey.com
> http://www.aleksey.com/mailman/listinfo/xmlsec

More information about the xmlsec mailing list