#1096511 dclock: ftbfs with GCC-15

Package:
src:dclock
Source:
src:dclock
Submitter:
Matthias Klose
Date:
2025-09-04 22:07:43 UTC
Severity:
normal
Tags:
#1096511#5
Date:
2025-02-17 17:09:33 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/dclock_2.2.2-15_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

[...]
 2156 |         toggle_scroll(w);
      |         ^~~~~~~~~~~~~ ~
Dclock.c:2071:1: note: declared here
 2071 | toggle_scroll(w)
      | ^~~~~~~~~~~~~
Dclock.c: In function ‘toggle_tails’:
Dclock.c:2160:1: warning: old-style function definition [-Wold-style-definition]
 2160 | toggle_tails(w)
      | ^~~~~~~~~~~~
Dclock.c: In function ‘toggle_alarm’:
Dclock.c:2170:1: warning: old-style function definition [-Wold-style-definition]
 2170 | toggle_alarm(w)
      | ^~~~~~~~~~~~
Dclock.c: In function ‘set_alarm’:
Dclock.c:2180:1: warning: old-style function definition [-Wold-style-definition]
 2180 | set_alarm(w, event)
      | ^~~~~~~~~
Dclock.c:2200:9: error: too many arguments to function ‘ResizeNow’; expected 0, have 1
 2200 |         ResizeNow(w);
      |         ^~~~~~~~~ ~
Dclock.c:592:1: note: declared here
  592 | ResizeNow  (w)
      | ^~~~~~~~~
Dclock.c:2201:9: error: too many arguments to function ‘Redisplay’; expected 0, have 1
 2201 |         Redisplay(w);
      |         ^~~~~~~~~ ~
Dclock.c:1361:1: note: declared here
 1361 | Redisplay  (w)
      | ^~~~~~~~~
Dclock.c:2224:13: error: too many arguments to function ‘toggle_alarm’; expected 0, have 1
 2224 |             toggle_alarm(w);
      |             ^~~~~~~~~~~~ ~
Dclock.c:2170:1: note: declared here
 2170 | toggle_alarm(w)
      | ^~~~~~~~~~~~
Dclock.c:2255:28: error: too many arguments to function ‘show_time’; expected 0, have 1
 2255 |                     (void) show_time(w);
      |                            ^~~~~~~~~ ~
Dclock.c:1432:1: note: declared here
 1432 | show_time(w)
      | ^~~~~~~~~
Dclock.c:2256:21: error: too many arguments to function ‘outline_digit’; expected 0, have 3
 2256 |                     outline_digit(w, cur_position, True);
      |                     ^~~~~~~~~~~~~ ~
Dclock.c:27:63: note: declared here
   27 |     show_date(), show_alarm(), scroll_time(), toggle_alarm(), outline_digit(),
      |                                                               ^~~~~~~~~~~~~
Dclock.c:2258:17: error: too many arguments to function ‘outline_digit’; expected 0, have 3
 2258 |                 outline_digit(w, cur_position, False);
      |                 ^~~~~~~~~~~~~ ~
Dclock.c:27:63: note: declared here
   27 |     show_date(), show_alarm(), scroll_time(), toggle_alarm(), outline_digit(),
      |                                                               ^~~~~~~~~~~~~
Dclock.c:2259:17: error: too many arguments to function ‘outline_digit’; expected 0, have 3
 2259 |                 outline_digit(w, cur_position = i, True);
      |                 ^~~~~~~~~~~~~ ~
Dclock.c:27:63: note: declared here
   27 |     show_date(), show_alarm(), scroll_time(), toggle_alarm(), outline_digit(),
      |                                                               ^~~~~~~~~~~~~
Dclock.c: In function ‘outline_digit’:
Dclock.c:2271:1: warning: old-style function definition [-Wold-style-definition]
 2271 | outline_digit(w, i, draw_it)
      | ^~~~~~~~~~~~~
make[2]: *** [<builtin>: Dclock.o] Error 1
make[2]: Leaving directory '/build/reproducible-path/dclock-2.2.2'
dh_auto_build: error: make -j8 "INSTALL=install --strip-program=true" "CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2" "CFLAGS=-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/dclock-2.2.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection" "CXXFLAGS=-g -O2 -ffile-prefix-map=/build/reproducible-path/dclock-2.2.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection" "LDFLAGS=-Wl,-z,relro -Wl,-z,now" returned exit code 2
make[1]: *** [debian/rules:15: override_dh_auto_build] Error 25
make[1]: Leaving directory '/build/reproducible-path/dclock-2.2.2'
make: *** [debian/rules:11: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2