Package: src:webdruid
Version: 0.5.4-16
Severity: important
Tags: sid trixie
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-14

[This bug is targeted to the upcoming trixie release]

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-14/g++-14, but succeeds to build with gcc-13/g++-13. The
severity of this report will be raised before the trixie release.

The full build log can be found at:
http://qa-logs.debian.net/2024/07/01/webdruid_0.5.4-16_unstable_gccexp.log
The last lines of the build log are at the end of this report.

To build with GCC 14, either set CC=gcc-14 CXX=g++-14 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-14/porting_to.html

[...]
output.c: In function ‘top_entry_table’:
output.c:1295:18: warning: cast to pointer from integer of different size 
[-Wint-to-pointer-cast]
 1295 |       if ( (int)((UNODEPTR)(*pointer)->flag) == OBJ_REG )
      |                  ^
output.c:1295:12: warning: cast from pointer to integer of different size 
[-Wpointer-to-int-cast]
 1295 |       if ( (int)((UNODEPTR)(*pointer)->flag) == OBJ_REG )
      |            ^
output.c: In function ‘top_refs_table’:
output.c:1399:22: warning: cast to pointer from integer of different size 
[-Wint-to-pointer-cast]
 1399 |       switch ( (int)((RNODEPTR)(*pointer)->flag) )
      |                      ^
output.c:1399:16: warning: cast from pointer to integer of different size 
[-Wpointer-to-int-cast]
 1399 |       switch ( (int)((RNODEPTR)(*pointer)->flag) )
      |                ^
output.c: In function ‘top_agents_table’:
output.c:1563:22: warning: cast to pointer from integer of different size 
[-Wint-to-pointer-cast]
 1563 |       switch ( (int)((ANODEPTR)(*pointer)->flag) )
      |                      ^
output.c:1563:16: warning: cast from pointer to integer of different size 
[-Wpointer-to-int-cast]
 1563 |       switch ( (int)((ANODEPTR)(*pointer)->flag) )
      |                ^
output.c: In function ‘top_users_table’:
output.c:2086:22: warning: cast to pointer from integer of different size 
[-Wint-to-pointer-cast]
 2086 |       switch ( (int)((INODEPTR)(*pointer)->flag) )
      |                      ^
output.c:2086:16: warning: cast from pointer to integer of different size 
[-Wpointer-to-int-cast]
 2086 |       switch ( (int)((INODEPTR)(*pointer)->flag) )
      |                ^
gcc -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-D_LARGEFILE64_SOURCE -DLOCALEDIR=\"/usr/share/locale\" 
-DWEBDRUIDDATADIR=\"/usr/share/webdruid/\" -DSYSCONFDIR=\"/etc\" 
-DHAVE_CONFIG_H -DUSE_DNS -DUSE_IPV6  -I/usr/include -c graphs.c
gcc -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-D_LARGEFILE64_SOURCE -DLOCALEDIR=\"/usr/share/locale\" 
-DWEBDRUIDDATADIR=\"/usr/share/webdruid/\" -DSYSCONFDIR=\"/etc\" 
-DHAVE_CONFIG_H -DUSE_DNS -DUSE_IPV6  -c dot_output.c
gcc -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-D_LARGEFILE64_SOURCE -DLOCALEDIR=\"/usr/share/locale\" 
-DWEBDRUIDDATADIR=\"/usr/share/webdruid/\" -DSYSCONFDIR=\"/etc\" 
-DHAVE_CONFIG_H -DUSE_DNS -DUSE_IPV6  -c xml_output.c
gcc -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-D_LARGEFILE64_SOURCE -DLOCALEDIR=\"/usr/share/locale\" 
-DWEBDRUIDDATADIR=\"/usr/share/webdruid/\" -DSYSCONFDIR=\"/etc\" 
-DHAVE_CONFIG_H -DUSE_DNS -DUSE_IPV6  -c utils.c
gcc -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-D_LARGEFILE64_SOURCE -DLOCALEDIR=\"/usr/share/locale\" 
-DWEBDRUIDDATADIR=\"/usr/share/webdruid/\" -DSYSCONFDIR=\"/etc\" 
-DHAVE_CONFIG_H -DUSE_DNS -DUSE_IPV6  -c sengine.c
gcc -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-D_LARGEFILE64_SOURCE -DLOCALEDIR=\"/usr/share/locale\" 
-DWEBDRUIDDATADIR=\"/usr/share/webdruid/\" -DSYSCONFDIR=\"/etc\" 
-DHAVE_CONFIG_H -DUSE_DNS -DUSE_IPV6  -c logs_mgmt.c
logs_mgmt.c: In function ‘logs_add_file’:
logs_mgmt.c:134:21: error: assignment to ‘struct gzFile_s **’ from incompatible 
pointer type ‘gzFile’ {aka ‘struct gzFile_s *’} [-Wincompatible-pointer-types]
  134 |       plog->gz_file = gz_file;
      |                     ^
logs_mgmt.c: In function ‘logs_rewind’:
logs_mgmt.c:396:30: error: passing argument 1 of ‘gzrewind’ from incompatible 
pointer type [-Wincompatible-pointer-types]
  396 |          gzrewind(current_log->gz_file);
      |                   ~~~~~~~~~~~^~~~~~~~~
      |                              |
      |                              struct gzFile_s **
In file included from logs_mgmt.c:28:
/usr/include/zlib.h:1570:40: note: expected ‘gzFile’ {aka ‘struct gzFile_s *’} 
but argument is of type ‘struct gzFile_s **’
 1570 | ZEXTERN int ZEXPORT    gzrewind(gzFile file);
      |                                 ~~~~~~~^~~~
logs_mgmt.c: In function ‘our_gzgets’:
logs_mgmt.c:437:38: error: 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 **
/usr/include/zlib.h:1395:35: note: expected ‘gzFile’ {aka ‘struct gzFile_s *’} 
but argument is of type ‘struct gzFile_s **’
 1395 | ZEXTERN int ZEXPORT gzread(gzFile file, voidp buf, unsigned len);
      |                            ~~~~~~~^~~~
logs_mgmt.c: In function ‘free_log_struct’:
logs_mgmt.c:566:19: error: passing argument 1 of ‘gzclose’ from incompatible 
pointer type [-Wincompatible-pointer-types]
  566 |       gzclose(plog->gz_file);
      |               ~~~~^~~~~~~~~
      |                   |
      |                   struct gzFile_s **
/usr/include/zlib.h:1634:39: note: expected ‘gzFile’ {aka ‘struct gzFile_s *’} 
but argument is of type ‘struct gzFile_s **’
 1634 | ZEXTERN int ZEXPORT    gzclose(gzFile file);
      |                                ~~~~~~~^~~~
make[1]: *** [Makefile:68: logs_mgmt.o] 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 via email to