Package: src:splitvt
Version: 1.6.6-17
Severity: important
Tags: sid forky
User: debian-...@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/splitvt_1.6.6-17_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

[...]
  736 | static void move_bar(howfar)
      |             ^~~~~~~~
splitvt.c:748:9: error: too many arguments to function ‘init_vt100’; expected 
0, have 1
  748 |         init_vt100(0);          /* Reset the windows to the new size */
      |         ^~~~~~~~~~ ~
vt100.h:4:14: note: declared here
    4 | extern char *init_vt100();              /* Initialize the window */
      |              ^~~~~~~~~~
splitvt.c: In function ‘winch’:
splitvt.c:763:13: warning: old-style function definition 
[-Wold-style-definition]
  763 | static void winch(sig)
      |             ^~~~~
splitvt.c:768:21: error: passing argument 2 of ‘signal’ from incompatible 
pointer type [-Wincompatible-pointer-types]
  768 |         signal(sig, winch);
      |                     ^~~~~
      |                     |
      |                     void (*)(void)
/usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void 
(*)(int)’} but argument is of type ‘void (*)(void)’
   88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
      |                                          ~~~~~~~~~~~~~~~^~~~~~~~~
splitvt.c:763:13: note: ‘winch’ declared here
  763 | static void winch(sig)
      |             ^~~~~
/usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here
   72 | typedef void (*__sighandler_t) (int);
      |                ^~~~~~~~~~~~~~
splitvt.c:770:19: error: too many arguments to function ‘init_vt100’; expected 
0, have 1
  770 |         if ( (ptr=init_vt100(1)) != NULL ) {
      |                   ^~~~~~~~~~ ~
vt100.h:4:14: note: declared here
    4 | extern char *init_vt100();              /* Initialize the window */
      |              ^~~~~~~~~~
splitvt.c:772:17: error: too many arguments to function ‘finish’; expected 0, 
have 1
  772 |                 finish(0);
      |                 ^~~~~~ ~
splitvt.c:709:13: note: declared here
  709 | static void finish(sig)
      |             ^~~~~~
splitvt.h:19:25: error: too many arguments to function ‘set_win’; expected 0, 
have 1
   19 | #define SET_WIN()       set_win(CUR_WIN())
      |                         ^~~~~~~
splitvt.c:774:17: note: in expansion of macro ‘SET_WIN’
  774 |                 SET_WIN();
      |                 ^~~~~~~
vt100.h:5:14: note: declared here
    5 | extern void  set_win();                 /* Move the cursor to current 
window */
      |              ^~~~~~~
splitvt.c: In function ‘insert_dash’:
splitvt.c:781:12: warning: old-style function definition 
[-Wold-style-definition]
  781 | static int insert_dash(args)
      |            ^~~~~~~~~~~
splitvt.c: In function ‘main’:
splitvt.c:450:57: warning: ignoring return value of ‘write’ declared with 
attribute ‘warn_unused_result’ [-Wunused-result]
  450 |                                                         write(thisfd, 
selection, strlen(selection));
      |                                                         
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
splitvt.c: In function ‘normal_input’:
splitvt.c:546:17: warning: ignoring return value of ‘read’ declared with 
attribute ‘warn_unused_result’ [-Wunused-result]
  546 |                 read(ttyfd, &c, 1);
      |                 ^~~~~~~~~~~~~~~~~~
splitvt.c:591:35: warning: ignoring return value of ‘write’ declared with 
attribute ‘warn_unused_result’ [-Wunused-result]
  591 |                                   write(thisfd, selection, 
strlen(selection));
      |                                   
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
splitvt.c:625:17: warning: ignoring return value of ‘write’ declared with 
attribute ‘warn_unused_result’ [-Wunused-result]
  625 |                 write(thisfd, &c, 1);
      |                 ^~~~~~~~~~~~~~~~~~~~
make[1]: *** [<builtin>: splitvt.o] Error 1
make[1]: Leaving directory '/build/reproducible-path/splitvt-1.6.6'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:7: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

Reply via email to