Compiling hostap against openssl 0.9.8k

Philip A. Prindeville philipp_subx at redfish-solutions.com
Mon Aug 31 13:59:31 EDT 2009


This is a cross-compile, and we've already built (and installed) libraries and headers in our buildroot.

I'm wondering if there's something I'm forgetting to CONFIG?  Or an extra CFLAGS that got left out?

-Philip


GregNorc wrote:
> Have you installed openssl-devel?
> 
> 2009/8/31 Philip A. Prindeville <philipp_subx at redfish-solutions.com>:
>> I'm building hostap from git (2009-08-23).  I've attached my config
>> file.  I'm seeing:
>>
>> /home/philipp/asterisk/build_i586/staging_dir/bin/i586-linux-uclibc-gcc  -o hostapd hostapd.o main.o ieee802_1x.o eapol_sm.o config.o ieee802_11_auth.o sta_info.o wpa.o preauth.o pmksa_cache.o drv_callbacks.o tkip_countermeasures.o mlme.o wpa_auth_ie.o  ../src/crypto/aes-wrap.o ../src/crypto/aes-cbc.o ../src/crypto/aes-ctr.o ../src/crypto/aes-eax.o ../src/crypto/aes-encblock.o ../src/crypto/aes-omac1.o ../src/crypto/aes-unwrap.o ../src/drivers/drivers.o ../src/drivers/scan_helpers.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 accounting.o vlan_init.o ctrl_iface.o ../src/crypto/md5.o iapp.o peerkey.o wpa_ft.o ../src/utils/radiotap.o ../src/drivers/driver_none.o ../src/drivers/driver_wired.o ../src/drivers/driver_nl80211.o ../src/l2_packet/l2_packet_linux.o ../src/eap_serv
er/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_sim.o ../src/eap_server/eap_aka.o ../src/eap_common/eap_sim_common.o ../src/eap_server/eap_sim_db.o ../src/eap_server/eap_pax.o ../src/eap_common/eap_pax_common.o ../src/eap_server/eap_psk.o ../src/eap_common/eap_psk_common.o ../src/eap_server/eap_sake.o ../src/eap_common/eap_sake_common.o ../src/eap_server/eap_gpsk.o ../src/eap_common/eap_gpsk_common.o ../src/eap_server/eap_fast.o ../src/eap_common/eap_fast_common.o ../src/eap_server/eap_ikev2.o ../src/eap_server/ikev2.o ../src/eap_common/eap_ikev2_common.o ../src/eap_common/ikev2_common.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 ../src/crypto/fips_prf_openssl.o ../src/crypto/sha256.o ../src/crypto/dh_groups.o beacon.o wme.o ap_list.o ieee802_11.o hw_features.o ../src/crypto/sha1.o ../src/crypto/sha1-pbkdf2.o ../src/crypto/sha1-tprf.o ../src/crypto/sha1-tlsprf.o -L /home/philipp/asterisk/build_i586/staging_dir/lib -lnl -lssl -lcrypto
>> ../src/crypto/tls_openssl.o: In function `tls_connection_set_session_ticket_cb':
>> /home/philipp/asterisk/build_i586/hostapd-2009-08-23/hostapd/../src/crypto/tls_openssl.c:2705: undefined reference to `SSL_set_session_secret_cb'
>> /home/philipp/asterisk/build_i586/hostapd-2009-08-23/hostapd/../src/crypto/tls_openssl.c:2722: undefined reference to `SSL_set_session_secret_cb'
>> ../src/crypto/tls_openssl.o: In function `tls_connection_client_hello_ext':
>> /home/philipp/asterisk/build_i586/hostapd-2009-08-23/hostapd/../src/crypto/tls_openssl.c:2381: undefined reference to `SSL_set_hello_extension'
>> collect2: ld returned 1 exit status
>> make[1]: *** [hostapd] Error 1
>> make[1]: Leaving directory `/home/philipp/asterisk/build_i586/hostapd-2009-08-23/hostapd'
>>
>>
>> Are there patches to compile against openssl-0.9.8k?  Or do I just need additional CFLAGS?
>>
>> Thanks,
>>
>> -Philip
>>
>>
>>
>> CFLAGS+=-Os -Wall -Os -pipe -fomit-frame-pointer -march=k6-2 -fno-align-functions -fno-align-loops -fno-align-jumps -fno-align-labels  -isysroot /home/philipp/asterisk/build_i586/staging_dir -idirafter /include
>> CFLAGS+= -DUSE_KERNEL_HEADERS -I/home/philipp/asterisk/build_i586/linux-2.6.27.29-astlinux/include
>> CONFIG_IEEE80211N=y
>> CONFIG_DRIVER_NL80211=y
>> CONFIG_DRIVER_NONE=y
>> CONFIG_DRIVER_WIRED=y
>> CONFIG_IAPP=y
>> CONFIG_RSN_PREAUTH=y
>> CONFIG_PEERKEY=y
>> CONFIG_EAP=y
>> CONFIG_EAP_MD5=y
>> CONFIG_EAP_TLS=y
>> CONFIG_EAP_MSCHAPV2=y
>> CONFIG_EAP_PEAP=y
>> CONFIG_EAP_GTC=y
>> CONFIG_EAP_TTLS=y
>> CONFIG_EAP_SIM=y
>> CONFIG_EAP_AKA=y
>> CONFIG_EAP_AKA_PRIME=y
>> CONFIG_EAP_PAX=y
>> CONFIG_EAP_PSK=y
>> CONFIG_EAP_SAKE=y
>> CONFIG_EAP_GPSK=y
>> CONFIG_EAP_GPSK_SHA256=y
>> CONFIG_EAP_FAST=y
>> CONFIG_EAP_IKEV2=y
>> CONFIG_PKCS12=y
>> CONFIG_IPV6=y
>> CONFIG_IEEE80211R=y
>> CONFIG_IEEE80211N=y
>> LIBS+=-L /home/philipp/asterisk/build_i586/staging_dir/lib
>> CONFIG_TLS=openssl
>>
>> _______________________________________________
>> HostAP mailing list
>> HostAP at lists.shmoo.com
>> http://lists.shmoo.com/mailman/listinfo/hostap
>>
>>
> 
> 
> 



More information about the HostAP mailing list