Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

idf.py build error: implicit declaration of function 'DHCP_REQUEST_BACKOFF_SEQUENCE' (IDFGH-14268) #15061

Closed
3 tasks done
iaMartin8820 opened this issue Dec 19, 2024 · 1 comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally Type: Bug bugs in IDF

Comments

@iaMartin8820
Copy link

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.1 v5.0 v5.3.2

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?

$ idf.py build
Running cmake in directory /path/to/hello_world/build
Executing "cmake -G Ninja --warn-uninitialized /path/to/hello_world"...
Warn about uninitialized values.
-- Found Git: /usr/bin/git (found version "2.17.0")
-- Building empty aws_iot component due to configuration
-- Component names: ...
-- Component paths: ...

... (more lines of build system output)

[527/527] Generating hello_world.bin
esptool.py v2.3.1

Project build complete. To flash, run this command:
../../../components/esptool_py/esptool/esptool.py -p (PORT) -b 921600 write_flash --flash_mode dio --flash_size detect --flash_freq 40m 0x10000 build/hello_world.bin build 0x1000 build/bootloader/bootloader.bin 0x8000 build/partition_table/partition-table.bin
or run 'idf.py -p PORT flash'

What is the actual behavior?

esp/esp-idf/components/lwip/lwip/src/core/ipv4/dhcp.c: In function 'dhcp_select':
esp/esp-idf/components/lwip/lwip/src/core/ipv4/dhcp.c:522:11: error: implicit declaration of function 'DHCP_REQUEST_BACKOFF_SEQUENCE'; did you mean 'DHCP_REQUEST_TIMEOUT_SEQUENCE'? [-Werror=implicit-function-declaration]

Steps to reproduce.

mkdir -p ~/esp
cd ~/esp
git clone --recursive https://github.com/espressif/esp-idf.git

cd ~/esp/esp-idf
./install.sh esp32,esp32s2

./install.sh all

export IDF_TOOLS_PATH="$HOME/required_idf_tools_path"
./install.sh

. ./export.sh
cd ~/esp
cp -r $IDF_PATH/examples/get-started/hello_world .
cd ~/esp/hello_world
idf.py set-target esp32
idf.py menuconfig
idf.py build

Build or installation Logs.

No response

More Information.

Macbook Apple M4 ver15.2

@iaMartin8820 iaMartin8820 added the Type: Bug bugs in IDF label Dec 19, 2024
@github-actions github-actions bot changed the title idf.py build error: implicit declaration of function 'DHCP_REQUEST_BACKOFF_SEQUENCE' idf.py build error: implicit declaration of function 'DHCP_REQUEST_BACKOFF_SEQUENCE' (IDFGH-14268) Dec 19, 2024
@espressif-bot espressif-bot added the Status: Opened Issue is new label Dec 19, 2024
@iaMartin8820
Copy link
Author

I have solved this issue.

The solution is as follows

git submodule update --init --recursive

@espressif-bot espressif-bot added Status: Done Issue is done internally Resolution: Done Issue is done internally and removed Status: Opened Issue is new labels Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally Type: Bug bugs in IDF
Projects
None yet
Development

No branches or pull requests

2 participants