lwip-devel
[Top][All Lists]
Advanced

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

Re: [lwip-devel] unix port build failure


From: Axel Lin
Subject: Re: [lwip-devel] unix port build failure
Date: Sat, 4 Feb 2017 20:53:11 +0800

2017-02-04 20:18 GMT+08:00 D.C. van Moolenbroek <address@hidden>:
> On 2/4/2017 4:33, Axel Lin wrote:
>>
>> ../../../../lwip/src/include/lwip/ip6_zone.h:160:62: error: suggest
>> parentheses around ‘&&’ within ‘||’ [-Werror=parentheses]
>>     (ip6_addr_islinklocal(ip6addr) || (((type) != IP6_UNICAST) && \
>
>
> Good catch, thanks! That's a real bug, although fortunately one that affects
> performance only. I'll be adding a patch to task #13106 ASAP.

Yet another build error with current git code:
cc -g -Wall -DLWIP_DEBUG -pedantic -Werror -Wparentheses
-Wsequence-point -Wswitch-default -Wextra -Wundef -Wshadow
-Wpointer-arith -Wcast-qual -Wc++-compat -Wwrite-strings
-Wold-style-definition -Wcast-align -Wmissing-prototypes
-Wredundant-decls -Wnested-externs -Wno-address -Wunreachable-code
-Wuninitialized -Wlogical-op -I. -I../../..
-I../../../../lwip/src/include -I../../../ports/unix/port/include -c
../../../ports/unix/port/netif/tcpdump.c
In file included from ../../../../lwip/src/include/lwip/ip6_addr.h:50:0,
                 from ../../../../lwip/src/include/lwip/ip_addr.h:44,
                 from ../../../../lwip/src/include/lwip/ip.h:44,
                 from ../../../ports/unix/port/netif/tcpdump.c:40:
../../../ports/unix/port/netif/tcpdump.c: In function ‘tcpdump’:
../../../../lwip/src/include/lwip/ip6_zone.h:111:77: error:
‘ip6_addr_p_t {aka struct ip6_addr_packed}’ has no member named ‘zone’
 #define ip6_addr_copy_zone(ip6addr1, ip6addr2) ((ip6addr1).zone =
(ip6addr2).zone)
                                                                             ^
../../../../lwip/src/include/lwip/ip6_addr.h:104:37: note: in
expansion of macro ‘ip6_addr_copy_zone’
                                     ip6_addr_copy_zone((dest),
(src)); }while(0)
                                     ^~~~~~~~~~~~~~~~~~
../../../../lwip/src/include/lwip/ip_addr.h:135:3: note: in expansion
of macro ‘ip6_addr_copy’
   ip6_addr_copy(*ip_2_ip6(&(dest)), src); IP_SET_TYPE_VAL(dest,
IPADDR_TYPE_V6); }while(0)
   ^~~~~~~~~~~~~
../../../ports/unix/port/netif/tcpdump.c:92:5: note: in expansion of
macro ‘ip_addr_copy_from_ip6’
     ip_addr_copy_from_ip6(src, ip6hdr->src);
     ^~~~~~~~~~~~~~~~~~~~~
../../../../lwip/src/include/lwip/ip6_zone.h:111:77: error:
‘ip6_addr_p_t {aka struct ip6_addr_packed}’ has no member named ‘zone’
 #define ip6_addr_copy_zone(ip6addr1, ip6addr2) ((ip6addr1).zone =
(ip6addr2).zone)
                                                                             ^
../../../../lwip/src/include/lwip/ip6_addr.h:104:37: note: in
expansion of macro ‘ip6_addr_copy_zone’
                                     ip6_addr_copy_zone((dest),
(src)); }while(0)
                                     ^~~~~~~~~~~~~~~~~~
../../../../lwip/src/include/lwip/ip_addr.h:135:3: note: in expansion
of macro ‘ip6_addr_copy’
   ip6_addr_copy(*ip_2_ip6(&(dest)), src); IP_SET_TYPE_VAL(dest,
IPADDR_TYPE_V6); }while(0)
   ^~~~~~~~~~~~~
../../../ports/unix/port/netif/tcpdump.c:93:5: note: in expansion of
macro ‘ip_addr_copy_from_ip6’
     ip_addr_copy_from_ip6(dst, ip6hdr->dest);
     ^~~~~~~~~~~~~~~~~~~~~
../Common.mk:93: recipe for target 'tcpdump.o' failed
make: *** [tcpdump.o] Error 1



reply via email to

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