lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] build failure if LWIP_IPV6==0


From: Axel Lin
Subject: [lwip-devel] build failure if LWIP_IPV6==0
Date: Wed, 21 Jun 2017 22:59:06 +0800

With current git tree, I got below build failure in unix port build if
LWIP_IPV6==0:

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
-I../../../../mbedtls/include -Wno-redundant-decls
-DLWIP_HAVE_MBEDTLS=1 -c ../../../../lwip/src/api/netdb.c
../../../../lwip/src/api/netdb.c: In function ‘lwip_getaddrinfo’:
../../../../lwip/src/api/netdb.c:345:7: error: implicit declaration of
function ‘ip_addr_set_any_val’ [-Werror=implicit-function-declaration]
       ip_addr_set_any_val(ai_family == AF_INET6, addr);
       ^~~~~~~~~~~~~~~~~~~
../../../../lwip/src/api/netdb.c:345:7: error: nested extern
declaration of ‘ip_addr_set_any_val’ [-Werror=nested-externs]
../../../../lwip/src/api/netdb.c:347:7: error: implicit declaration of
function ‘ip_addr_set_loopback_val’
[-Werror=implicit-function-declaration]
       ip_addr_set_loopback_val(ai_family == AF_INET6, addr);
       ^~~~~~~~~~~~~~~~~~~~~~~~
../../../../lwip/src/api/netdb.c:347:7: error: nested extern
declaration of ‘ip_addr_set_loopback_val’ [-Werror=nested-externs]
cc1: all warnings being treated as errors
../../Common.allports.mk:94: recipe for target 'netdb.o' failed
make: *** [netdb.o] Error 1


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
-I../../../../mbedtls/include -Wno-redundant-decls
-DLWIP_HAVE_MBEDTLS=1 -c ../../../../lwip/src/netif/ppp/ppp.c
../../../../lwip/src/netif/ppp/ppp.c: In function ‘sdns’:
../../../../lwip/src/netif/ppp/ppp.c:1104:3: error: implicit
declaration of function ‘ip_addr_set_ip4_u32_val’
[-Werror=implicit-function-declaration]
   ip_addr_set_ip4_u32_val(ns, ns1);
   ^~~~~~~~~~~~~~~~~~~~~~~
../../../../lwip/src/netif/ppp/ppp.c:1104:3: error: nested extern
declaration of ‘ip_addr_set_ip4_u32_val’ [-Werror=nested-externs]
cc1: all warnings being treated as errors
../../Common.allports.mk:94: recipe for target 'ppp.o' failed
make: *** [ppp.o] Error 1



reply via email to

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