ESP8266 Developer Zone The Official ESP8266 Forum 2020-06-09T18:29:35+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=58172 2020-06-09T18:29:35+08:00 2020-06-09T18:29:35+08:00 https://bbs.espressif.com:443/viewtopic.php?t=58172&p=79921#p79921 <![CDATA[Re: LWIP build failure with ESP8266_RTOS_SDK]]> Statistics: Posted by Her Mary — Tue Jun 09, 2020 6:29 pm


]]>
2020-05-28T07:30:37+08:00 2020-05-28T07:30:37+08:00 https://bbs.espressif.com:443/viewtopic.php?t=58172&p=79201#p79201 <![CDATA[LWIP build failure with ESP8266_RTOS_SDK]]>

Code:

    xtensa-lx106-elf-macos-1.22.0-100-ge567ec7-5.2.0.tar.gz

Then I cloned the release/v3.3 branch of ESP8266_RTOS_SDK. This caused the build to fail on my project with:

Code:

CC build/lwip/lwip/src/api/if_api.o
In file included from /Users/cmarrin/esp/ESP8266_RTOS_SDK/components/lwip/lwip/src/api/if_api.c:49:0:
/Users/cmarrin/esp/ESP8266_RTOS_SDK/components/lwip/lwip/src/include/lwip/priv/sockets_priv.h:105:0: warning: "LWIP_SETGETSOCKOPT_MAXOPTLEN" redefined
 #define LWIP_SETGETSOCKOPT_MAXOPTLEN LWIP_MAX(16, sizeof(struct ifreq))
 ^
In file included from /Users/cmarrin/esp/ESP8266_RTOS_SDK/components/lwip/lwip/src/include/lwip/priv/sockets_priv.h:45:0,
                 from /Users/cmarrin/esp/ESP8266_RTOS_SDK/components/lwip/lwip/src/api/if_api.c:49:
/Users/cmarrin/esp/ESP8266_RTOS_SDK/components/lwip/lwip/src/include/lwip/sockets.h:115:0: note: this is the location of the previous definition
 #define LWIP_SETGETSOCKOPT_MAXOPTLEN 16
 ^
In file included from /Users/cmarrin/esp/ESP8266_RTOS_SDK/components/lwip/lwip/src/api/if_api.c:49:0:
/Users/cmarrin/esp/ESP8266_RTOS_SDK/components/lwip/lwip/src/include/lwip/priv/sockets_priv.h:109:8: error: redefinition of 'struct lwip_setgetsockopt_data'
 struct lwip_setgetsockopt_data {
        ^
In file included from /Users/cmarrin/esp/ESP8266_RTOS_SDK/components/lwip/lwip/src/include/lwip/priv/sockets_priv.h:45:0,
                 from /Users/cmarrin/esp/ESP8266_RTOS_SDK/components/lwip/lwip/src/api/if_api.c:49:
/Users/cmarrin/esp/ESP8266_RTOS_SDK/components/lwip/lwip/src/include/lwip/sockets.h:119:8: note: originally defined here
 struct lwip_setgetsockopt_data {
        ^
cc1: warning: unrecognized command line option '-Wno-frame-address'
make[1]: *** [/Users/cmarrin/esp/ESP8266_RTOS_SDK/make/component_wrapper.mk:292: lwip/src/api/if_api.o] Error 1
make: *** [/Users/cmarrin/esp/ESP8266_RTOS_SDK/make/project.mk:571: component-lwip-build] Error 2


So I went back to the examples and tried building:

Code:

    ESP8266_RTOS_SDK/examples/get-started/hello_world

and got the same error. It looks like there's some conflict in including two different headers with the same definitions. Has anyone seen this? For the hello_world example I first ran 'make menuconfig' using all the default values.

Statistics: Posted by cmarrin — Thu May 28, 2020 7:30 am


]]>