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

Bug#957927: webdruid: ftbfs with GCC-10



Package: src:webdruid
Version: 0.5.4-15
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/webdruid_0.5.4-15_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

[...]
      |                              |
      |                              struct gzFile_s **
In file included from /usr/include/zlib.h:34,
                 from logs_mgmt.c:28:
/usr/include/zlib.h:1566:33: note: expected ‘gzFile’ {aka ‘struct gzFile_s *’} but argument is of type ‘struct gzFile_s **’
 1566 | ZEXTERN int ZEXPORT    gzrewind OF((gzFile file));
      |                                 ^~
logs_mgmt.c: In function ‘our_gzgets’:
logs_mgmt.c:437:38: warning: passing argument 1 of ‘gzread’ from incompatible pointer type [-Wincompatible-pointer-types]
  437 |          plog->gz_f_end = gzread(plog->gz_file, plog->gz_f_buf, GZ_BUFSIZE);
      |                                  ~~~~^~~~~~~~~
      |                                      |
      |                                      struct gzFile_s **
In file included from /usr/include/zlib.h:34,
                 from logs_mgmt.c:28:
/usr/include/zlib.h:1390:28: note: expected ‘gzFile’ {aka ‘struct gzFile_s *’} but argument is of type ‘struct gzFile_s **’
 1390 | ZEXTERN int ZEXPORT gzread OF((gzFile file, voidp buf, unsigned len));
      |                            ^~
logs_mgmt.c: In function ‘free_log_struct’:
logs_mgmt.c:566:19: warning: passing argument 1 of ‘gzclose’ from incompatible pointer type [-Wincompatible-pointer-types]
  566 |       gzclose(plog->gz_file);
      |               ~~~~^~~~~~~~~
      |                   |
      |                   struct gzFile_s **
In file included from /usr/include/zlib.h:34,
                 from logs_mgmt.c:28:
/usr/include/zlib.h:1630:32: note: expected ‘gzFile’ {aka ‘struct gzFile_s *’} but argument is of type ‘struct gzFile_s **’
 1630 | ZEXTERN int ZEXPORT    gzclose OF((gzFile file));
      |                                ^~
msgfmt po/ca.po -o po/ca.mo
msgfmt po/cs.po -o po/cs.mo
msgfmt po/da.po -o po/da.mo
msgfmt po/de.po -o po/de.mo
msgfmt po/el.po -o po/el.mo
msgfmt po/es.po -o po/es.mo
msgfmt po/et.po -o po/et.mo
msgfmt po/fi.po -o po/fi.mo
msgfmt po/fr.po -o po/fr.mo
msgfmt po/gl.po -o po/gl.mo
msgfmt po/hr.po -o po/hr.mo
msgfmt po/hu.po -o po/hu.mo
msgfmt po/id.po -o po/id.mo
msgfmt po/is.po -o po/is.mo
msgfmt po/it.po -o po/it.mo
msgfmt po/ja.po -o po/ja.mo
msgfmt po/ko.po -o po/ko.mo
msgfmt po/lv.po -o po/lv.mo
msgfmt po/ml.po -o po/ml.mo
msgfmt po/nl.po -o po/nl.mo
msgfmt po/no.po -o po/no.mo
msgfmt po/pl.po -o po/pl.mo
msgfmt po/pt.po -o po/pt.mo
msgfmt po/ro.po -o po/ro.mo
msgfmt po/ru.po -o po/ru.mo
msgfmt po/sl.po -o po/sl.mo
msgfmt po/sr.po -o po/sr.mo
msgfmt po/sv.po -o po/sv.mo
msgfmt po/tr.po -o po/tr.mo
msgfmt po/uk.po -o po/uk.mo
msgfmt po/zh.po -o po/zh.mo
gcc -Wl,-z,relro -o webdruid webdruid.o hashtab.o linklist.o preserve.o parser.o output.o xml_output.o dot_output.o utils.o dns_resolv.o graphs.o sengine.o logs_mgmt.o -lgd -lfreetype -lpng -lpthread -lz -lm -ldb 
/usr/bin/ld: dns_resolv.o:(.bss+0x21c0): multiple definition of `host_table'; hashtab.o:(.bss+0xc000): first defined here
/usr/bin/ld: dns_resolv.o:./dns_resolv.c:129: multiple definition of `system_info'; webdruid.o:./webdruid.c:214: first defined here
/usr/bin/ld: dns_resolv.o:./dns_resolv.c:128: multiple definition of `tmp_buf'; webdruid.o:./webdruid.c:224: first defined here
/usr/bin/ld: logs_mgmt.o:./logs_mgmt.c:102: multiple definition of `buffer'; dns_resolv.o:./dns_resolv.c:127: first defined here
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:56: webdruid] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [/usr/share/cdbs/1/class/makefile.mk:77: debian/stamp-makefile-build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2


Reply to: