Compiling for wire-only 802.1X on embedded linux

Tilman Baumann tilman.baumann at grandeye.com
Thu Nov 29 07:26:38 EST 2012


Hi,

I can't seem to find a combination of settings that would allow me to 
build wpa_supplicant for linux without any wireless extensions.
I get compile errors as soon as I set CONFIG_NO_WPA=y

Would any one of you have a sample .config for that purpose by any 
chance, or recognize the issue in my .config?

The config below works without CONFIG_NO_WPA=y

CONFIG_DRIVER_HOSTAP=n
CONFIG_DRIVER_ATMEL=n
CONFIG_DRIVER_WEXT=n
CONFIG_DRIVER_NL80211=n
CONFIG_DRIVER_WIRED=y
CONFIG_IEEE8021X_EAPOL=y
CONFIG_EAP_MD5=y
CONFIG_EAP_MSCHAPV2=y
CONFIG_EAP_TLS=y
CONFIG_EAP_PEAP=y
CONFIG_EAP_TTLS=y
CONFIG_EAP_GTC=y
CONFIG_EAP_OTP=y
CONFIG_EAP_LEAP=y
CONFIG_WPS=n
CONFIG_WPS_ER=n
CONFIG_PKCS12=y
CONFIG_SMARTCARD=n
CONFIG_CTRL_IFACE=y
CONFIG_WPA_CLI_EDIT=y
CONFIG_NO_WPA=y
CONFIG_NO_WPA2=y
CONFIG_BACKEND=file
CONFIG_PEERKEY=y

make
...

   CC  ../src/drivers/linux_ioctl.c
   CC  ../src/drivers/rfkill.c
   CC  ../src/drivers/drivers.c
   CC  ../src/l2_packet/l2_packet_linux.c
config.o: In function `wpa_config_update_psk':
/home/tilmanb/source/wpa_supplicant/wpa_supplicant-1.0/wpa_supplicant/config.c:2180: 
undefined reference to `pbkdf2_sha1'
../src/eap_peer/eap_peap.o: In function `eap_tlv_add_cryptobinding':
/home/tilmanb/source/wpa_supplicant/wpa_supplicant-1.0/wpa_supplicant/../src/eap_peer/eap_peap.c:337: 
undefined reference to `hmac_sha1_vector'
../src/eap_peer/eap_peap.o: In function `eap_tlv_validate_cryptobinding':
/home/tilmanb/source/wpa_supplicant/wpa_supplicant-1.0/wpa_supplicant/../src/eap_peer/eap_peap.c:430: 
undefined reference to `hmac_sha1'
../src/eap_common/eap_peap_common.o: In function `peap_prfplus':
/home/tilmanb/source/wpa_supplicant/wpa_supplicant-1.0/wpa_supplicant/../src/eap_common/eap_peap_common.c:78: 
undefined reference to `hmac_sha1_vector'
../src/wps/wps_common.o: In function `wps_decrypt_encr_settings':
/home/tilmanb/source/wpa_supplicant/wpa_supplicant-1.0/wpa_supplicant/../src/wps/wps_common.c:178: 
undefined reference to `aes_128_cbc_decrypt'
../src/wps/wps_attr_build.o: In function `wps_build_encr_settings':
/home/tilmanb/source/wpa_supplicant/wpa_supplicant-1.0/wpa_supplicant/../src/wps/wps_attr_build.c:341: 
undefined reference to `aes_128_cbc_encrypt'
../src/eapol_supp/eapol_supp_sm.o: In function `eapol_sm_processKey':
/home/tilmanb/source/wpa_supplicant/wpa_supplicant-1.0/wpa_supplicant/../src/eapol_supp/eapol_supp_sm.c:729: 
undefined reference to `hmac_md5'
../src/eap_peer/eap_tls_common.o: In function `eap_peer_tls_derive_key':
/home/tilmanb/source/wpa_supplicant/wpa_supplicant-1.0/wpa_supplicant/../src/eap_peer/eap_tls_common.c:297: 
undefined reference to `tls_prf'
../src/crypto/random.o: In function `random_extract':
/home/tilmanb/source/wpa_supplicant/wpa_supplicant-1.0/wpa_supplicant/../src/crypto/random.c:112: 
undefined reference to `hmac_sha1'
/home/tilmanb/source/wpa_supplicant/wpa_supplicant-1.0/wpa_supplicant/../src/crypto/random.c:118: 
undefined reference to `hmac_sha1'
collect2: ld returned 1 exit status
make: *** [wpa_supplicant] Error 1



-- 
Tilman Baumann
Oncam Grandeye
6 Huxley Road, Surrey Research Park
Guildford, GU2 7RE, United Kingdom



More information about the HostAP mailing list