Package: src:nitpic
Version: 0.1-20
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/nitpic_0.1-20_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

[...]
      |                          ^~~~~~~
instr.cc: In function ‘void instr_jump(Widget, XtPointer, XtPointer)’:
instr.cc:101:26: warning: unused variable ‘w_width’ [-Wunused-variable]
  101 |         Dimension        w_width, w_height;
      |                          ^~~~~~~
instr.cc:103:43: warning: unused variable ‘bottom’ [-Wunused-variable]
  103 |         int                      dv, top, bottom, lines, dlines;
      |                                           ^~~~~~
instr.cc:103:58: warning: unused variable ‘dlines’ [-Wunused-variable]
  103 |         int                      dv, top, bottom, lines, dlines;
      |                                                          ^~~~~~
instr.cc:104:26: warning: unused variable ‘thumb’ [-Wunused-variable]
  104 |         float            thumb;
      |                          ^~~~~
instr.cc: In function ‘void ipointer_refresh(Widget, XEvent*, char**, 
Cardinal*)’:
instr.cc:167:26: warning: unused variable ‘w_height’ [-Wunused-variable]
  167 |         Dimension        w_height, w_width;
      |                          ^~~~~~~~
instr.cc:167:36: warning: unused variable ‘w_width’ [-Wunused-variable]
  167 |         Dimension        w_height, w_width;
      |                                    ^~~~~~~
instr.cc: In function ‘void ipointer_seek(Widget, XEvent*, char**, Cardinal*)’:
instr.cc:221:26: warning: unused variable ‘w_width’ [-Wunused-variable]
  221 |         Dimension        w_width, w_height;
      |                          ^~~~~~~
instr.cc:223:43: warning: unused variable ‘bottom’ [-Wunused-variable]
  223 |         int                      dv, top, bottom, lines, dlines;
      |                                           ^~~~~~
instr.cc:223:58: warning: unused variable ‘dlines’ [-Wunused-variable]
  223 |         int                      dv, top, bottom, lines, dlines;
      |                                                          ^~~~~~
instr.cc:224:26: warning: unused variable ‘thumb’ [-Wunused-variable]
  224 |         float            thumb;
      |                          ^~~~~
gcc -g -O2 -Wall    -I. -I./lib/Xt     -Dlinux -D__amd64__ 
-D_POSIX_C_SOURCE=199309L                            -D_POSIX_SOURCE 
-D_XOPEN_SOURCE                                 -D_BSD_SOURCE -D_SVID_SOURCE    
                             -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64         
                                                          -DFUNCPROTO=15 
-DNARROWPROTO       -c -o pu_lib.o pu_lib.c
In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from pu_lib.c:6:
/usr/include/features.h:197:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE 
are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  197 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use 
_DEFAULT_SOURCE"
      |   ^~~~~~~
pu_lib.c:13:6: error: conflicting types for ‘PU_Clear’; have ‘void(PICDEFN *)’ 
{aka ‘void(struct picdefn *)’}
   13 | void PU_Clear(PICDEFN *pic)
      |      ^~~~~~~~
In file included from pu_lib.c:5:
pu_defs.h:22:13: note: previous declaration of ‘PU_Clear’ with type ‘void(void)’
   22 | extern void PU_Clear();
      |             ^~~~~~~~
pu_lib.c:176:5: error: conflicting types for ‘PU_WriteHeader’; have ‘int(char 
*, PICDEFN *, char *)’ {aka ‘int(char *, struct picdefn *, char *)’}
  176 | int PU_WriteHeader(char *filename, PICDEFN *pic, char *comment)
      |     ^~~~~~~~~~~~~~
pu_defs.h:23:13: note: previous declaration of ‘PU_WriteHeader’ with type 
‘int(void)’
   23 | extern int  PU_WriteHeader();
      |             ^~~~~~~~~~~~~~
pu_lib.c:201:5: error: conflicting types for ‘PU_WriteBlock’; have ‘int(char *, 
PICDEFN *, int,  int)’ {aka ‘int(char *, struct picdefn *, int,  int)’}
  201 | int PU_WriteBlock(char *filename, PICDEFN *pic, int from, int to)
      |     ^~~~~~~~~~~~~
pu_defs.h:24:13: note: previous declaration of ‘PU_WriteBlock’ with type 
‘int(void)’
   24 | extern int  PU_WriteBlock();
      |             ^~~~~~~~~~~~~
pu_lib.c:273:5: error: conflicting types for ‘PU_WriteTrailer’; have ‘int(char 
*, PICDEFN *, char *)’ {aka ‘int(char *, struct picdefn *, char *)’}
  273 | int PU_WriteTrailer(char *filename, PICDEFN *pic, char *comment)
      |     ^~~~~~~~~~~~~~~
pu_defs.h:25:13: note: previous declaration of ‘PU_WriteTrailer’ with type 
‘int(void)’
   25 | extern int  PU_WriteTrailer();
      |             ^~~~~~~~~~~~~~~
make[1]: *** [<builtin>: pu_lib.o] Error 1
make[1]: Leaving directory '/build/reproducible-path/nitpic-0.1'
make: *** [debian/rules:17: build-arch] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

Reply via email to