Skip to content

编译时提示esp_wifi_sta_set_reset_nvs_pmk_internal (IDFGH-16730) #17817

@mykonica

Description

@mykonica

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

v5.5.1-418-gf1a1df9b2e

Operating System used.

macOS

How did you build your project?

Command line with idf.py

If you are using Windows, please specify command line type.

None

What is the expected behavior?

编译正常

What is the actual behavior?

我的系统是15.6.1,xcode版本16.2。
编译时报错如下:
/Users/hxg/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20250730/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/14.2.0/../../../../xtensa-esp-elf/bin/ld: /Users/hxg/esp/esp-idf/components/esp_wifi/lib/esp32/libnet80211.a(ieee80211_ioctl.o): in function wifi_nan_set_config_local': (.text.wifi_nan_set_config_local+0x20): multiple definition of wifi_nan_set_config_local'; esp-idf/esp_wifi/libesp_wifi.a(wifi_init.c.obj):/Users/hxg/esp/esp-idf/components/esp_wifi/src/wifi_init.c:692: first defined here
/Users/hxg/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20250730/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/14.2.0/../../../../xtensa-esp-elf/bin/ld: /Users/hxg/esp/esp-idf/components/esp_wifi/lib/esp32/libnet80211.a(ieee80211.o): in function wifi_create_nan': (.text.wifi_create_nan+0x20): multiple definition of wifi_create_nan'; esp-idf/esp_wifi/libesp_wifi.a(wifi_init.c.obj):/Users/hxg/esp/esp-idf/components/esp_wifi/src/wifi_init.c:686: first defined here
/Users/hxg/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20250730/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/14.2.0/../../../../xtensa-esp-elf/bin/ld: /Users/hxg/esp/esp-idf/components/esp_wifi/lib/esp32/libnet80211.a(ieee80211_nan_datapath.o): in function nan_dp_search_node': (.wifi0iram.8+0x1c): multiple definition of nan_dp_search_node'; esp-idf/esp_wifi/libesp_wifi.a(wifi_init.c.obj):/Users/hxg/esp/esp-idf/components/esp_wifi/src/wifi_init.c:709: first defined here
/Users/hxg/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20250730/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/14.2.0/../../../../xtensa-esp-elf/bin/ld: /Users/hxg/esp/esp-idf/components/esp_wifi/lib/esp32/libnet80211.a(ieee80211_nan_datapath.o): in function nan_dp_delete_peer': (.text.nan_dp_delete_peer+0x2c): multiple definition of nan_dp_delete_peer'; esp-idf/esp_wifi/libesp_wifi.a(wifi_init.c.obj):/Users/hxg/esp/esp-idf/components/esp_wifi/src/wifi_init.c:704: first defined here
/Users/hxg/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20250730/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/14.2.0/../../../../xtensa-esp-elf/bin/ld: /Users/hxg/esp/esp-idf/components/esp_wifi/lib/esp32/libnet80211.a(ieee80211_nan_datapath.o): in function nan_dp_post_tx': (.text.nan_dp_post_tx+0x24): multiple definition of nan_dp_post_tx'; esp-idf/esp_wifi/libesp_wifi.a(wifi_init.c.obj):/Users/hxg/esp/esp-idf/components/esp_wifi/src/wifi_init.c:698: first defined here
/Users/hxg/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20250730/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/14.2.0/../../../../xtensa-esp-elf/bin/ld: /Users/hxg/esp/esp-idf/components/esp_wifi/lib/esp32/libnet80211.a(ieee80211_nan_datapath.o): in function nan_ndp_resp_timeout_process': (.text.nan_ndp_resp_timeout_process+0x2c): multiple definition of nan_ndp_resp_timeout_process'; esp-idf/esp_wifi/libesp_wifi.a(wifi_init.c.obj):/Users/hxg/esp/esp-idf/components/esp_wifi/src/wifi_init.c:715: first defined here
/Users/hxg/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20250730/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/14.2.0/../../../../xtensa-esp-elf/bin/ld: /Users/hxg/esp/esp-idf/components/esp_wifi/lib/esp32/libnet80211.a(ieee80211_hostap.o): in function hostap_query_mac_in_list': (.text.hostap_query_mac_in_list+0x1c): multiple definition of hostap_query_mac_in_list'; esp-idf/esp_wifi/libesp_wifi.a(wifi_init.c.obj):/Users/hxg/esp/esp-idf/components/esp_wifi/src/wifi_init.c:637: first defined here
/Users/hxg/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20250730/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/14.2.0/../../../../xtensa-esp-elf/bin/ld: /Users/hxg/esp/esp-idf/components/esp_wifi/lib/esp32/libnet80211.a(ieee80211_hostap.o): in function hostap_add_in_mac_list': (.text.hostap_add_in_mac_list+0x30): multiple definition of hostap_add_in_mac_list'; esp-idf/esp_wifi/libesp_wifi.a(wifi_init.c.obj):/Users/hxg/esp/esp-idf/components/esp_wifi/src/wifi_init.c:643: first defined here
/Users/hxg/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20250730/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/14.2.0/../../../../xtensa-esp-elf/bin/ld: /Users/hxg/esp/esp-idf/components/esp_wifi/lib/esp32/libnet80211.a(ieee80211_hostap.o): in function hostap_del_mac_info_from_list': (.text.hostap_del_mac_info_from_list+0x28): multiple definition of hostap_del_mac_info_from_list'; esp-idf/esp_wifi/libesp_wifi.a(wifi_init.c.obj):/Users/hxg/esp/esp-idf/components/esp_wifi/src/wifi_init.c:649: first defined here
/Users/hxg/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20250730/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/14.2.0/../../../../xtensa-esp-elf/bin/ld: /Users/hxg/esp/esp-idf/components/esp_wifi/lib/esp32/libnet80211.a(ieee80211_hostap.o): in function create_new_bss_for_sa_query_failed_sta': (.text.create_new_bss_for_sa_query_failed_sta+0x2c): multiple definition of create_new_bss_for_sa_query_failed_sta'; esp-idf/esp_wifi/libesp_wifi.a(wifi_init.c.obj):/Users/hxg/esp/esp-idf/components/esp_wifi/src/wifi_init.c:655: first defined here
/Users/hxg/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20250730/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/14.2.0/../../../../xtensa-esp-elf/bin/ld: esp-idf/esp_wifi/libesp_wifi.a(wifi_init.c.obj):(.literal.pm_beacon_offset_funcs_init+0x0): undefined reference to pm_beacon_offset_funcs_empty_init' /Users/hxg/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20250730/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/14.2.0/../../../../xtensa-esp-elf/bin/ld: esp-idf/esp_wifi/libesp_wifi.a(wifi_init.c.obj): in function pm_beacon_offset_funcs_init':
/Users/hxg/esp/esp-idf/components/esp_wifi/src/wifi_init.c:507:(.text.pm_beacon_offset_funcs_init+0x3): undefined reference to pm_beacon_offset_funcs_empty_init' /Users/hxg/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20250730/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/14.2.0/../../../../xtensa-esp-elf/bin/ld: esp-idf/wpa_supplicant/libwpa_supplicant.a(wpa.c.obj):(.literal.wpa_set_passphrase+0x0): undefined reference to esp_wifi_sta_get_reset_nvs_pmk_internal'
/Users/hxg/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20250730/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/14.2.0/../../../../xtensa-esp-elf/bin/ld: esp-idf/wpa_supplicant/libwpa_supplicant.a(wpa.c.obj):(.literal.wpa_set_passphrase+0x4): undefined reference to esp_wifi_sta_set_reset_nvs_pmk_internal' /Users/hxg/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20250730/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/14.2.0/../../../../xtensa-esp-elf/bin/ld: esp-idf/wpa_supplicant/libwpa_supplicant.a(wpa.c.obj): in function wpa_set_passphrase':
/Users/hxg/esp/esp-idf/components/wpa_supplicant/src/rsn_supp/wpa.c:2494:(.text.wpa_set_passphrase+0x3e): undefined reference to esp_wifi_sta_get_reset_nvs_pmk_internal' /Users/hxg/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20250730/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/14.2.0/../../../../xtensa-esp-elf/bin/ld: /Users/hxg/esp/esp-idf/components/wpa_supplicant/src/rsn_supp/wpa.c:2506:(.text.wpa_set_passphrase+0x8e): undefined reference to esp_wifi_sta_set_reset_nvs_pmk_internal'
collect2: error: ld returned 1 exit status

Steps to reproduce.

  1. Step
  2. Step
  3. Step
    ...

Build or installation Logs.


Diagnostic report archive.

No response

More Information.

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions