hostapd-0.6.8 build with OpenSSL-0.9.8i fails with 'undefined reference to `dlsym'', etc.

Michael Everett meverett at williams-pyro.com
Mon Mar 9 11:28:19 EDT 2009


Building hostapd-0.6.8 after installing OpenSSL-0.9.8i (or 0.9.8j) fails
with undefined references related to OpenSSL dso_dlfcn.c in libcrypto.a
as follows:
 
------------------------------------------------
 
cc -o hostapd hostapd.o ieee802_1x.o eapol_sm.o ieee802_11.o config.o
ieee802_11_auth.o accounting.o sta_info.o wpa.o ctrl_iface.o drivers.o
preauth.o pmksa_cache.o beacon.o hw_features.o wme.o ap_list.o mlme.o
vlan_init.o wpa_auth_ie.o ../src/utils/eloop.o ../src/utils/common.o
../src/utils/wpa_debug.o ../src/utils/wpabuf.o ../src/utils/os_unix.o
../src/utils/ip_addr.o ../src/common/ieee802_11_common.o
../src/common/wpa_common.o ../src/radius/radius.o
../src/radius/radius_client.o ../src/crypto/md5.o ../src/crypto/rc4.o
../src/crypto/md4.o ../src/crypto/sha1.o ../src/crypto/des.o
../src/crypto/aes_wrap.o ../src/crypto/aes.o iapp.o peerkey.o
driver_madwifi.o ../src/l2_packet/l2_packet_linux.o
../src/eap_server/eap_md5.o ../src/eap_server/eap_tls.o
../src/eap_server/eap_peap.o ../src/eap_common/eap_peap_common.o
../src/eap_server/eap_ttls.o ../src/eap_server/eap_mschapv2.o
../src/eap_server/eap_gtc.o ../src/eap_server/eap.o
../src/eap_common/eap_common.o ../src/eap_server/eap_methods.o
../src/eap_server/eap_identity.o ../src/eap_server/eap_tls_common.o
../src/crypto/tls_openssl.o ../src/crypto/ms_funcs.o
../src/eap_common/chap.o ../src/crypto/crypto_openssl.o
-L/usr/src/openssl -L/usr/local/ssl/lib -L/usr/lib -lssl -lcrypto
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function
`dlfcn_bind_func':
dso_dlfcn.c:(.text+0x2d4): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x348): undefined reference to `dlerror'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function
`dlfcn_bind_var':
dso_dlfcn.c:(.text+0x400): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x46c): undefined reference to `dlerror'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload':
dso_dlfcn.c:(.text+0x4e8): undefined reference to `dlclose'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load':
dso_dlfcn.c:(.text+0x570): undefined reference to `dlopen'
dso_dlfcn.c:(.text+0x5d8): undefined reference to `dlclose'
dso_dlfcn.c:(.text+0x5f0): undefined reference to `dlerror'
collect2: ld returned 1 exit status
make: *** [hostapd] Error 1
 
-------------------------------------------------
 
linux kernel 2.6.24 built for ARM - xscale
hostapd built with settings to include madwifi aetheros drivers.
 
Suspect a compile switch in OpenSSL is not turned on that should be or
that hostapd is building in a feature needed from OpenSSL that is not
there.
 
Any ideas how to resolve?
 
Thanks,
Mike


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20090309/33c3f5a0/attachment.htm 


More information about the HostAP mailing list