#1096331 ascd: ftbfs with GCC-15

Package:
src:ascd
Source:
src:ascd
Submitter:
Matthias Klose
Date:
2025-09-04 22:07:11 UTC
Severity:
normal
Tags:
#1096331#5
Date:
2025-02-17 17:03:50 UTC
From:
To:
[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/ascd_0.13.2-9_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

[...]
   debian/rules override_dh_auto_configure
make[1]: Entering directory '/build/reproducible-path/ascd-0.13.2'
./default
rm: cannot remove 'workman': Is a directory
ln: failed to create symbolic link 'workman/include': File exists
imake -DUseInstalled -I/usr/lib/X11/config
imake -DUseInstalled -I/usr/lib/X11/config
make Makefiles
make[2]: Entering directory '/build/reproducible-path/ascd-0.13.2'
making Makefiles in libworkman...
make[3]: Entering directory '/build/reproducible-path/ascd-0.13.2'
make[3]: Leaving directory '/build/reproducible-path/ascd-0.13.2'
make[3]: Entering directory '/build/reproducible-path/ascd-0.13.2/libworkman'
make[3]: Nothing to be done for 'Makefiles'.
make[3]: Leaving directory '/build/reproducible-path/ascd-0.13.2/libworkman'
making Makefiles in ascd...
	mv -f Makefile Makefile.bak
make[3]: Entering directory '/build/reproducible-path/ascd-0.13.2'
make[3]: Leaving directory '/build/reproducible-path/ascd-0.13.2'
make[3]: Entering directory '/build/reproducible-path/ascd-0.13.2/ascd'
make[3]: Nothing to be done for 'Makefiles'.
make[3]: Leaving directory '/build/reproducible-path/ascd-0.13.2/ascd'
make[2]: Leaving directory '/build/reproducible-path/ascd-0.13.2'
make includes
make[2]: Entering directory '/build/reproducible-path/ascd-0.13.2'
including in ./libworkman...
make[3]: Entering directory '/build/reproducible-path/ascd-0.13.2/libworkman'
make[3]: Nothing to be done for 'includes'.
make[3]: Leaving directory '/build/reproducible-path/ascd-0.13.2/libworkman'
including in ./ascd...
make[3]: Entering directory '/build/reproducible-path/ascd-0.13.2/ascd'
make[3]: Nothing to be done for 'includes'.
make[3]: Leaving directory '/build/reproducible-path/ascd-0.13.2/ascd'
make[2]: Leaving directory '/build/reproducible-path/ascd-0.13.2'
make depend
make[2]: Entering directory '/build/reproducible-path/ascd-0.13.2'
depending in ./libworkman...
make[3]: Entering directory '/build/reproducible-path/ascd-0.13.2/libworkman'
make[3]: Nothing to be done for 'depend'.
make[3]: Leaving directory '/build/reproducible-path/ascd-0.13.2/libworkman'
depending in ./ascd...
make[3]: Entering directory '/build/reproducible-path/ascd-0.13.2/ascd'
make[3]: Nothing to be done for 'depend'.
make[3]: Leaving directory '/build/reproducible-path/ascd-0.13.2/ascd'
make[2]: Leaving directory '/build/reproducible-path/ascd-0.13.2'
make[1]: Leaving directory '/build/reproducible-path/ascd-0.13.2'
   debian/rules override_dh_auto_build
make[1]: Entering directory '/build/reproducible-path/ascd-0.13.2'
cd libworkman && /usr/bin/make LDOPTIONS="-Wl,-z,relro" CCOPTIONS="-Wno-unused-result"
make[2]: Entering directory '/build/reproducible-path/ascd-0.13.2/libworkman'
gcc -g -O2 -fno-strict-aliasing -g -Wno-unused-result       -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L 				-D_POSIX_SOURCE -D_XOPEN_SOURCE 				-D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 				  				  -DFUNCPROTO=15 -DNARROWPROTO     -Wdate-time -D_FORTIFY_SOURCE=2  -c -o cddb.o cddb.c
In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from cddb.c:34:
/usr/include/features.h:197:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  197 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
      |   ^~~~~~~
cddb.c: In function ‘connect_open’:
cddb.c:217:34: error: too many arguments to function ‘inet_addr’; expected 0, have 1
  217 |                 defaddr.s_addr = inet_addr(host);
      |                                  ^~~~~~~~~ ~~~~
cddb.c:213:21: note: declared here
  213 |                 int inet_addr();
      |                     ^~~~~~~~~
make[2]: *** [<builtin>: cddb.o] Error 1
make[2]: Leaving directory '/build/reproducible-path/ascd-0.13.2/libworkman'
make[1]: *** [debian/rules:12: override_dh_auto_build] Error 2
make[1]: Leaving directory '/build/reproducible-path/ascd-0.13.2'
make: *** [debian/rules:29: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2