CyanogenMod/android_external_wpa_supplicant_8 — Issue #1: compilation failure
Author: alain76
Created: 2011-12-26 18:18:50+00:00
State: open

When trying to compile this as part of my image build (dream/sapphire) I get the following error:

target Executable: wpa_supplicant (out/target/product/dream_sapphire/obj/EXECUTABLES/wpa_supplicant_intermediates/LINKED/wpa_supplicant)
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/dream_sapphire/obj/EXECUTABLES/wpa_supplicant_intermediates/src/crypto/crypto_openssl.o: in function dh5_init:external/wpa_supplicant_8/wpa_supplicant/src/crypto/crypto_openssl.c:60: error: undefined reference to 'get_rfc3526_prime_1536'

The relevant part of my BoardConfig.mk is as follows:

# Wifi related defines
WPA_SUPPLICANT_VERSION := VER_0_8_X
BOARD_WPA_SUPPLICANT_DRIVER := CUSTOM
#BOARD_WPA_SUPPLICANT_PRIVATE_LIB := libWifiApi
BOARD_WLAN_TI_STA_DK_ROOT := system/wlan/ti/wilink_6_1
WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/wlan.ko"
WIFI_DRIVER_MODULE_ARG := ""
WIFI_DRIVER_MODULE_NAME := "wlan"
WIFI_FIRMWARE_LOADER := "wlan_loader"

After googling a bit, this problem seems specific to 7.1 it looks like to be caused by the openssl library...