You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider, I want to use lwip active pcb list in the app
(following is just a means to try to access tcp_pcb struct members, as we only forward-declare it by default as struct tcp_pcb; in esp8266wifi user-side header, so I must add tcp.h)
In file included from /home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/tools/sdk/lwip2/include/lwip/tcp.h:45:0,
from src/main.cpp:7:
/home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/tools/sdk/lwip2/include/lwip/tcpbase.h:57:17: error: redeclaration of 'CLOSED'
CLOSED = 0,
^
In file included from /home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/libraries/ESP8266WiFi/src/ESP8266WiFi.h:28:0,
from src/main.cpp:2:
/home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/libraries/ESP8266WiFi/src/include/wl_definitions.h:73:3: note: previous declaration 'wl_tcp_state CLOSED'
CLOSED = 0,
^
In file included from /home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/tools/sdk/lwip2/include/lwip/tcp.h:45:0,
from src/main.cpp:7:
/home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/tools/sdk/lwip2/include/lwip/tcpbase.h:58:17: error: redeclaration of 'LISTEN'
LISTEN = 1,
^
In file included from /home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/libraries/ESP8266WiFi/src/ESP8266WiFi.h:28:0,
from src/main.cpp:2:
/home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/libraries/ESP8266WiFi/src/include/wl_definitions.h:74:3: note: previous declaration 'wl_tcp_state LISTEN'
LISTEN = 1,
^
In file included from /home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/tools/sdk/lwip2/include/lwip/tcp.h:45:0,
from src/main.cpp:7:
/home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/tools/sdk/lwip2/include/lwip/tcpbase.h:59:17: error: redeclaration of 'SYN_SENT'
SYN_SENT = 2,
^
In file included from /home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/libraries/ESP8266WiFi/src/ESP8266WiFi.h:28:0,
from src/main.cpp:2:
/home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/libraries/ESP8266WiFi/src/include/wl_definitions.h:75:3: note: previous declaration 'wl_tcp_state SYN_SENT'
SYN_SENT = 2,
^
In file included from /home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/tools/sdk/lwip2/include/lwip/tcp.h:45:0,
from src/main.cpp:7:
/home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/tools/sdk/lwip2/include/lwip/tcpbase.h:60:17: error: redeclaration of 'SYN_RCVD'
SYN_RCVD = 3,
^
In file included from /home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/libraries/ESP8266WiFi/src/ESP8266WiFi.h:28:0,
from src/main.cpp:2:
/home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/libraries/ESP8266WiFi/src/include/wl_definitions.h:76:3: note: previous declaration 'wl_tcp_state SYN_RCVD'
SYN_RCVD = 3,
^
In file included from /home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/tools/sdk/lwip2/include/lwip/tcp.h:45:0,
from src/main.cpp:7:
/home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/tools/sdk/lwip2/include/lwip/tcpbase.h:61:17: error: redeclaration of 'ESTABLISHED'
ESTABLISHED = 4,
^
In file included from /home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/libraries/ESP8266WiFi/src/ESP8266WiFi.h:28:0,
from src/main.cpp:2:
/home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/libraries/ESP8266WiFi/src/include/wl_definitions.h:77:3: note: previous declaration 'wl_tcp_state ESTABLISHED'
ESTABLISHED = 4,
^
In file included from /home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/tools/sdk/lwip2/include/lwip/tcp.h:45:0,
from src/main.cpp:7:
/home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/tools/sdk/lwip2/include/lwip/tcpbase.h:62:17: error: redeclaration of 'FIN_WAIT_1'
FIN_WAIT_1 = 5,
^
In file included from /home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/libraries/ESP8266WiFi/src/ESP8266WiFi.h:28:0,
from src/main.cpp:2:
/home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/libraries/ESP8266WiFi/src/include/wl_definitions.h:78:3: note: previous declaration 'wl_tcp_state FIN_WAIT_1'
FIN_WAIT_1 = 5,
^
In file included from /home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/tools/sdk/lwip2/include/lwip/tcp.h:45:0,
from src/main.cpp:7:
/home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/tools/sdk/lwip2/include/lwip/tcpbase.h:63:17: error: redeclaration of 'FIN_WAIT_2'
FIN_WAIT_2 = 6,
^
In file included from /home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/libraries/ESP8266WiFi/src/ESP8266WiFi.h:28:0,
from src/main.cpp:2:
/home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/libraries/ESP8266WiFi/src/include/wl_definitions.h:79:3: note: previous declaration 'wl_tcp_state FIN_WAIT_2'
FIN_WAIT_2 = 6,
^
In file included from /home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/tools/sdk/lwip2/include/lwip/tcp.h:45:0,
from src/main.cpp:7:
/home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/tools/sdk/lwip2/include/lwip/tcpbase.h:64:17: error: redeclaration of 'CLOSE_WAIT'
CLOSE_WAIT = 7,
^
In file included from /home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/libraries/ESP8266WiFi/src/ESP8266WiFi.h:28:0,
from src/main.cpp:2:
/home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/libraries/ESP8266WiFi/src/include/wl_definitions.h:80:3: note: previous declaration 'wl_tcp_state CLOSE_WAIT'
CLOSE_WAIT = 7,
^
In file included from /home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/tools/sdk/lwip2/include/lwip/tcp.h:45:0,
from src/main.cpp:7:
/home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/tools/sdk/lwip2/include/lwip/tcpbase.h:65:17: error: redeclaration of 'CLOSING'
CLOSING = 8,
^
In file included from /home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/libraries/ESP8266WiFi/src/ESP8266WiFi.h:28:0,
from src/main.cpp:2:
/home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/libraries/ESP8266WiFi/src/include/wl_definitions.h:81:3: note: previous declaration 'wl_tcp_state CLOSING'
CLOSING = 8,
^
In file included from /home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/tools/sdk/lwip2/include/lwip/tcp.h:45:0,
from src/main.cpp:7:
/home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/tools/sdk/lwip2/include/lwip/tcpbase.h:66:17: error: redeclaration of 'LAST_ACK'
LAST_ACK = 9,
^
In file included from /home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/libraries/ESP8266WiFi/src/ESP8266WiFi.h:28:0,
from src/main.cpp:2:
/home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/libraries/ESP8266WiFi/src/include/wl_definitions.h:82:3: note: previous declaration 'wl_tcp_state LAST_ACK'
LAST_ACK = 9,
^
In file included from /home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/tools/sdk/lwip2/include/lwip/tcp.h:45:0,
from src/main.cpp:7:
/home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/tools/sdk/lwip2/include/lwip/tcpbase.h:67:17: error: redeclaration of 'TIME_WAIT'
TIME_WAIT = 10
^
In file included from /home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/libraries/ESP8266WiFi/src/ESP8266WiFi.h:28:0,
from src/main.cpp:2:
/home/builder/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/libraries/ESP8266WiFi/src/include/wl_definitions.h:83:3: note: previous declaration 'wl_tcp_state TIME_WAIT'
TIME_WAIT = 10
^
*** [.pio/build/d1_mini/src/main.cpp.o] Error 1
========================== [FAILED] Took 2.80 seconds ==========================
The text was updated successfully, but these errors were encountered:
Basic Infos
Platform
Settings in IDE
Problem Description
Inspecting the source of WiFiClient, I found this entry:
Arduino/libraries/ESP8266WiFi/src/WiFiClient.cpp
Line 23 in 1bb5ccf
This guards these enum values:
Arduino/libraries/ESP8266WiFi/src/include/wl_definitions.h
Lines 71 to 85 in 1bb5ccf
Which is a possible workaround for this issue.
git grep wl_tcp_state
does not show anything but thisenum wl_tcp_state
line :/MCVE Sketch
Consider, I want to use lwip active pcb list in the app
(following is just a means to try to access tcp_pcb struct members, as we only forward-declare it by default as
struct tcp_pcb;
in esp8266wifi user-side header, so I must add tcp.h)Debug Messages
The text was updated successfully, but these errors were encountered: