lots of undefined references for dynamic eap methods if gnutls isn't used as tls implementation
Daniel Mierswa
impulze
Thu Feb 5 16:36:41 PST 2009
When using CONFIG_EAP_*=dyn, CONFIG_DYNAMIC_EAP_METHODS=y and
CONFIG_TLS=gnutls or CONFIG_TLS=internal than the linking fails with:
x86_64-pc-linux-gnu-gcc -o wpa_supplicant config.o
../src/utils/common.o ../src/utils/wpa_debug.o ../src/utils/wpabuf.o
../src/crypto/md5.o ../src/crypto/rc4.o ../src/crypto/md4.o
../src/crypto/sha1.o ../src/crypto/des.o ../src/utils/os_unix.o
../src/utils/eloop.o config_file.o ../src/eap_common/eap_sim_common.o
../src/eap_peer/eap_tnc.o ../src/eap_peer/tncc.o
../src/eapol_supp/eapol_supp_sm.o ../src/eap_peer/eap.o
../src/eap_common/eap_common.o ../src/eap_peer/eap_methods.o
../src/hlr_auc_gw/milenage.o ../src/eap_peer/eap_tls_common.o
../src/crypto/tls_openssl.o ../src/crypto/ms_funcs.o
../src/eap_common/chap.o ../src/crypto/crypto_openssl.o
../src/crypto/sha256.o ctrl_iface.o ctrl_iface_unix.o ctrl_iface_dbus.o
ctrl_iface_dbus_handlers.o dbus_dict_helpers.o ../src/rsn_supp/wpa_ft.o
../src/rsn_supp/wpa.o ../src/rsn_supp/preauth.o
../src/rsn_supp/pmksa_cache.o ../src/rsn_supp/peerkey.o
../src/rsn_supp/wpa_ie.o ../src/common/wpa_common.o
../src/crypto/aes_wrap.o ../src/crypto/aes.o ../src/crypto/dh_groups.o
../src/utils/base64.o mlme.o ../src/common/ieee802_11_common.o
../src/drivers/scan_helpers.o wpa_supplicant.o events.o blacklist.o
wpas_glue.o scan.o main.o ../src/drivers/driver_hostap.o
../src/drivers/driver_nl80211.o ../src/drivers/radiotap.o
../src/drivers/driver_prism54.o ../src/drivers/driver_atmel.o
../src/drivers/driver_ndiswrapper.o ../src/drivers/driver_ralink.o
../src/drivers/driver_ipw.o ../src/drivers/driver_wired.o
../src/drivers/driver_roboswitch.o ../src/drivers/driver_wext.o
../src/drivers/drivers.o ../src/l2_packet/l2_packet_pcap.o -lnl -ldnet
-lpcap -ldl -ldl -rdynamic -lssl -lcrypto -ldl -ldbus-1
config_file.o: In function `wpa_config_write':
config_file.c:(.text+0x1e1): undefined reference to `is_nil_uuid'
config_file.c:(.text+0xace): undefined reference to `uuid_bin2str'
config_file.o: In function `wpa_config_process_uuid':
config_file.c:(.text+0xc40): undefined reference to `uuid_str2bin'
config_file.c:(.text+0xc59): undefined reference to `uuid_bin2str'
ctrl_iface.o: In function `wpa_supplicant_ctrl_iface_wps_pbc':
ctrl_iface.c:(.text+0x52f): undefined reference to `wpas_wps_start_pbc'
ctrl_iface.c:(.text+0x558): undefined reference to `wpas_wps_start_pbc'
ctrl_iface.o: In function `wpa_supplicant_wps_ie_txt':
ctrl_iface.c:(.text+0xa42): undefined reference to
`wps_is_selected_pbc_registrar'
ctrl_iface.c:(.text+0xa9c): undefined reference to
`wps_is_selected_pin_registrar'
ctrl_iface.o: In function `wpa_supplicant_ctrl_iface_process':
ctrl_iface.c:(.text+0x211d): undefined reference to `wpas_wps_start_pin'
ctrl_iface.c:(.text+0x21e0): undefined reference to `wpas_wps_start_reg'
ctrl_iface.c:(.text+0x22e2): undefined reference to `wpas_wps_start_pin'
wpa_supplicant.o: In function `wpa_supplicant_deinit_iface':
wpa_supplicant.c:(.text+0x1d27): undefined reference to
`wpas_wps_deinit'
wpa_supplicant.o: In function `wpa_supplicant_add_iface':
wpa_supplicant.c:(.text+0x239a): undefined reference to `wpas_wps_init'
wpa_supplicant.o: In function `wpa_supplicant_associate':
wpa_supplicant.c:(.text+0x2fe2): undefined reference to
`wpas_wps_get_req_type'
wpa_supplicant.c:(.text+0x2fe9): undefined reference to
`wps_build_assoc_req_ie'
events.o: In function `wpa_supplicant_event':
events.c:(.text+0x9a9): undefined reference to
`wpas_wps_notify_scan_results'
events.c:(.text+0xb14): undefined reference to
`wpas_wps_ssid_wildcard_ok'
events.c:(.text+0xb56): undefined reference to `wpas_wps_ssid_bss_match'
events.c:(.text+0xb80): undefined reference to
`wpas_wps_scan_pbc_overlap'
events.c:(.text+0x1137): undefined reference to
`wpas_wps_ssid_wildcard_ok'
events.c:(.text+0x1386): undefined reference to `wpas_wps_searching'
wpas_glue.o: In function `wpa_supplicant_eapol_cb':
wpas_glue.c:(.text+0x88f): undefined reference to `wpas_wps_eapol_cb'
scan.o: In function `wpa_supplicant_scan':
scan.c:(.text+0x2de): undefined reference to `wpas_wps_get_req_type'
scan.c:(.text+0x455): undefined reference to `wps_build_probe_req_ie'
collect2: ld returned 1 exit status
The same does not occur if i use CONFIG_TLS=openssl
Is this a problem on my machine or is that wpa_supplicant related?
--
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
More information about the Hostap
mailing list