#1098149 xlax: ftbfs with GCC-15

Package:
src:xlax
Source:
src:xlax
Submitter:
Matthias Klose
Date:
2025-09-04 22:11:42 UTC
Severity:
normal
Tags:
#1098149#5
Date:
2025-02-17 18:01:59 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/xlax_2.4-2_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

[...]
xlax.c:954:1: error: number of arguments doesn’t match prototype
  954 | {
      | ^
xlax.h:93:6: error: prototype declaration
   93 | void clearCB();
      |      ^~~~~~~
xlax.c: In function ‘stringinputCB’:
xlax.c:969:1: warning: old-style function definition [-Wold-style-definition]
  969 | stringinputCB (w, client_data, event)
      | ^~~~~~~~~~~~~
xlax.c:974:1: error: number of arguments doesn’t match prototype
  974 | {
      | ^
xlax.h:91:6: error: prototype declaration
   91 | void stringinputCB();
      |      ^~~~~~~~~~~~~
xlax.c: In function ‘togglestringCB’:
xlax.c:990:1: warning: old-style function definition [-Wold-style-definition]
  990 | togglestringCB (w, index, event)
      | ^~~~~~~~~~~~~~
xlax.c:995:1: error: number of arguments doesn’t match prototype
  995 | {
      | ^
xlax.h:90:6: error: prototype declaration
   90 | void togglestringCB();
      |      ^~~~~~~~~~~~~~
xlax.c: In function ‘toggleCB’:
xlax.c:1027:1: warning: old-style function definition [-Wold-style-definition]
 1027 | toggleCB (w, windex, state)
      | ^~~~~~~~
xlax.c:1032:1: error: number of arguments doesn’t match prototype
 1032 | {
      | ^
xlax.h:86:6: error: prototype declaration
   86 | void toggleCB();
      |      ^~~~~~~~
xlax.c: In function ‘pasteCB’:
xlax.c:1038:1: warning: old-style function definition [-Wold-style-definition]
 1038 | pasteCB (w, client_data, call_data)
      | ^~~~~~~
xlax.c:1043:1: error: number of arguments doesn’t match prototype
 1043 | {
      | ^
xlax.h:88:6: error: prototype declaration
   88 | void pasteCB();
      |      ^~~~~~~
xlax.c: In function ‘senditCB’:
xlax.c:1102:1: warning: old-style function definition [-Wold-style-definition]
 1102 | senditCB (w, client_data, call_data)
      | ^~~~~~~~
xlax.c:1107:1: error: number of arguments doesn’t match prototype
 1107 | {
      | ^
xlax.h:89:6: error: prototype declaration
   89 | void senditCB();
      |      ^~~~~~~~
xlax.c: In function ‘quitCB’:
xlax.c:1122:1: warning: old-style function definition [-Wold-style-definition]
 1122 | quitCB (w, client_data, call_data)
      | ^~~~~~
xlax.c:1127:1: error: number of arguments doesn’t match prototype
 1127 | {
      | ^
xlax.h:87:6: error: prototype declaration
   87 | void quitCB();
      |      ^~~~~~
make[1]: *** [<builtin>: xlax.o] Error 1
make[1]: Leaving directory '/build/reproducible-path/xlax-2.4/builddir'
make: *** [debian/rules:37: builddir/xlax] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2