wpa_supplicant: trying to build with wired driver out of CVS...

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn
Sat Sep 17 13:42:30 PDT 2005


...but fail :(

# pwd
/tmp/hostap/wpa_supplicant

,---- [ .config ]
| CONFIG_DRIVER_WIRED=y
| CONFIG_IEEE8021X_EAPOL=y
| CONFIG_EAP_TLS=y
| CONFIG_CTRL_IFACE=y
`----

# make
...

object files are generated, including:

,----
| cc -MMD -O2 -Wall -g -I. -I../utils -I../hostapd -DCONFIG_DRIVER_WIRED
| -DEAP_TLS -DIEEE8021X_EAPOL -DEAP_TLS_FUNCS -DCONFIG_CTRL_IFACE   -c -o
| ../hostapd/md5.o ../hostapd/md5.c
`----

but linking fails with (among others):

,----
| cc -o wpa_supplicant config.o ../hostapd/eloop.o ../hostapd/common.o
| ../hostapd/md5.o ../hostapd/rc4.o ../hostapd/sha1.o ../hostapd/aes_wrap.o
| l2_packet_linux.o eap_tls.o eapol_sm.o eap.o eap_tls_common.o tls_openssl.o
| ctrl_iface.o wpa_supplicant.o wpa.o preauth.o events.o drivers.o
| driver_wired.o -lssl -lcrypto
| ../hostapd/md5.o(.text+0x41): In function `md5_mac':
| ../hostapd/md5.c:35: undefined reference to `md5_vector'
| ../hostapd/md5.o(.text+0x112): In function `hmac_md5_vector':
| ../hostapd/md5.c:88: undefined reference to `md5_vector'
| ../hostapd/md5.o(.text+0x19a):../hostapd/md5.c:101: undefined reference to
| `md5_vector'
| ../hostapd/md5.o(.text+0x1c6):../hostapd/md5.c:59: undefined reference to
| `md5_vector'
| ../hostapd/sha1.o(.text+0x41): In function `sha1_mac':
| ../hostapd/sha1.c:36: undefined reference to `sha1_vector'
| ../hostapd/sha1.o(.text+0x112): In function `hmac_sha1_vector':
| ../hostapd/sha1.c:88: undefined reference to `sha1_vector'
| ../hostapd/sha1.o(.text+0x19a):../hostapd/sha1.c:101: undefined reference to
| `sha1_vector'
| ../hostapd/sha1.o(.text+0x1c6):../hostapd/sha1.c:60: undefined reference to
| `sha1_vector'
`----

I might be missing something. Any thoughts?
(make log attached)

If I modify the Makefile (shot in the dark?) like this:

,----
| --- Makefile.orig       2005-09-12 22:27:53.000000000 +0200
| +++ Makefile    2005-09-17 22:19:28.969945831 +0200
| @@ -283,6 +283,10 @@ CONFIG_TLS=openssl
|  endif
|  ifeq ($(CONFIG_TLS), openssl)
|  OBJS += tls_openssl.o
| +#//#
| +OBJS += crypto.o
| +OBJS_p += crypto.o
| +#//#
|  LIBS += -lssl -lcrypto
|  LIBS_p += -lcrypto
|  endif
`----

I get an error free build, and wpa_supplicant runs:

,----
| # ./wpa_supplicant -v
| wpa_supplicant v0.4.4
| Copyright (c) 2003-2005, Jouni Malinen <jkmaline at cc.hut.fi> and contributors
`----

but I can't test it as I don't have the proper environment around.


Cheers,
Cristian
-------------- next part --------------
cc -MMD -O2 -Wall -g -I. -I../utils -I../hostapd -DCONFIG_DRIVER_WIRED -DEAP_TLS -DIEEE8021X_EAPOL -DEAP_TLS_FUNCS -DCONFIG_CTRL_IFACE   -c -o config.o config.c
cc -MMD -O2 -Wall -g -I. -I../utils -I../hostapd -DCONFIG_DRIVER_WIRED -DEAP_TLS -DIEEE8021X_EAPOL -DEAP_TLS_FUNCS -DCONFIG_CTRL_IFACE   -c -o ../hostapd/eloop.o ../hostapd/eloop.c
cc -MMD -O2 -Wall -g -I. -I../utils -I../hostapd -DCONFIG_DRIVER_WIRED -DEAP_TLS -DIEEE8021X_EAPOL -DEAP_TLS_FUNCS -DCONFIG_CTRL_IFACE   -c -o ../hostapd/common.o ../hostapd/common.c
cc -MMD -O2 -Wall -g -I. -I../utils -I../hostapd -DCONFIG_DRIVER_WIRED -DEAP_TLS -DIEEE8021X_EAPOL -DEAP_TLS_FUNCS -DCONFIG_CTRL_IFACE   -c -o ../hostapd/md5.o ../hostapd/md5.c
cc -MMD -O2 -Wall -g -I. -I../utils -I../hostapd -DCONFIG_DRIVER_WIRED -DEAP_TLS -DIEEE8021X_EAPOL -DEAP_TLS_FUNCS -DCONFIG_CTRL_IFACE   -c -o ../hostapd/rc4.o ../hostapd/rc4.c
cc -MMD -O2 -Wall -g -I. -I../utils -I../hostapd -DCONFIG_DRIVER_WIRED -DEAP_TLS -DIEEE8021X_EAPOL -DEAP_TLS_FUNCS -DCONFIG_CTRL_IFACE   -c -o ../hostapd/sha1.o ../hostapd/sha1.c
cc -MMD -O2 -Wall -g -I. -I../utils -I../hostapd -DCONFIG_DRIVER_WIRED -DEAP_TLS -DIEEE8021X_EAPOL -DEAP_TLS_FUNCS -DCONFIG_CTRL_IFACE   -c -o ../hostapd/aes_wrap.o ../hostapd/aes_wrap.c
cc -MMD -O2 -Wall -g -I. -I../utils -I../hostapd -DCONFIG_DRIVER_WIRED -DEAP_TLS -DIEEE8021X_EAPOL -DEAP_TLS_FUNCS -DCONFIG_CTRL_IFACE   -c -o l2_packet_linux.o l2_packet_linux.c
cc -MMD -O2 -Wall -g -I. -I../utils -I../hostapd -DCONFIG_DRIVER_WIRED -DEAP_TLS -DIEEE8021X_EAPOL -DEAP_TLS_FUNCS -DCONFIG_CTRL_IFACE   -c -o eap_tls.o eap_tls.c
cc -MMD -O2 -Wall -g -I. -I../utils -I../hostapd -DCONFIG_DRIVER_WIRED -DEAP_TLS -DIEEE8021X_EAPOL -DEAP_TLS_FUNCS -DCONFIG_CTRL_IFACE   -c -o eapol_sm.o eapol_sm.c
cc -MMD -O2 -Wall -g -I. -I../utils -I../hostapd -DCONFIG_DRIVER_WIRED -DEAP_TLS -DIEEE8021X_EAPOL -DEAP_TLS_FUNCS -DCONFIG_CTRL_IFACE   -c -o eap.o eap.c
cc -MMD -O2 -Wall -g -I. -I../utils -I../hostapd -DCONFIG_DRIVER_WIRED -DEAP_TLS -DIEEE8021X_EAPOL -DEAP_TLS_FUNCS -DCONFIG_CTRL_IFACE   -c -o eap_tls_common.o eap_tls_common.c
cc -MMD -O2 -Wall -g -I. -I../utils -I../hostapd -DCONFIG_DRIVER_WIRED -DEAP_TLS -DIEEE8021X_EAPOL -DEAP_TLS_FUNCS -DCONFIG_CTRL_IFACE   -c -o tls_openssl.o tls_openssl.c
cc -MMD -O2 -Wall -g -I. -I../utils -I../hostapd -DCONFIG_DRIVER_WIRED -DEAP_TLS -DIEEE8021X_EAPOL -DEAP_TLS_FUNCS -DCONFIG_CTRL_IFACE   -c -o ctrl_iface.o ctrl_iface.c
cc -MMD -O2 -Wall -g -I. -I../utils -I../hostapd -DCONFIG_DRIVER_WIRED -DEAP_TLS -DIEEE8021X_EAPOL -DEAP_TLS_FUNCS -DCONFIG_CTRL_IFACE   -c -o wpa_supplicant.o wpa_supplicant.c
cc -MMD -O2 -Wall -g -I. -I../utils -I../hostapd -DCONFIG_DRIVER_WIRED -DEAP_TLS -DIEEE8021X_EAPOL -DEAP_TLS_FUNCS -DCONFIG_CTRL_IFACE   -c -o wpa.o wpa.c
cc -MMD -O2 -Wall -g -I. -I../utils -I../hostapd -DCONFIG_DRIVER_WIRED -DEAP_TLS -DIEEE8021X_EAPOL -DEAP_TLS_FUNCS -DCONFIG_CTRL_IFACE   -c -o preauth.o preauth.c
cc -MMD -O2 -Wall -g -I. -I../utils -I../hostapd -DCONFIG_DRIVER_WIRED -DEAP_TLS -DIEEE8021X_EAPOL -DEAP_TLS_FUNCS -DCONFIG_CTRL_IFACE   -c -o events.o events.c
cc -MMD -O2 -Wall -g -I. -I../utils -I../hostapd -DCONFIG_DRIVER_WIRED -DEAP_TLS -DIEEE8021X_EAPOL -DEAP_TLS_FUNCS -DCONFIG_CTRL_IFACE   -c -o drivers.o drivers.c
cc -MMD -O2 -Wall -g -I. -I../utils -I../hostapd -DCONFIG_DRIVER_WIRED -DEAP_TLS -DIEEE8021X_EAPOL -DEAP_TLS_FUNCS -DCONFIG_CTRL_IFACE   -c -o driver_wired.o driver_wired.c
cc -o wpa_supplicant config.o ../hostapd/eloop.o ../hostapd/common.o ../hostapd/md5.o ../hostapd/rc4.o ../hostapd/sha1.o ../hostapd/aes_wrap.o l2_packet_linux.o eap_tls.o eapol_sm.o eap.o eap_tls_common.o tls_openssl.o ctrl_iface.o wpa_supplicant.o wpa.o preauth.o events.o drivers.o driver_wired.o -lssl -lcrypto
../hostapd/md5.o(.text+0x41): In function `md5_mac':
../hostapd/md5.c:35: undefined reference to `md5_vector'
../hostapd/md5.o(.text+0x112): In function `hmac_md5_vector':
../hostapd/md5.c:88: undefined reference to `md5_vector'
../hostapd/md5.o(.text+0x19a):../hostapd/md5.c:101: undefined reference to `md5_vector'
../hostapd/md5.o(.text+0x1c6):../hostapd/md5.c:59: undefined reference to `md5_vector'
../hostapd/sha1.o(.text+0x41): In function `sha1_mac':
../hostapd/sha1.c:36: undefined reference to `sha1_vector'
../hostapd/sha1.o(.text+0x112): In function `hmac_sha1_vector':
../hostapd/sha1.c:88: undefined reference to `sha1_vector'
../hostapd/sha1.o(.text+0x19a):../hostapd/sha1.c:101: undefined reference to `sha1_vector'
../hostapd/sha1.o(.text+0x1c6):../hostapd/sha1.c:60: undefined reference to `sha1_vector'
../hostapd/aes_wrap.o(.text+0x45): In function `aes_wrap':
../hostapd/aes_wrap.c:53: undefined reference to `aes_encrypt_init'
../hostapd/aes_wrap.o(.text+0xa8):../hostapd/aes_wrap.c:69: undefined reference to `aes_encrypt'
../hostapd/aes_wrap.o(.text+0xe6):../hostapd/aes_wrap.c:76: undefined reference to `aes_encrypt_deinit'
../hostapd/aes_wrap.o(.text+0x143): In function `aes_unwrap':
../hostapd/aes_wrap.c:105: undefined reference to `aes_decrypt_init'
../hostapd/aes_wrap.o(.text+0x1b1):../hostapd/aes_wrap.c:123: undefined reference to `aes_decrypt'
../hostapd/aes_wrap.o(.text+0x1e6):../hostapd/aes_wrap.c:129: undefined reference to `aes_decrypt_deinit'
../hostapd/aes_wrap.o(.text+0x27f): In function `omac1_aes_128':
../hostapd/aes_wrap.c:168: undefined reference to `aes_encrypt_init'
../hostapd/aes_wrap.o(.text+0x30a):../hostapd/aes_wrap.c:182: undefined reference to `aes_encrypt'
../hostapd/aes_wrap.o(.text+0x371):../hostapd/aes_wrap.c:194: undefined reference to `aes_encrypt'
../hostapd/aes_wrap.o(.text+0x379):../hostapd/aes_wrap.c:195: undefined reference to `aes_encrypt_deinit'
../hostapd/aes_wrap.o(.text+0x396):../hostapd/aes_wrap.c:177: undefined reference to `aes_encrypt'
../hostapd/aes_wrap.o(.text+0x3b9): In function `aes_128_encrypt_block':
../hostapd/aes_wrap.c:203: undefined reference to `aes_encrypt_init'
../hostapd/aes_wrap.o(.text+0x3da):../hostapd/aes_wrap.c:206: undefined reference to `aes_encrypt'
../hostapd/aes_wrap.o(.text+0x3e2):../hostapd/aes_wrap.c:207: undefined reference to `aes_encrypt_deinit'
../hostapd/aes_wrap.o(.text+0x40f): In function `aes_128_ctr_encrypt':
../hostapd/aes_wrap.c:221: undefined reference to `aes_encrypt_init'
../hostapd/aes_wrap.o(.text+0x452):../hostapd/aes_wrap.c:227: undefined reference to `aes_encrypt'
../hostapd/aes_wrap.o(.text+0x4aa):../hostapd/aes_wrap.c:241: undefined reference to `aes_encrypt_deinit'
../hostapd/aes_wrap.o(.text+0x79f): In function `aes_128_cbc_encrypt':
../hostapd/aes_wrap.c:346: undefined reference to `aes_encrypt_init'
../hostapd/aes_wrap.o(.text+0x7fe):../hostapd/aes_wrap.c:355: undefined reference to `aes_encrypt'
../hostapd/aes_wrap.o(.text+0x825):../hostapd/aes_wrap.c:359: undefined reference to `aes_encrypt_deinit'
../hostapd/aes_wrap.o(.text+0x85f): In function `aes_128_cbc_decrypt':
../hostapd/aes_wrap.c:371: undefined reference to `aes_decrypt_init'
../hostapd/aes_wrap.o(.text+0x898):../hostapd/aes_wrap.c:385: undefined reference to `aes_decrypt_deinit'
../hostapd/aes_wrap.o(.text+0x8c9):../hostapd/aes_wrap.c:379: undefined reference to `aes_decrypt'
eap.o(.text+0x1876): In function `eap_sm_parseEapReq':
/tmp/hostap/wpa_supplicant/eap.c:949: undefined reference to `md5_vector'
collect2: ld returned 1 exit status
make: *** [wpa_supplicant] Error 1



More information about the Hostap mailing list