[Debian-med-packaging] Bug#1096489: ctn: ftbfs with GCC-15

Matthias Klose doko at debian.org
Mon Feb 17 17:08:51 GMT 2025


Package: src:ctn
Version: 3.2.0~dfsg-8
Severity: important
Tags: sid forky
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-15

[This bug is NOT 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-15/g++-15, but succeeds to build with gcc-14/g++-14. The
severity of this report will be raised before the forky release.

The full build log can be found at:
http://qa-logs.debian.net/2025/02/16/amd64exp/ctn_3.2.0~dfsg-8_unstable_gccexp.log.gz
The last lines of the build log are at the end of this report.

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

  apt-get -t=experimental install g++ 

GCC 15 now defaults to the C23/C++23 standards, exposing many FTBFS.
Other 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-15/porting_to.html

[...]
rm -f /build/reproducible-path/ctn-3.2.0~dfsg/libsrc/tblmbprivate.h /build/reproducible-path/ctn-3.2.0~dfsg/libsrc/tblmbcond.c
rm -f /build/reproducible-path/ctn-3.2.0~dfsg/libsrc/tblmb_sqlserver.c /build/reproducible-path/ctn-3.2.0~dfsg/libsrc/tblmb_sqlserver.h
rm -f /build/reproducible-path/ctn-3.2.0~dfsg/libsrc/tblmb_sybase.c /build/reproducible-path/ctn-3.2.0~dfsg/libsrc/tblmb_sybase.h
rm -f /build/reproducible-path/ctn-3.2.0~dfsg/libsrc/tblmb_msql.c /build/reproducible-path/ctn-3.2.0~dfsg/libsrc/tblmb_msql.h
rm -f /build/reproducible-path/ctn-3.2.0~dfsg/libsrc/tblmb_psql.c /build/reproducible-path/ctn-3.2.0~dfsg/libsrc/tblmb_psql.h
rm -f /build/reproducible-path/ctn-3.2.0~dfsg/libsrc/ufs.c
ln -s ../facilities/tblmb/tblmb.h /build/reproducible-path/ctn-3.2.0~dfsg/libsrc
ln -s ../facilities/tblmb/tblmbprivate.h /build/reproducible-path/ctn-3.2.0~dfsg/libsrc
ln -s ../facilities/tblmb/tblmbcond.c /build/reproducible-path/ctn-3.2.0~dfsg/libsrc
ln -s ../facilities/tblmb/tblmb_psql.c /build/reproducible-path/ctn-3.2.0~dfsg/libsrc
ln -s ../facilities/tblmb/tblmb_psql.h /build/reproducible-path/ctn-3.2.0~dfsg/libsrc
make[4]: Leaving directory '/build/reproducible-path/ctn-3.2.0~dfsg/facilities/tblmb'
cd thread		; make links
make[4]: Entering directory '/build/reproducible-path/ctn-3.2.0~dfsg/facilities/thread'
rm -f /build/reproducible-path/ctn-3.2.0~dfsg/libsrc/ctnthread.h /build/reproducible-path/ctn-3.2.0~dfsg/libsrc/ctnthread.c
rm -f /build/reproducible-path/ctn-3.2.0~dfsg/libsrc/thrcond.c 
ln -s ../facilities/thread/ctnthread.h /build/reproducible-path/ctn-3.2.0~dfsg/libsrc
ln -s ../facilities/thread/ctnthread.c /build/reproducible-path/ctn-3.2.0~dfsg/libsrc
ln -s ../facilities/thread/thrcond.c /build/reproducible-path/ctn-3.2.0~dfsg/libsrc
make[4]: Leaving directory '/build/reproducible-path/ctn-3.2.0~dfsg/facilities/thread'
cd uid			; make links
make[4]: Entering directory '/build/reproducible-path/ctn-3.2.0~dfsg/facilities/uid'
rm -f /build/reproducible-path/ctn-3.2.0~dfsg/libsrc/uid.c /build/reproducible-path/ctn-3.2.0~dfsg/libsrc/uidcond.c
rm -f /build/reproducible-path/ctn-3.2.0~dfsg/libsrc/dicom_uids.h
ln -s ../facilities/uid/uid.c /build/reproducible-path/ctn-3.2.0~dfsg/libsrc
ln -s ../facilities/uid/uidcond.c /build/reproducible-path/ctn-3.2.0~dfsg/libsrc
ln -s ../facilities/uid/dicom_uids.h /build/reproducible-path/ctn-3.2.0~dfsg/libsrc
make[4]: Leaving directory '/build/reproducible-path/ctn-3.2.0~dfsg/facilities/uid'
cd utility		; make links
make[4]: Entering directory '/build/reproducible-path/ctn-3.2.0~dfsg/facilities/utility'
rm -f /build/reproducible-path/ctn-3.2.0~dfsg/libsrc/utility.h /build/reproducible-path/ctn-3.2.0~dfsg/libsrc/utility.c
ln -s ../facilities/utility/utility.h /build/reproducible-path/ctn-3.2.0~dfsg/libsrc
ln -s ../facilities/utility/utility.c /build/reproducible-path/ctn-3.2.0~dfsg/libsrc
make[4]: Leaving directory '/build/reproducible-path/ctn-3.2.0~dfsg/facilities/utility'
cd xutl			; make links
make[4]: Entering directory '/build/reproducible-path/ctn-3.2.0~dfsg/facilities/xutl'
rm -f /build/reproducible-path/ctn-3.2.0~dfsg/libsrc/xutl.h /build/reproducible-path/ctn-3.2.0~dfsg/libsrc/xutl.c /build/reproducible-path/ctn-3.2.0~dfsg/libsrc/xutl_mb.c
ln -s ../facilities/xutl/xutl.h /build/reproducible-path/ctn-3.2.0~dfsg/libsrc
ln -s ../facilities/xutl/xutl.c /build/reproducible-path/ctn-3.2.0~dfsg/libsrc
make[4]: Leaving directory '/build/reproducible-path/ctn-3.2.0~dfsg/facilities/xutl'
make[3]: Leaving directory '/build/reproducible-path/ctn-3.2.0~dfsg/facilities'
cd libsrc;		make install
make[3]: Entering directory '/build/reproducible-path/ctn-3.2.0~dfsg/libsrc'
gcc -g -DDEBUG -DLITTLE_ENDIAN_ARCHITECTURE -DLINUX -DSHARED_MEMORY -DSEMAPHORE -DX11 -DATHENA -DX11R4 -DUSLEEP -DMYSQLDB -I/build/reproducible-path/ctn-3.2.0~dfsg/include -I/usr/include/mysql -I/usr/include/Xm -I/usr/X11R6/include -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/ctn-3.2.0~dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-error=incompatible-pointer-types -Wno-error=implicit-int -Wno-error=int-conversion -DLONGSIZE=64 -DINTSIZE=32 -DSHORTSIZE=16 -DTIMEOFDAYARGS=2 -DMOTIF -DUSEREGCOMP -I/build/reproducible-path/ctn-3.2.0~dfsg/include -Wdate-time -D_FORTIFY_SOURCE=2  -c -o build.o build.c
gcc -g -DDEBUG -DLITTLE_ENDIAN_ARCHITECTURE -DLINUX -DSHARED_MEMORY -DSEMAPHORE -DX11 -DATHENA -DX11R4 -DUSLEEP -DMYSQLDB -I/build/reproducible-path/ctn-3.2.0~dfsg/include -I/usr/include/mysql -I/usr/include/Xm -I/usr/X11R6/include -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/ctn-3.2.0~dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-error=incompatible-pointer-types -Wno-error=implicit-int -Wno-error=int-conversion -DLONGSIZE=64 -DINTSIZE=32 -DSHORTSIZE=16 -DTIMEOFDAYARGS=2 -DMOTIF -DUSEREGCOMP -I/build/reproducible-path/ctn-3.2.0~dfsg/include -Wdate-time -D_FORTIFY_SOURCE=2  -c -o cfg.o cfg.c
gcc -g -DDEBUG -DLITTLE_ENDIAN_ARCHITECTURE -DLINUX -DSHARED_MEMORY -DSEMAPHORE -DX11 -DATHENA -DX11R4 -DUSLEEP -DMYSQLDB -I/build/reproducible-path/ctn-3.2.0~dfsg/include -I/usr/include/mysql -I/usr/include/Xm -I/usr/X11R6/include -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/ctn-3.2.0~dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-error=incompatible-pointer-types -Wno-error=implicit-int -Wno-error=int-conversion -DLONGSIZE=64 -DINTSIZE=32 -DSHORTSIZE=16 -DTIMEOFDAYARGS=2 -DMOTIF -DUSEREGCOMP -I/build/reproducible-path/ctn-3.2.0~dfsg/include -Wdate-time -D_FORTIFY_SOURCE=2  -c -o cmd_valid.o cmd_valid.c
gcc -g -DDEBUG -DLITTLE_ENDIAN_ARCHITECTURE -DLINUX -DSHARED_MEMORY -DSEMAPHORE -DX11 -DATHENA -DX11R4 -DUSLEEP -DMYSQLDB -I/build/reproducible-path/ctn-3.2.0~dfsg/include -I/usr/include/mysql -I/usr/include/Xm -I/usr/X11R6/include -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/ctn-3.2.0~dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-error=incompatible-pointer-types -Wno-error=implicit-int -Wno-error=int-conversion -DLONGSIZE=64 -DINTSIZE=32 -DSHORTSIZE=16 -DTIMEOFDAYARGS=2 -DMOTIF -DUSEREGCOMP -I/build/reproducible-path/ctn-3.2.0~dfsg/include -Wdate-time -D_FORTIFY_SOURCE=2  -c -o condition.o condition.c
condition.c: In function ‘COND_PushCondition’:
condition.c:169:9: error: too many arguments to function ‘ErrorCallback’; expected 0, have 2
  169 |         ErrorCallback(EDBStack[stackPtr].statusCode,
      |         ^~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
condition.c: In function ‘COND_ExtractConditions’:
condition.c:235:22: error: too many arguments to function ‘callback’; expected 0, have 2
  235 |         returnflag = callback(EDBStack[index].statusCode,
      |                      ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
condition.c: In function ‘dumpstack’:
condition.c:462:25: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘CONDITION’ {aka ‘long unsigned int’} [-Wformat=]
  462 |         fprintf(lfp, "%8x %s\n", EDBStack[index].statusCode,
      |                       ~~^        ~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                         |                       |
      |                         unsigned int            CONDITION {aka long unsigned int}
      |                       %8lx
make[3]: *** [<builtin>: condition.o] Error 1
make[3]: Leaving directory '/build/reproducible-path/ctn-3.2.0~dfsg/libsrc'
make[2]: *** [Makefile:5: install] Error 2
make[2]: Leaving directory '/build/reproducible-path/ctn-3.2.0~dfsg'
make[1]: *** [debian/rules:45: override_dh_auto_build] Error 2
make[1]: Leaving directory '/build/reproducible-path/ctn-3.2.0~dfsg'
make: *** [debian/rules:19: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Debian-med-packaging mailing list