lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] PPP: build failure due to redefinition of ‘struct vjstat’ i


From: Axel Lin
Subject: [lwip-devel] PPP: build failure due to redefinition of ‘struct vjstat’ if PPP_STATS_SUPPORT
Date: Thu, 13 Apr 2017 09:23:41 +0800

Hi,
I got below build error if #define PPP_STATS_SUPPORT 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/core/init.c
In file included from ../../../../lwip/src/core/init.c:62:0:
../../../../lwip/src/include/netif/ppp/ppp_impl.h:184:8: error:
redefinition of ‘struct vjstat’
 struct vjstat {
        ^~~~~~
In file included from ../../../../lwip/src/include/netif/ppp/ppp.h:188:0,
                 from ../../../../lwip/src/include/netif/ppp/ppp_impl.h:53,
                 from ../../../../lwip/src/core/init.c:62:
../../../../lwip/src/include/netif/ppp/vj.h:122:8: note: originally defined here
 struct vjstat {
        ^~~~~~
../../Common.allports.mk:94: recipe for target 'init.o' failed
make: *** [init.o] Error 1



reply via email to

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