Open 0xFEEDC0DE64 opened 5 months ago
Hi @0xFEEDC0DE64
This is probably a regression from c30f2825d5 (added a forwarding layer for some potentially thread unsafe lwip API to espressif wrappers). This is probably causing trouble when building your project with some custom lwip features (not selected by Kconfig options), I wasn't able to reproduce it, though. I'd like to know how you're building and enabling the SNMP module.
We protect this compat layer with ESP_LWIP_COMPONENT_BUILD
macro, so it's not taken into account when building lwip component. I guess you can workaround this issue by defining this macro for the component using SNMP (or adding the SNMP build to the lwip library).
Adding this line to the component makefile (maybe main
component?) may fix the issue:
target_compile_definitions(${COMPONENT_LIB} PRIVATE ESP_LWIP_COMPONENT_BUILD)
@0xFEEDC0DE64 Could you please share more details on how you're building your project with snmp
module?
this seems unrelated to c30f2825d554dfe25afa450bb6aaa3aeb58782ef since you're also getting errors on sntp_getoperatingmode()
API
Using latest master of esp-idf,
I get compiler errors when including
lwip/apps/snmp.h
: