(.text.zboss_signal_handler+0x34): undefined reference to `esp_zb_app_signal_handler'

cassianocampes
Posts: 9
Joined: Sun Jun 04, 2023 11:19 pm

(.text.zboss_signal_handler+0x34): undefined reference to `esp_zb_app_signal_handler'

Postby cassianocampes » Tue Jan 09, 2024 12:42 pm

After updating the esp-idf to branch v5.4-dev, I am getting this error when trying to compile some zigbee examples:

Code: Select all

(.text.zboss_signal_handler+0x34): undefined reference to `esp_zb_app_signal_handler'
And, by checking at the managed_components folder, the headers are correct, and the signature of the function is there.
Below is a grep I did to find the function signature, and it found the following:

Code: Select all

./managed_components/espressif__esp-zigbee-lib/include/esp_zigbee_core.h:143: * @brief The application signal struct for esp_zb_app_signal_handler
./managed_components/espressif__esp-zigbee-lib/include/esp_zigbee_core.h:511: * complete, @ref esp_zb_app_signal_handler is called, so application will know when to do
./managed_components/espressif__esp-zigbee-lib/include/esp_zigbee_core.h:567: * @anchor esp_zb_app_signal_handler
./managed_components/espressif__esp-zigbee-lib/include/esp_zigbee_core.h:574:void esp_zb_app_signal_handler(esp_zb_app_signal_t *signal_s);
UPDATE

Checking the file dependencies.lock, I have this:

Code: Select all

dependencies:
  espressif/esp-zboss-lib:
    component_hash: 9dc1059b8a6695580ab0324d41f2f88e324c1486b196e20d087f3dcb78c1c654
    source:
      service_url: https://api.components.espressif.com/
      type: service
    version: 1.0.7
  espressif/esp-zigbee-lib:
    component_hash: 3171496afcbdf5c370a3f74f6bc6a7e3196227438b0405d8714796c9d6f68a36
    source:
      service_url: https://api.components.espressif.com/
      type: service
    version: 1.0.7
  idf:
    component_hash: null
    source:
      type: idf
    version: 5.2.0
manifest_hash: fbf9aa49681c39d3e1d6dfdc852aa22e21bf863c873ffe7692406584ec2b1f9f
target: esp32c6
version: 1.0.0

cassianocampes
Posts: 9
Joined: Sun Jun 04, 2023 11:19 pm

Re: (.text.zboss_signal_handler+0x34): undefined reference to `esp_zb_app_signal_handler'

Postby cassianocampes » Thu Jan 11, 2024 1:18 pm

I found the problem, this function is user-defined, which means, I should implement it.

SOLVED.

Bigsegs
Posts: 1
Joined: Mon May 05, 2025 6:20 pm

Re: (.text.zboss_signal_handler+0x34): undefined reference to `esp_zb_app_signal_handler'

Postby Bigsegs » Mon May 05, 2025 6:22 pm

just to further this.. I tried to export this function once defined into another folder for clarity as my main.c was crowded..
Cant do it.. after wasting an entire day of getting linker errors saying undefined reference.. etc.. it just wasnt being pulled into the build for whatever reason and that reason turns out to be that it absolutely must be in the main.c file. what an absolute nightmare..

Who is online

Users browsing this forum: Baidu [Spider], ChatGPT-User, PerplexityBot, PetalBot, Qwantbot, Semrush [Bot] and 5 guests