lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] Re: Compilation Errors in the Updated Code (IPv6)


From: Ivan Delamer
Subject: [lwip-devel] Re: Compilation Errors in the Updated Code (IPv6)
Date: Thu, 17 Feb 2011 10:40:13 -0700 (MST)
User-agent: SquirrelMail/1.4.9a

Anil,

Thanks for the contribution. SNMP and Socket API are relatively untested
with IPv6 support, I will add your modifications to the next version of
the patch.

Cheers
Ivan


> Date: Thu, 17 Feb 2011 01:55:53 -0800 (PST)
> From: Anil M <address@hidden>
> Subject: [lwip-devel] Compilation Errors in the Updated Code (IPv6)
> To: address@hidden
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset=us-ascii
>
>
> Hi All,
>
> I have taken lwip-1.4.0.rc1 code from VSS and applied
> 2011-01-18_IPv6_for_LwIP_1_4_0_RC1_patch.zip on top of the code.
>
> When i am trying to compile the code in Microsoft Visual Studio 2008, with
> LWIP_IPV6, i am facing the below errors.
>
> 1. src\core\snmp\mib2.c
>
> 1>mib2.c
> 1>..\..\..\src\core\snmp\mib2.c(1798) : warning C4133: 'function' :
> incompatible types - from '*' to 'ip_addr_t *'
> 1>..\..\..\src\core\snmp\mib2.c(1851) : warning C4133: 'function' :
> incompatible types - from '*' to 'ip_addr_t *'
> 1>..\..\..\src\core\snmp\mib2.c(1860) : error C2039: 'addr' : is not a
> member of '<unnamed-tag>'
> 1>        F:\Working\Rakesh\LWIP_DIR\src\include\lwip/udp.h(114) : see
> declaration of '<unnamed-tag>'
> 1>..\..\..\src\core\snmp\mib2.c(1860) : error C2039: 'addr' : is not a
> member of '<unnamed-tag>'
> 1>        F:\Working\Rakesh\LWIP_DIR\src\include\lwip/udp.h(114) : see
> declaration of '<unnamed-tag>'
> 1>..\..\..\src\core\snmp\mib2.c(3892) : error C2039: 'addr' : is not a
> member of '<unnamed-tag>'
> 1>        F:\Working\Rakesh\LWIP_DIR\src\include\lwip/udp.h(114) : see
> declaration of '<unnamed-tag>'
>
>
> I am able to fix this problem, please check the below code changes:
>
> line 1798:   snmp_iptooid(&pcb->local_ip.ip4, &udpidx[0]);
>
> line 1851:   snmp_iptooid(&pcb->local_ip.ip4, &udpidx[0]);
>
> line 1860: if (ip_addr_cmp(&npcb->local_ip.ip4, &pcb->local_ip.ip4) &&
>
> line 3892:      !(ip_addr_cmp(&pcb->local_ip.ip4, &ip) &&
>
> 2. src\api\sockets.c
>
> 1>sockets.c
> 1>..\..\..\src\api\sockets.c(464) : error C2121: '#' : invalid character :
> possibly the result of a macro expansion
> 1>..\..\..\src\api\sockets.c(464) : error C2059: syntax error : 'if'
> 1>..\..\..\src\api\sockets.c(464) : error C2121: '#' : invalid character :
> possibly the result of a macro expansion
> 1>..\..\..\src\api\sockets.c(464) : error C2121: '#' : invalid character :
> possibly the result of a macro expansion
> 1>..\..\..\src\api\sockets.c(464) : error C2059: syntax error : '}'
> 1>..\..\..\src\api\sockets.c(547) : error C2121: '#' : invalid character :
> possibly the result of a macro expansion
> 1>..\..\..\src\api\sockets.c(547) : error C2059: syntax error : 'if'
> 1>..\..\..\src\api\sockets.c(547) : error C2121: '#' : invalid character :
> possibly the result of a macro expansion
> 1>..\..\..\src\api\sockets.c(547) : error C2121: '#' : invalid character :
> possibly the result of a macro expansion
> 1>..\..\..\src\api\sockets.c(547) : error C2059: syntax error : '}'
> 1>..\..\..\src\api\sockets.c(961) : error C2121: '#' : invalid character :
> possibly the result of a macro expansion
> 1>..\..\..\src\api\sockets.c(961) : error C2059: syntax error : 'if'
> 1>..\..\..\src\api\sockets.c(961) : error C2121: '#' : invalid character :
> possibly the result of a macro expansion
> 1>..\..\..\src\api\sockets.c(961) : error C2121: '#' : invalid character :
> possibly the result of a macro expansion
> 1>..\..\..\src\api\sockets.c(961) : error C2059: syntax error : '}'
>
> I have found the problem, the problem is with LWIP_ERROR statement in the
> above lines. LWIP_ERROR macro will take 3 arguments, but the statement in
> the above lines has 4 arguments.
> Please let me know the fix for this problem.
>
> Thanks for your support.
>
> Regards,
> Anil Kumar Maguluri
> --
> View this message in context:
> http://old.nabble.com/Compilation-Errors-in-the-Updated-Code-%28IPv6%29-tp30948154p30948154.html
> Sent from the lwip-devel mailing list archive at Nabble.com.
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]