#1096296 alevt: ftbfs with GCC-15

Package:
src:alevt
Source:
src:alevt
Submitter:
Matthias Klose
Date:
2025-09-06 19:59:01 UTC
Severity:
normal
Tags:
#1096296#5
Date:
2025-02-17 17:02:47 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/alevt_1.8.2-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

[...]
		 -o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \
		 -o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \
		\) -exec rm -f {} + \) -o \
		\( -type d -a \( -name autom4te.cache -o -name __pycache__ \) -prune -exec rm -rf {} + \) \)
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure
   dh_auto_build
	make -j8 "INSTALL=install --strip-program=true"
make[1]: Entering directory '/build/reproducible-path/alevt-1.8.2'
cc -O2 -g -w -DVERSION=\"1.8.2\" -DWITH_PNG -I/usr/X11R6/include -I/usr/include/libpng16  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o main.o main.c
cc -O2 -g -w -DVERSION=\"1.8.2\" -DWITH_PNG -I/usr/X11R6/include -I/usr/include/libpng16  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o ui.o ui.c
cc bdf2xbm.c -o bdf2xbm
cc -O2 -g -w -DVERSION=\"1.8.2\" -DWITH_PNG -I/usr/X11R6/include -I/usr/include/libpng16  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o fdset.o fdset.c
cc -O2 -g -w -DVERSION=\"1.8.2\" -DWITH_PNG -I/usr/X11R6/include -I/usr/include/libpng16  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o vbi.o vbi.c
cc -O2 -g -w -DVERSION=\"1.8.2\" -DWITH_PNG -I/usr/X11R6/include -I/usr/include/libpng16  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o cache.o cache.c
cc -O2 -g -w -DVERSION=\"1.8.2\" -DWITH_PNG -I/usr/X11R6/include -I/usr/include/libpng16  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o help.o help.c
cc -O2 -g -w -DVERSION=\"1.8.2\" -DWITH_PNG -I/usr/X11R6/include -I/usr/include/libpng16  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o edline.o edline.c
cc -O2 -g -w -DVERSION=\"1.8.2\" -DWITH_PNG -I/usr/X11R6/include -I/usr/include/libpng16  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o search.o search.c
cache.c: In function ‘cache_foreach_pg’:
cache.c:199:17: error: too many arguments to function ‘func’; expected 0, have 2
  199 |             if (func(data, vtp))
      |                 ^~~~ ~~~~
make[1]: *** [<builtin>: cache.o] Error 1
make[1]: *** Waiting for unfinished jobs....
ui.c: In function ‘do_next_pgno’:
ui.c:159:57: error: passing argument 5 of ‘w->vbi->cache->op->foreach_pg’ from incompatible pointer type [-Wincompatible-pointer-types]
  159 |                     pgno, subno, dir, subs ? _next_subno:_next_pgno, &arg))
      |                                       ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
      |                                                         |
      |                                                         int (*)(int *, struct vt_page *)
ui.c:159:57: note: expected ‘int (*)(void)’ but argument is of type ‘int (*)(int *, struct vt_page *)’
edline.c: In function ‘do_exit’:
edline.c:13:5: error: too many arguments to function ‘el->exit_func’; expected 0, have 2
   13 |     el->exit_func(el->exit_data, buf);
      |     ^~            ~~~~~~~~~~~~~
In file included from edline.c:6:
edline.h:13:12: note: declared here
   13 |     void (*exit_func)();
      |            ^~~~~~~~~
edline.c: In function ‘ev_handler’:
edline.c:108:5: error: too many arguments to function ‘el->old_handler’; expected 0, have 2
  108 |     el->old_handler(el->old_data, ev);
      |     ^~              ~~~~~~~~~~~~
edline.h:15:12: note: declared here
   15 |     void (*old_handler)();
      |            ^~~~~~~~~~~
edline.c: In function ‘edline_new’:
edline.c:133:21: error: assignment to ‘void (*)(void)’ from incompatible pointer type ‘void (*)(void *, struct vt_event *)’ [-Wincompatible-pointer-types]
  133 |     el->old_handler = xw->handler;      //TODO: func to retrieve curr handler
      |                     ^
make[1]: *** [<builtin>: edline.o] Error 1
search.c: In function ‘search_next’:
search.c:121:65: error: passing argument 5 of ‘s->cache->op->foreach_pg’ from incompatible pointer type [-Wincompatible-pointer-types]
  121 |                                                                 search_pg, s);
      |                                                                 ^~~~~~~~~
      |                                                                 |
      |                                                                 int (*)(struct search *, struct vt_page *)
search.c:121:65: note: expected ‘int (*)(void)’ but argument is of type ‘int (*)(struct search *, struct vt_page *)’
search.c:58:1: note: ‘search_pg’ declared here
   58 | search_pg(struct search *s, struct vt_page *vtp)
      | ^~~~~~~~~
make[1]: *** [<builtin>: search.o] Error 1
make[1]: *** [<builtin>: ui.o] Error 1
make[1]: Leaving directory '/build/reproducible-path/alevt-1.8.2'
dh_auto_build: error: make -j8 "INSTALL=install --strip-program=true" returned exit code 2
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2