missing -ldl when not linking against openssl

Daniel Mierswa impulze
Wed Feb 4 19:35:22 PST 2009


If you don't choose OpenSSL as TLS implementation and choose to enable
CONFIG_EAP_TNC you have to link against libdl. The OpenSSL libraries
implicitly link against them, so this might be a reason why it wasn't
noticed yet. I assume the same applies to hostapd. Hope I got this right.

The erorr is as follows:
../src/eap_peer/tncc.o: In function `tncc_deinit':

tncc.c:(.text+0x5f4): undefined reference to `dlclose'

../src/eap_peer/tncc.o: In function `tncc_init':

tncc.c:(.text+0x7a5): undefined reference to `dlopen'

tncc.c:(.text+0x7be): undefined reference to `dlsym'

tncc.c:(.text+0x7fb): undefined reference to `dlsym'

tncc.c:(.text+0x811): undefined reference to `dlsym'

tncc.c:(.text+0x82a): undefined reference to `dlsym'

tncc.c:(.text+0x83b): undefined reference to `dlsym'

../src/eap_peer/tncc.o:tncc.c:(.text+0x84c): more undefined references
to `dlsym' follow

Patch against trunk attached.

-- 
Mierswa, Daniel

If you still don't like it, that's ok: that's why I'm boss. I simply
know better than you do.
               --- Linus Torvalds, comp.os.linux.advocacy, 1996/07/22
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: wpa_supplicant-explicitly_dl.patch
Url: http://lists.shmoo.com/pipermail/hostap/attachments/20090205/f0e606ff/attachment-0001.txt 



More information about the Hostap mailing list