Bug#1097618: ploticus: ftbfs with GCC-15
Package: src:ploticus
Version: 2.42-8
Severity: important
Tags: sid forky
User: debian-gcc@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/ploticus_2.42-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
[...]
41 | #define Eysca( h ) PLG_ysca( h )
| ^~~~~~~~
grgd.c:937:6: note: in expansion of macro ‘Eysca’
937 | uy = Eysca( y2 );
| ^~~~~
grgd.c:36:38: note: declared here
36 | extern int PLGG_color(), PLG_xsca(), PLG_ysca(), PLGG_linestyle(), PLGG_fill(), PLG_xrgb_to_rgb(), PLG_colorname_to_rgb();
| ^~~~~~~~
grgd.c:44:22: error: too many arguments to function ‘TDH_err’; expected 0, have 3
44 | #define Eerr(a,b,c) TDH_err(a,b,c)
| ^~~~~~~
grgd.c:942:29: note: in expansion of macro ‘Eerr’
942 | if( outim == NULL ) return( Eerr( 12013, "Error on creation of image output", "" ) );
| ^~~~
grgd.c:35:12: note: declared here
35 | extern int TDH_err(), GL_member(), GL_goodnum();
| ^~~~~~~
grgd.c:44:22: error: too many arguments to function ‘TDH_err’; expected 0, have 3
44 | #define Eerr(a,b,c) TDH_err(a,b,c)
| ^~~~~~~
grgd.c:961:29: note: in expansion of macro ‘Eerr’
961 | if( outfp == NULL ) return( Eerr( 12014, "Cannot open for write", filename ) );
| ^~~~
grgd.c:35:12: note: declared here
35 | extern int TDH_err(), GL_member(), GL_goodnum();
| ^~~~~~~
grgd.c:979:9: error: too many arguments to function ‘chmod’; expected 0, have 2
979 | chmod( filename, 00644 );
| ^~~~~ ~~~~~~~~
grgd.c:38:20: note: declared here
38 | extern int atoi(), chmod();
| ^~~~~
grgd.c:997:32: error: too many arguments to function ‘PL_clickmap_out’; expected 0, have 2
997 | if( PL_clickmap_inprogress() ) PL_clickmap_out( ux, uy );
| ^~~~~~~~~~~~~~~ ~~
grgd.c:37:95: note: declared here
37 | extern int PLG_bb(), PL_clickmap_getdemomode(), PL_clickmap_show(), PL_clickmap_inprogress(), PL_clickmap_out();
| ^~~~~~~~~~~~~~~
make[2]: *** [Makefile:259: gd16files] Error 1
make[2]: *** Waiting for unfinished jobs....
echo "done with gd00files" > gd00files
make[2]: Leaving directory '/build/reproducible-path/ploticus-2.42/src'
make[2]: Entering directory '/build/reproducible-path/ploticus-2.42/src'
rm -f *.o gd??files
make[2]: Leaving directory '/build/reproducible-path/ploticus-2.42/src'
make[1]: Leaving directory '/build/reproducible-path/ploticus-2.42'
debian/rules execute_after_dh_auto_build
make[1]: Entering directory '/build/reproducible-path/ploticus-2.42'
rm -f pltestsuite/*.bat
make[1]: Leaving directory '/build/reproducible-path/ploticus-2.42'
dh_auto_test
create-stamp debian/debhelper-build-stamp
dh_prep
debian/rules override_dh_auto_install
make[1]: Entering directory '/build/reproducible-path/ploticus-2.42'
/usr/bin/make install DESTDIR=/build/reproducible-path/ploticus-2.42/debian/tmp
make[2]: Entering directory '/build/reproducible-path/ploticus-2.42'
install -d -m 755 /build/reproducible-path/ploticus-2.42/debian/tmp/usr/bin
install -m 755 src/ploticus /build/reproducible-path/ploticus-2.42/debian/tmp/usr/bin/ploticus
install -d -m 755 /build/reproducible-path/ploticus-2.42/debian/tmp/usr/share/man/man1
install -m 644 man/man1/pl.1 /build/reproducible-path/ploticus-2.42/debian/tmp/usr/share/man/man1/ploticus.1
install -d -m 755 /build/reproducible-path/ploticus-2.42/debian/tmp/usr/lib
install -m 644 src/libploticus.a /build/reproducible-path/ploticus-2.42/debian/tmp/usr/lib
install: cannot stat 'src/libploticus.a': No such file or directory
make[2]: *** [Makefile:26: install] Error 1
make[2]: Leaving directory '/build/reproducible-path/ploticus-2.42'
make[1]: *** [debian/rules:20: override_dh_auto_install] Error 2
make[1]: Leaving directory '/build/reproducible-path/ploticus-2.42'
make: *** [debian/rules:12: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
Reply to: