Closed xobs closed 1 year ago
To add: The sdkconfig is from an existing project -- specifically, from https://github.com/farpatch/farpatch/blob/main/sdkconfig.defaults
For testing, I copied this sdkconfig to examples/network/network_tests
and ran idf.py build
This appears to be caused when CONFIG_LWIP_DHCP_RESTORE_LAST_IP
is enabled.
The following patch works around the issue:
diff --git a/components/lwip/CMakeLists.txt b/components/lwip/CMakeLists.txt
index 22ceb1de84..671da81e20 100644
--- a/components/lwip/CMakeLists.txt
+++ b/components/lwip/CMakeLists.txt
@@ -156,7 +156,7 @@ if(CONFIG_LWIP_DHCPS)
endif()
if(CONFIG_LWIP_DHCP_RESTORE_LAST_IP)
- list(APPEND srcs "port/esp32/netif/dhcp_state.c")
+ list(APPEND srcs "port/esp32xx/netif/dhcp_state.c")
endif()
idf_component_register(SRCS "${srcs}"
@xobs Thanks for your report and finding the rootcase -- Please feel free to post your fix in https://github.com/espressif/esp-idf/pulls
An action point from our side is to extend our test configuration to cover this config CONFIG_LWIP_DHCP_RESTORE_LAST_IP
as well
Thanks @david-cermak -- I opened #10690
Answers checklist.
IDF version.
v5.1-dev-3153-g2707c95a5f
Operating System used.
Windows
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
PowerShell
What is the expected behavior?
Projects should continue to build
What is the actual behavior?
During a compile, the following error was emitted:
Steps to reproduce.
Build or installation Logs.