Bug#1098161: xpaint: ftbfs with GCC-15
Package: src:xpaint
Version: 2.9.1.4-5
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/xpaint_2.9.1.4-5_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
[...]
AsciiSink.c:358:1: warning: old-style function definition [-Wold-style-definition]
358 | CreateInsertCursor(s)
| ^~~~~~~~~~~~~~~~~~
AsciiSink.c: In function ‘GetCursorBounds’:
AsciiSink.c:373:1: warning: old-style function definition [-Wold-style-definition]
373 | GetCursorBounds(w, rect)
| ^~~~~~~~~~~~~~~
AsciiSink.c: In function ‘InsertCursor’:
AsciiSink.c:390:1: warning: old-style function definition [-Wold-style-definition]
390 | InsertCursor (w, x, y, state)
| ^~~~~~~~~~~~
AsciiSink.c:402:5: error: too many arguments to function ‘GetCursorBounds’; expected 0, have 2
402 | GetCursorBounds(w, &rect);
| ^~~~~~~~~~~~~~~ ~
AsciiSink.c:373:1: note: declared here
373 | GetCursorBounds(w, rect)
| ^~~~~~~~~~~~~~~
AsciiSink.c: In function ‘FindDistance’:
AsciiSink.c:417:1: warning: old-style function definition [-Wold-style-definition]
417 | FindDistance (w, fromPos, fromx, toPos, resWidth, resPos, resHeight)
| ^~~~~~~~~~~~
AsciiSink.c: In function ‘FindPosition’:
AsciiSink.c:455:1: warning: old-style function definition [-Wold-style-definition]
455 | FindPosition(w, fromPos, fromx, width, stopAtWordBreak,
| ^~~~~~~~~~~~
AsciiSink.c: In function ‘Resolve’:
AsciiSink.c:517:1: warning: old-style function definition [-Wold-style-definition]
517 | Resolve (w, pos, fromx, width, leftPos, rightPos)
| ^~~~~~~
AsciiSink.c:526:5: error: too many arguments to function ‘FindPosition’; expected 0, have 8
526 | FindPosition(w, pos, fromx, width, FALSE, leftPos, &resWidth, &resHeight);
| ^~~~~~~~~~~~ ~
AsciiSink.c:455:1: note: declared here
455 | FindPosition(w, fromPos, fromx, width, stopAtWordBreak,
| ^~~~~~~~~~~~
AsciiSink.c: In function ‘GetGC’:
AsciiSink.c:533:1: warning: old-style function definition [-Wold-style-definition]
533 | GetGC(sink)
| ^~~~~
AsciiSink.c: In function ‘Initialize’:
AsciiSink.c:570:1: warning: old-style function definition [-Wold-style-definition]
570 | Initialize(request, new, args, num_args)
| ^~~~~~~~~~
AsciiSink.c: In function ‘Destroy’:
AsciiSink.c:594:1: warning: old-style function definition [-Wold-style-definition]
594 | Destroy(w)
| ^~~~~~~
AsciiSink.c: In function ‘SetValues’:
AsciiSink.c:617:1: warning: old-style function definition [-Wold-style-definition]
617 | SetValues(current, request, new, args, num_args)
| ^~~~~~~~~
AsciiSink.c: In function ‘MaxLines’:
AsciiSink.c:652:1: warning: old-style function definition [-Wold-style-definition]
652 | MaxLines(w, height)
| ^~~~~~~~
AsciiSink.c: In function ‘MaxHeight’:
AsciiSink.c:673:1: warning: old-style function definition [-Wold-style-definition]
673 | MaxHeight(w, lines)
| ^~~~~~~~~
AsciiSink.c: In function ‘SetTabs’:
AsciiSink.c:691:1: warning: old-style function definition [-Wold-style-definition]
691 | SetTabs(w, tab_count, tabs)
| ^~~~~~~
make[2]: *** [Makefile:1101: AsciiSink.o] Error 1
make[2]: Leaving directory '/build/reproducible-path/xpaint-2.9.1.4/xaw3dxft'
make[1]: *** [Makefile:1391: start] Error 2
make[1]: Leaving directory '/build/reproducible-path/xpaint-2.9.1.4'
dh_auto_build: error: make -j1 returned exit code 2
make: *** [debian/rules:11: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
Reply to: