Skip to content

Conflicting declaration on variable INADDR_NONE #6787

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

Closed
1 task done
tsctrl opened this issue May 22, 2022 · 3 comments
Closed
1 task done

Conflicting declaration on variable INADDR_NONE #6787

tsctrl opened this issue May 22, 2022 · 3 comments
Assignees
Labels
Resolution: More info needed More info must be provided in this issue Type: Question Only question

Comments

@tsctrl
Copy link

tsctrl commented May 22, 2022

Board

ESP32 Dev Module

Device Description

DevkitC

Hardware Configuration

Version

v2.0.3

IDE Name

IDF Component, Arduino IDE

Operating System

Windows 10

Flash frequency

40MHz

PSRAM enabled

no

Upload speed

115200

Description

Build Failed. Conflicting declaration on variable INADDR_NONE

error: ambiguous overload for types 'IPAddress' and 'u32_t' components/lwip/lwip/src/include/lwip/inet.h

extern IPAddress INADDR_NONE;

https://github.com/espressif/esp-lwip/blob/76303df2386902e0d7873be4217f1d9d1b50f982/src/include/lwip/inet.h#L71

Sketch

-

Debug Message

-

Other Steps to Reproduce

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@tsctrl tsctrl added the Status: Awaiting triage Issue is waiting for triage label May 22, 2022
@SuGlider
Copy link
Collaborator

Duplicated #6760

@tsctrl
Please read #6760 and check if your issue is similar.
In general, this conflict depends on the order of file including.
It only happens when mixing IDF and Arduino, for which we can't help, given it goes beyond ESP32 Arduino Framework.

@SuGlider SuGlider self-assigned this May 22, 2022
@SuGlider SuGlider added Resolution: More info needed More info must be provided in this issue Type: Question Only question and removed Status: Awaiting triage Issue is waiting for triage labels May 22, 2022
@tsctrl
Copy link
Author

tsctrl commented May 23, 2022

yup same issue, just different library. and my case official Arduino Ethernet library function to check if dns is working.
here github.com/arduino-libraries/Ethernet

not sure if the fix mention will fix this issue, closing this issue as per solution added in the referenced pr above.

@tsctrl tsctrl closed this as completed May 23, 2022
@SuGlider
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: More info needed More info must be provided in this issue Type: Question Only question
Projects
None yet
Development

No branches or pull requests

2 participants