espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.34k stars 7.21k forks source link

"ESP_DHCP_DEBUG" is undeclared", problem building with docker container esp-idf 4.1.3 (IDFGH-7860) #9387

Open madeinaus opened 2 years ago

madeinaus commented 2 years ago

Environment

docker image: "docker pull espressif/idf:v4.1.3"

Problem Description

"ESP_DHCP_DEBUG" is undeclared

Expected Behavior

build completed

Actual Behavior

/opt/esp/idf/components/lwip/lwip/src/core/ipv4/dhcp.c:292:15: error: 'ESP_DHCP_DEBUG' undeclared (first use in this function); did you mean 'DHCP_DEBUG'?

Steps to reproduce

  1. docker pull espressif/idf:v4.1.3
  2. docker run --rm -it espressif/idf:v4.1.3
  3. (change to docker terminal session)
  4. mkdir project
  5. cp -r opt/esp/idf/examples/ethernet/basic project
  6. cd project
  7. idf.py build

example project builds correctly in idf:v4.1.2. Problem is in lwip core: not limited to 'example' projects.

MaxwellAlan commented 2 years ago

Hi @madeinaus Test in my local environment, it works well. Can you try below command in IDF root path git submodule update --init --recursive