Package: lldpad
Version: 0.9.46-3.1
Severity: important
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-unused-const-variable

This package fails to build with GCC 6.  GCC 6 has not been released
yet, but it's expected that GCC 6 will become the default compiler for
stretch.

Note that only the first error is reported; there might be more.  You
can find a snapshot of GCC 6 in experimental.  To build with GCC 6,
you can set CC=gcc-6 CXX=g++-6 explicitly.

You may be able to find out more about this issue at
https://gcc.gnu.org/gcc-6/changes.html

> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> gcc -DPACKAGE_NAME=\"lldpad\" -DPACKAGE_TARNAME=\"lldpad\" 
> -DPACKAGE_VERSION=\"0.9.46\" -DPACKAGE_STRING=\"lldpad\ 0.9.46\" 
> -DPACKAGE_BUGREPORT=\"lldp-de...@open-lldp.org\" -DPACKAGE_URL=\"\" 
> -DPACKAGE=\"lldpad\" -DVERSION=\"0.9.46\" -DYYTEXT_POINTER=1 -DSTDC_HEADERS=1 
> -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 
> -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 
> -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_ALARM=1 
> -DHAVE_GETTIMEOFDAY=1 -DHAVE_INET_NTOA=1 -DHAVE_LOCALTIME_R=1 
> -DHAVE_MEMMOVE=1 -DHAVE_MEMSET=1 -DHAVE_MKDIR=1 -DHAVE_RMDIR=1 
> -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_STRCASECMP=1 -DHAVE_STRCHR=1 
> -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRNCASECMP=1 -DHAVE_STRPBRK=1 
> -DHAVE_STRRCHR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 
> -DHAVE_UNAME=1 -DHAVE_ARPA_INET_H=1 -DHAVE_DLFCN_H=1 -DHAVE_FCNTL_H=1 
> -DHAVE_LIMITS_H=1 -DHAVE_NETDB_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_SYS_FILE_H=1 
> -DHAVE_SYS_IOCTL_
> H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYSLOG_H=1 
> -DHAVE_UNISTD_H=1 -DHAVE_CHOWN=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 
> -DHAVE_STDLIB_H=1 -DHAVE_REALLOC=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -I.  
> -I./include -DSYSCONFDIR="\"/etc\"" -D_FORTIFY_SOURCE=2 -Wdate-time 
> -D_FORTIFY_SOURCE=2 -Wall -Werror -Wextra -Wformat=2  -I/usr/include/libnl3 
> -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security 
> -fgnu89-inline -c -o lldpad.o lldpad.c
> In file included from lldp/ports.h:33:0,
>                  from lldpad.c:46:
> lldp/agent.h:53:17: error: 'nearest_customer_bridge' defined but not used 
> [-Werror=unused-const-variable]
>  static const u8 nearest_customer_bridge[ETH_ALEN] = 
> {0x01,0x80,0xc2,0x00,0x00,0x00};
>                  ^~~~~~~~~~~~~~~~~~~~~~~
> 
> lldp/agent.h:52:17: error: 'nearest_nontpmr_bridge' defined but not used 
> [-Werror=unused-const-variable]
>  static const u8 nearest_nontpmr_bridge[ETH_ALEN] = 
> {0x01,0x80,0xc2,0x00,0x00,0x03};
>                  ^~~~~~~~~~~~~~~~~~~~~~
> 
> lldp/agent.h:51:17: error: 'nearest_bridge' defined but not used 
> [-Werror=unused-const-variable]
>  static const u8 nearest_bridge[ETH_ALEN] = {0x01,0x80,0xc2,0x00,0x00,0x0e};
>                  ^~~~~~~~~~~~~~
> 
> cc1: all warnings being treated as errors
> Makefile:843: recipe for target 'lldpad.o' failed
> make[1]: *** [lldpad.o] Error 1

-- 
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise

Reply via email to