#1096501 daisy-player: ftbfs with GCC-15

#1096501#5
Date:
2025-02-17 17:09:12 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/daisy-player_13.0-4_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

[...]
 1833 | void usage ()
      |      ^~~~~
daisy-player.c:2339:10: error: too many arguments to function ‘usage’; expected 0, have 1
 2339 |          usage (1);
      |          ^~~~~  ~
daisy-player.c:1833:6: note: declared here
 1833 | void usage ()
      |      ^~~~~
common.c: In function ‘select_next_output_device’:
common.c:1148:13: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1148 |             system (misc->cmd);
      |             ^~~~~~~~~~~~~~~~~~
common.c:1174:13: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1174 |             system (misc->cmd);
      |             ^~~~~~~~~~~~~~~~~~
common.c:1195:13: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1195 |             system (misc->cmd);
      |             ^~~~~~~~~~~~~~~~~~
gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I . -I /usr/include/cdio/ -I /usr/include/cdio/paranoia/ -I /usr/include/libxml2/ -D LOCALEDIR=\"/usr/share/locale\"  -Wall -Wextra -Wunused -Wunused-variable -Wunused-function -Wmissing-declarations -g -I /usr/include/libxml2/ -O3 -Wuninitialized -Winit-self -DPROGRAMNAME_LOCALEDIR=\"\" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/daisy-player-13.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -I/usr/include/libxml2 -c -o ncx.o ncx.c
gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I . -I /usr/include/cdio/ -I /usr/include/cdio/paranoia/ -I /usr/include/libxml2/ -D LOCALEDIR=\"/usr/share/locale\"  -Wall -Wextra -Wunused -Wunused-variable -Wunused-function -Wmissing-declarations -g -I /usr/include/libxml2/ -O3 -Wuninitialized -Winit-self -DPROGRAMNAME_LOCALEDIR=\"\" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/daisy-player-13.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -I/usr/include/libxml2 -c -o opf.o opf.c
daisy-player.c: In function ‘write_wav’:
daisy-player.c:494:10: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  494 |          write (misc->pipefd[1], p_readbuf, CDIO_CD_FRAMESIZE_RAW);
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
daisy-player.c: In function ‘quit_daisy_player’:
daisy-player.c:956:4: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  956 |    system ("reset");
      |    ^~~~~~~~~~~~~~~~
daisy-player.c:972:4: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  972 |    system (misc->cmd);
      |    ^~~~~~~~~~~~~~~~~~
daisy-player.c: In function ‘browse’:
daisy-player.c:1371:10: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1371 |          system (misc->cmd);
      |          ^~~~~~~~~~~~~~~~~~
daisy-player.c:1470:13: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1470 |             system (misc->cmd);
      |             ^~~~~~~~~~~~~~~~~~
daisy-player.c:1712:13: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1712 |             system (misc->cmd);
      |             ^~~~~~~~~~~~~~~~~~
daisy-player.c:1733:13: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1733 |             system (misc->cmd);
      |             ^~~~~~~~~~~~~~~~~~
gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I . -I /usr/include/cdio/ -I /usr/include/cdio/paranoia/ -I /usr/include/libxml2/ -D LOCALEDIR=\"/usr/share/locale\"  -Wall -Wextra -Wunused -Wunused-variable -Wunused-function -Wmissing-declarations -g -I /usr/include/libxml2/ -O3 -Wuninitialized -Winit-self -DPROGRAMNAME_LOCALEDIR=\"\" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/daisy-player-13.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -I/usr/include/libxml2 -c -o madplay/madplay.o madplay/madplay.c
daisy-player.c: In function ‘main’:
daisy-player.c:2229:4: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2229 |    system ("clear");
      |    ^~~~~~~~~~~~~~~~
daisy-player.c:2248:10: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2248 |          system ("clear");
      |          ^~~~~~~~~~~~~~~~
daisy-player.c:2382:7: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2382 |       system (misc.cmd);
      |       ^~~~~~~~~~~~~~~~~
daisy-player.c:2437:19: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2437 |                   system (misc.cmd);
      |                   ^~~~~~~~~~~~~~~~~
make[4]: *** [Makefile:532: daisy-player.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/build/reproducible-path/daisy-player-13.0/src'
make[3]: *** [Makefile:595: all-recursive] Error 1
make[3]: Leaving directory '/build/reproducible-path/daisy-player-13.0'
make[2]: *** [Makefile:534: all] Error 2
make[2]: Leaving directory '/build/reproducible-path/daisy-player-13.0'
dh_auto_build: error: make -j8 returned exit code 2
make[1]: *** [debian/rules:19: override_dh_auto_build] Error 25
make[1]: Leaving directory '/build/reproducible-path/daisy-player-13.0'
make: *** [debian/rules:12: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

#1096501#16
Date:
2025-09-04 23:34:28 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
daisy-player, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1096501@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Samuel Thibault <sthibault@debian.org> (supplier of updated daisy-player package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Fri, 05 Sep 2025 01:02:42 +0200
Source: daisy-player
Architecture: source
Version: 13.0-5
Distribution: unstable
Urgency: medium
Maintainer: Debian Accessibility Team <pkg-a11y-devel@alioth-lists.debian.net>
Changed-By: Samuel Thibault <sthibault@debian.org>
Closes: 1044505 1096501
Changes:
 daisy-player (13.0-5) unstable; urgency=medium
 .
   [ Samuel Thibault ]
   * watch, control, copyright: Update upstream repository.
   * clean: Remove more generated files (Closes: Bug#1044505).
   * patches/gcc-15: Fix build with gcc-15 (Closes: Bug#1096501).
   * patches/cross-build: Cross building fix.
   * rules: Preseed ac_cv_func_malloc_0_nonnull for crossbuilds.
   * copyright: Update.
 .
   [ Debian Janitor ]
   * Bump debhelper from old 12 to 13.
 .
   [ Samuel Thibault ]
   * Update standards version to 4.6.2, no changes needed.
Checksums-Sha1:
 0dc9719934f70b63b8b7218d9990e59e66dbe6ad 2483 daisy-player_13.0-5.dsc
 f7332816a8c7ce3ce6235dac16c27d6bcb08087c 14012 daisy-player_13.0-5.debian.tar.xz
 d86aa31d44abcab35d29475d6eea5659592a7d7b 11400 daisy-player_13.0-5_amd64.buildinfo
Checksums-Sha256:
 40433231c72da67819d8528958864b1bbe2bd1f8839748618c0c0659aaa0533a 2483 daisy-player_13.0-5.dsc
 cc2581c1a9255808fb66ca53f1acb18c9e49dde61432c6a5097bc16b7cf9e299 14012 daisy-player_13.0-5.debian.tar.xz
 c0e63129120504fa06d1a594ef853ad5a6413c0e4b430c169e03e57f1423cfcb 11400 daisy-player_13.0-5_amd64.buildinfo
Files:
 e4aee01bee031e571f516ee5f7fb7927 2483 sound optional daisy-player_13.0-5.dsc
 a4923a7e8e221db3d9ef27268f7c6bb9 14012 sound optional daisy-player_13.0-5.debian.tar.xz
 e7160d02756e1cd5cc53377d905e1417 11400 sound optional daisy-player_13.0-5_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEqpLrvfAUiqYaQ7iu5IlMrEVBS7AFAmi6HVsACgkQ5IlMrEVB
S7DAZBAAq7dYzq6ctkcui+t7OXZFhFFmxQzKumjo+ZRmTgdkEOtFr63ExyHO7Eo4
OjX8zXh8mQASyqB0J9iTTjiezaODo9/kQJ3xOaQ0fvMOw1DWhC+4qmQVUgKbaA0B
ETQp5laZ5+bUaDauGvHS9llfGbREbWhpR76sOCbqT1eXqfur6JaGcLIiWHE9Iuqn
Nl+I7yeoUpg+MLhVgpDUi0IYAEoQ55rZqHERTPXdth+UjlYgtY3Rpn2IWDHEFZNt
DuUaK4v62FbU4FbHsXPJ2eQN9zRrxgpd6doEciOrpi6Tup6kqwmCGZGvpSzQyed9
NE0zOU+PqxxCtn8UL6usDKrtLiQh+2DCW+aRcG1WbXf9OKq0tzOA2TtGnm6NpBOk
NDvvlA9+Cabnu3vV8WTZRp9U07U+4n5RXcjLtQt/bn5BdXPnecWhxeVU8549YJ/v
9Raa2qqeVGs5KiZWQFg1CnQxJhgnnuTj1BVZKEFuzGqAEmLVnjmof55dGFVFmLf1
aLDqJ0L4BPa9QpLBjMjq6C8EERLyvUJO5DEJL2qRKomccLNuYRoVyrdwOfnNDAxx
h4x0Jk1IOAHGbVS4jNmV+/ZKsUTCK2pxwqqW/Qb4E37hnvAm4trz9hJ3LCCn/xFE
eOSlRvOukk54r8CK/Rbco9iOeJvAeapobqSSdupDO0QVUei3qTg=
=cWjf
-----END PGP SIGNATURE-----