martin-ger / esp_peap_psk

A WPA2-PEAP to WPA2-PSK converter
26 stars 12 forks source link

undefined reference to `wifi_station_clear_enterprise_identity' #1

Open claudiosousa opened 6 years ago

claudiosousa commented 6 years ago

I've built esp-open-sdk, but when trying to 'make' esp_peap_psk, I'm getting "undefined reference to `wifi_station_clear_enterprise_identity'"

D build/app.out build/app_app.a(user_main.o):(.text+0x2c): undefined reference to wifi_station_clear_enterprise_identity' build/app_app.a(user_main.o): In functionwifi_handle_event_cb': /home/claudio/Documents/git/esp_peap_psk/user/user_main.c:22: undefined reference to wifi_station_clear_enterprise_identity' build/app_app.a(user_main.o):(.irom0.text+0x40): undefined reference towifi_station_set_enterprise_identity' build/app_app.a(user_main.o): In function user_init': /home/claudio/Documents/git/esp_peap_psk/user/user_main.c:106: undefined reference towifi_station_set_enterprise_identity' collect2: error: ld returned 1 exit status Makefile:119: recipe for target 'build/app.out' failed make: *** [build/app.out] Error 1

Can't see wifi_station_clear_enterprise_identity defined nor esp-open-sdk on nor on esp_peap_psk

bonnefoi commented 6 years ago

The same for me...

martin-ger commented 6 years ago

You need to install the latest NONOS-SDK 2.1.0 (see esp-open-sdk Makefile), there it is included: https://github.com/espressif/ESP8266_NONOS_SDK/blob/master/include/wpa2_enterprise.h

notdeclan commented 6 years ago

I have the NONOS SDK 2.1.0 installed however I still have this error.

martin-ger commented 6 years ago

Did you change the reference in the beginning of the Makefile in the root directory of the esp-open-sdk?

# Vendor SDK version to install, see VENDOR_SDK_ZIP_* vars below
# for supported versions.
VENDOR_SDK = 2.1.0
notdeclan commented 6 years ago

Yes, and I have tried rebuilding the SDK on another machine, both with the VENDOR_SDK set to 2.1.0

martin-ger commented 6 years ago

Please check with "nm libwpa2.a | grep enterprise_identity", whether the file ".../esp-open-sdk/sdk/lib/libwpa2.a" contains:

00000010 T wifi_station_clear_enterprise_identity
...
00000024 T wifi_station_set_enterprise_identity

If not, you have for some reasons not the latest libwpa2.a, if yes, you are probably linking the wrong lib?

notdeclan commented 6 years ago

Fixed this issue by using the version 2.1.0-18-g61248df in the "./esp-open-sdk/Makefile" Makefile

VENDOR_SDK = 2.1.0-18-g61248df