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

Bug#957034: bandwidthd: ftbfs with GCC-10



Package: src:bandwidthd
Version: 2.0.1+cvs20090917-11
Severity: normal
Tags: sid bullseye
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-10

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-10/g++-10, but succeeds to build with gcc-9/g++-9. The
severity of this report will be raised before the bullseye release,
so nothing has to be done for the buster release.

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc10-20200225/bandwidthd_2.0.1+cvs20090917-11_unstable_gcc10.log
The last lines of the build log are at the end of this report.

To build with GCC 10, either set CC=gcc-10 CXX=g++-10 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-10/porting_to.html

[...]
In file included from conf.y:12:
bandwidthd.h:250:17: warning: inline function ‘DstCredit’ declared but never defined
  250 | inline void     DstCredit(uint32_t ipaddr, unsigned int psize);
      |                 ^~~~~~~~~
In file included from conf.y:12:
bandwidthd.h:237:23: warning: inline function ‘FindIp’ declared but never defined
  237 | inline struct IPData *FindIp(uint32_t ipaddr);
      |                       ^~~~~~
bandwidthd.h:234:17: warning: inline function ‘Credit’ declared but never defined
  234 | inline void     Credit(struct Statistics *Stats, const struct ip *ip);
      |                 ^~~~~~
bandwidthd.h:231:17: warning: inline function ‘IpAddr’ declared but never defined
  231 | inline uint32_t IpAddr(unsigned char q1, unsigned char q2, unsigned char q3, unsigned char q4);
      |                 ^~~~~~
flex -Pbdconfig_ -s -i -t -I conf.l > conf.l.c
gcc -g -O2  -I/usr/local/include -DHAVE_CONFIG_H -c -o conf.l.o conf.l.c	
gcc -Wall -g -O2  -I/usr/local/include -DHAVE_CONFIG_H   -c -o pgsql.o pgsql.c
In file included from pgsql.c:1:
bandwidthd.h:250:17: warning: inline function ‘DstCredit’ declared but never defined
  250 | inline void     DstCredit(uint32_t ipaddr, unsigned int psize);
      |                 ^~~~~~~~~
In file included from pgsql.c:1:
bandwidthd.h:237:23: warning: inline function ‘FindIp’ declared but never defined
  237 | inline struct IPData *FindIp(uint32_t ipaddr);
      |                       ^~~~~~
bandwidthd.h:234:17: warning: inline function ‘Credit’ declared but never defined
  234 | inline void     Credit(struct Statistics *Stats, const struct ip *ip);
      |                 ^~~~~~
bandwidthd.h:231:17: warning: inline function ‘IpAddr’ declared but never defined
  231 | inline uint32_t IpAddr(unsigned char q1, unsigned char q2, unsigned char q3, unsigned char q4);
      |                 ^~~~~~
pgsql.c:418:13: warning: ‘pgsqllngjmp’ defined but not used [-Wunused-function]
  418 | static void pgsqllngjmp(int signal)
      |             ^~~~~~~~~~~
gcc -Wall -g -O2  -I/usr/local/include -DHAVE_CONFIG_H   -c -o extensions.o extensions.c
In file included from extensions.c:1:
bandwidthd.h:250:17: warning: inline function ‘DstCredit’ declared but never defined
  250 | inline void     DstCredit(uint32_t ipaddr, unsigned int psize);
      |                 ^~~~~~~~~
In file included from extensions.c:1:
bandwidthd.h:237:23: warning: inline function ‘FindIp’ declared but never defined
  237 | inline struct IPData *FindIp(uint32_t ipaddr);
      |                       ^~~~~~
bandwidthd.h:234:17: warning: inline function ‘Credit’ declared but never defined
  234 | inline void     Credit(struct Statistics *Stats, const struct ip *ip);
      |                 ^~~~~~
bandwidthd.h:231:17: warning: inline function ‘IpAddr’ declared but never defined
  231 | inline uint32_t IpAddr(unsigned char q1, unsigned char q2, unsigned char q3, unsigned char q4);
      |                 ^~~~~~
gcc -Wall -g -O2  -I/usr/local/include -DHAVE_CONFIG_H bandwidthd.o graph.o conf.tab.o conf.l.o pgsql.o extensions.o -o bandwidthd -L/usr/local/lib -lpcap -lgd -lpng -lm -lresolv -lnsl  
/usr/bin/ld: graph.o:/<<PKGBUILDDIR>>/bandwidthd.h:137: multiple definition of `SubnetTable'; bandwidthd.o:/<<PKGBUILDDIR>>/bandwidthd.h:137: first defined here
/usr/bin/ld: graph.o:/<<PKGBUILDDIR>>/bandwidthd.h:160: multiple definition of `IpTable'; bandwidthd.o:/<<PKGBUILDDIR>>/bandwidthd.h:160: first defined here
/usr/bin/ld: conf.tab.o:/<<PKGBUILDDIR>>/bandwidthd.h:160: multiple definition of `IpTable'; bandwidthd.o:/<<PKGBUILDDIR>>/bandwidthd.h:160: first defined here
/usr/bin/ld: conf.tab.o:/<<PKGBUILDDIR>>/bandwidthd.h:137: multiple definition of `SubnetTable'; bandwidthd.o:/<<PKGBUILDDIR>>/bandwidthd.h:137: first defined here
/usr/bin/ld: pgsql.o:/<<PKGBUILDDIR>>/bandwidthd.h:160: multiple definition of `IpTable'; bandwidthd.o:/<<PKGBUILDDIR>>/bandwidthd.h:160: first defined here
/usr/bin/ld: pgsql.o:/<<PKGBUILDDIR>>/bandwidthd.h:137: multiple definition of `SubnetTable'; bandwidthd.o:/<<PKGBUILDDIR>>/bandwidthd.h:137: first defined here
/usr/bin/ld: extensions.o:/<<PKGBUILDDIR>>/bandwidthd.h:160: multiple definition of `IpTable'; bandwidthd.o:/<<PKGBUILDDIR>>/bandwidthd.h:160: first defined here
/usr/bin/ld: extensions.o:/<<PKGBUILDDIR>>/bandwidthd.h:137: multiple definition of `SubnetTable'; bandwidthd.o:/<<PKGBUILDDIR>>/bandwidthd.h:137: first defined here
/usr/bin/ld: bandwidthd.o: in function `PacketCallback':
/<<PKGBUILDDIR>>/bandwidthd.c:702: undefined reference to `Credit'
/usr/bin/ld: /<<PKGBUILDDIR>>/bandwidthd.c:715: undefined reference to `Credit'
/usr/bin/ld: /<<PKGBUILDDIR>>/bandwidthd.c:709: undefined reference to `Credit'
/usr/bin/ld: /<<PKGBUILDDIR>>/bandwidthd.c:696: undefined reference to `Credit'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:25: bandwidthd] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [debian/rules:67: build-stamp] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:91: install] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2


Reply to: