FW: linking wpa_supplicant

martin.p.bradley at bt.com martin.p.bradley
Tue Apr 5 03:58:21 PDT 2005


Hello all,

I am trying to get wpa_supplicant to compile on a Redhat 7.3 system
which has no wireless interface.  I was hoping to use it to send RADIUS
packets containing EAP-TLS attributes. 

I copied the defconfig to .config and typed make.  The code compiled ok
but failed at the linking stage.

cc -o wpa_supplicant config.o eloop.o common.o md5.o rc4.o sha1.o
aes_wrap.o driver_hostap.o driver_prism54.o driver_atmel.o eap_tls.o
eap_peap.o eap_ttls.o eap_md5.o eap_mschapv2.o eap_gtc.o eap_otp.o
eap_leap.o eap_tlv.o eapol_sm.o eap.o eap_tls_common.o tls_openssl.o
ms_funcs.o crypto.o driver_wext.o ctrl_iface.o wpa_supplicant.o wpa.o
l2_packet.o drivers.o -lssl -lcrypto
aes_wrap.o: In function `aes_wrap':
/home/mbradley/Applications/wpa_supplicant-0.3.8/aes_wrap.c:69:
undefined reference to `AES_set_encrypt_key'
/home/mbradley/Applications/wpa_supplicant-0.3.8/aes_wrap.c:83:
undefined reference to `AES_encrypt'
aes_wrap.o: In function `aes_unwrap':
/home/mbradley/Applications/wpa_supplicant-0.3.8/aes_wrap.c:116:
undefined reference to `AES_set_decrypt_key'
/home/mbradley/Applications/wpa_supplicant-0.3.8/aes_wrap.c:132:
undefined reference to `AES_decrypt'
aes_wrap.o: In function `omac1_aes_128':
/home/mbradley/Applications/wpa_supplicant-0.3.8/aes_wrap.c:176:
undefined reference to `AES_set_encrypt_key'
/home/mbradley/Applications/wpa_supplicant-0.3.8/aes_wrap.c:183:
undefined reference to `AES_encrypt'
/home/mbradley/Applications/wpa_supplicant-0.3.8/aes_wrap.c:188:
undefined reference to `AES_encrypt'
/home/mbradley/Applications/wpa_supplicant-0.3.8/aes_wrap.c:200:
undefined reference to `AES_encrypt'
aes_wrap.o: In function `aes_128_encrypt_block':
/home/mbradley/Applications/wpa_supplicant-0.3.8/aes_wrap.c:207:
undefined reference to `AES_set_encrypt_key'
/home/mbradley/Applications/wpa_supplicant-0.3.8/aes_wrap.c:208:
undefined reference to `AES_encrypt'
aes_wrap.o: In function `aes_128_ctr_encrypt':
/home/mbradley/Applications/wpa_supplicant-0.3.8/aes_wrap.c:221:
undefined reference to `AES_set_encrypt_key'
/home/mbradley/Applications/wpa_supplicant-0.3.8/aes_wrap.c:225:
undefined reference to `AES_encrypt'
aes_wrap.o: In function `aes_128_cbc_encrypt':
/home/mbradley/Applications/wpa_supplicant-0.3.8/aes_wrap.c:343:
undefined reference to `AES_set_encrypt_key'
/home/mbradley/Applications/wpa_supplicant-0.3.8/aes_wrap.c:350:
undefined reference to `AES_encrypt'
aes_wrap.o: In function `aes_128_cbc_decrypt':
/home/mbradley/Applications/wpa_supplicant-0.3.8/aes_wrap.c:365:
undefined reference to `AES_set_decrypt_key'
/home/mbradley/Applications/wpa_supplicant-0.3.8/aes_wrap.c:371:
undefined reference to `AES_decrypt'
crypto.o: In function `des_encrypt':
/home/mbradley/Applications/wpa_supplicant-0.3.8/crypto.c:68: undefined
reference to `DES_set_key'
/home/mbradley/Applications/wpa_supplicant-0.3.8/crypto.c:69: undefined
reference to `DES_ecb_encrypt'
collect2: ld returned 1 exit status
make: *** [wpa_supplicant] Error 1


Thanks for any help,
Martin

-----Original Message-----
From: freeradius-devel-admin at lists.freeradius.org
[mailto:freeradius-devel-admin at lists.freeradius.org] On Behalf Of Jouni
Malinen
Sent: 02 April 2005 19:41
To: freeradius-devel at lists.freeradius.org
Subject: Re: TLS and server hello.

On Thu, Mar 31, 2005 at 01:55:41PM +0100, martin.p.bradley at bt.com wrote:

> Is there a program which can test RADIUS with EAP TLS and TTLS from
the
> unix command line.

wpa_supplicant (http://hostap.epitest.fi/wpa_supplicant/) comes with a
test program, eapol_test, that I find quite useful for testing EAP. It
includes parts of IEEE 802.1X Authenticator and RADIUS authentication
client in addition to EAP peer and as such, it can talk RADIUS to an AS.
And yes, it is used from the command line. For example, I have a script
and set of configuration files to test all EAP methods supported by
FreeRADIUS.

-- 
Jouni Malinen                                            PGP id EFC895FA

- 
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/devel.html




More information about the Hostap mailing list