cancel
Showing results for 
Search instead for 
Did you mean: 

Errors building lwip

mfm
Associate II
Posted on October 28, 2013 at 14:05

Hello,

While trying to build thehttpserver_socket project with FreeRtos (STM32F4xx_Ethernet_Example\Project\FreeRTOS\httpserver_socket\EWARM\Project.eww) I've got the following messages:

Warning[Pe047]: incompatible redefinition of macro ''EILSEQ'' (declared at line 40 of ''C:\Program Files\IAR Systems\Embedded Workbench 6.5\arm\inc\c\errno.h'') D:\STM32F4xx_Ethernet_Example\Utilities\lwip_v1.3.2\src\include\lwip\arch.h 159 
Warning[Pe223]: function ''lwip_fcntl'' declared implicitly D:\STM32F4xx_Ethernet_Example\Project\FreeRTOS\httpserver_socket\src\platform\lwip_udp.c 304 
Error[Pe020]: identifier ''F_GETFL'' is undefined D:\STM32F4xx_Ethernet_Example\Project\FreeRTOS\httpserver_socket\src\platform\lwip_udp.c 304 
Warning[Pe223]: function ''lwip_fcntl'' declared implicitly D:\STM32F4xx_Ethernet_Example\Project\FreeRTOS\httpserver_socket\src\platform\lwip_udp.c 307 
Error[Pe020]: identifier ''F_SETFL'' is undefined D:\STM32F4xx_Ethernet_Example\Project\FreeRTOS\httpserver_socket\src\platform\lwip_udp.c 307 
Error[Pe020]: identifier ''ssize_t'' is undefined D:\STM32F4xx_Ethernet_Example\Project\FreeRTOS\httpserver_socket\src\platform\lwip_udp.c 466 
Warning[Pe223]: function ''memset'' declared implicitly D:\STM32F4xx_Ethernet_Example\Project\FreeRTOS\httpserver_socket\src\platform\lwip_udp.c 614 

Any idea how to resolve that, especially for the missing declarations? Regards, Fahmi #understand-your-tools
4 REPLIES 4
Posted on October 28, 2013 at 14:27

It looks like it's using the includes/defines from IAR rather than the ones from within the project.

Consider how the project is set up (version of IAR?), and the search paths for the include files, and where they point, in preference to the default ones IAR might use.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
mfm
Associate II
Posted on October 28, 2013 at 18:10

The include files are well defined. I'm using IAR 6.60

Posted on October 28, 2013 at 18:32

The include files are well defined. I'm using IAR 6.60

Evidently, yet it doesn't compile, bit strange then? Why is it loading an IAR include file and choking, explain?

I assumed 6.5 (based on path), was the project created for that or 5.xx?
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
mfm
Associate II
Posted on October 29, 2013 at 08:49

The version of IAR is 6.60 although the path is 6.5. The AN doesn't state which version should be used, but from the .ewp I guess the project was build with version 6.40.

Now, this is what I really care about:

D:\STM32F4xx_Ethernet_Example\Utilities\lwip_v1.3.2\src\include\lwip\arch.h 159

Warning[Pe223]: function ''lwip_fcntl'' declared implicitly 

I can't find any trace of it in lwip_v1.3.2, but I found it in lwip v1.4.1.

Thank you for your support!