Bug#1096706: giftrans: ftbfs with GCC-15
Package: src:giftrans
Version: 1.12.2-20
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/giftrans_1.12.2-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
[...]
giftrans.c: In function ‘main’:
giftrans.c:793:5: warning: old-style function definition [-Wold-style-definition]
793 | int main(argc,argv)
| ^~~~
giftrans.c: In function ‘skipdata’:
giftrans.c:293:23: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
293 | (void)fread((void *)&size,1,1,src);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
giftrans.c:298:31: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
298 | (void)fread((void *)buffer,(size_t)size,1,src);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
giftrans.c: In function ‘transblock’:
giftrans.c:314:15: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
314 | (void)fread((void *)&size,1,1,src);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
giftrans.c:320:15: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
320 | (void)fread((void *)buffer,(size_t)size,1,src);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
giftrans.c: In function ‘dumpcomment’:
giftrans.c:335:15: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
335 | (void)fread((void *)&size,1,1,src);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
giftrans.c:338:15: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
338 | (void)fread((void *)buffer,(size_t)size,1,src);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
giftrans.c: In function ‘transdata’:
giftrans.c:366:23: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
366 | (void)fread((void *)&size,1,1,src);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
giftrans.c:372:23: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
372 | (void)fread((void *)buffer,(size_t)size,1,src);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
giftrans.c: In function ‘giftrans’:
giftrans.c:392:15: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
392 | (void)fread((void *)buffer,6,1,src);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
giftrans.c:411:15: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
411 | (void)fread((void *)lsd,7,1,src);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
giftrans.c:434:23: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
434 | (void)fread((void *)gct,gct_size,3,src);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
giftrans.c:492:23: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
492 | (void)fread((void *)buffer,1,1,src);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
giftrans.c:497:31: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
497 | (void)fread((void *)(buffer+1),9,1,src);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
giftrans.c:553:39: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
553 | (void)fread((void *)buffer,size,3,src);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
giftrans.c:571:31: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
571 | (void)fread((void *)buffer,1,1,src);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
giftrans.c:596:31: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
596 | (void)fread((void *)(buffer+1),1,1,src);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
giftrans.c:617:39: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
617 | (void)fread((void *)(buffer+2),1,1,src);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
giftrans.c:622:39: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
622 | (void)fread((void *)gce,size,1,src);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
giftrans.c:652:39: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
652 | (void)fread((void *)buffer,1,1,src);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [debian/rules:11: override_dh_auto_build] Error 1
make[1]: Leaving directory '/build/reproducible-path/giftrans-1.12.2'
make: *** [debian/rules:8: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
Reply to: