[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1098021: twclock: ftbfs with GCC-15



Package: src:twclock
Version: 3.5-1
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/twclock_3.5-1_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

[...]
checking for pulse/simple.h... yes
checking for pulse/error.h... yes
checking for pa_simple_new in -lpulse-simple... yes
checking for pa_strerror in -lpulse... yes
checking for X11/Intrinsic.h... yes
checking how to run the C preprocessor... gcc -E
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for Motif... libraries in default path, headers in default path
checking for X11/xpm.h... yes
checking for XpmCreatePixmapFromData in -lXpm... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for xt... yes
######################################################################
CFLAGS = -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/twclock-3.5=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection
LIBS = -lXm -lXt -lX11 -lSM -lICE -lXpm -lpulse -lpulse-simple -lpthread -lm
LDFLAGS = -Wl,-z,relro -Wl,-z,now
APP DEFAULTS DIR = /etc/X11/app-defaults
######################################################################
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/icons/Makefile
config.status: creating man/Makefile
config.status: creating man/en/Makefile
config.status: creating config.h
config.status: executing depfiles commands
   dh_auto_build
dh_auto_build: warning: Use of debian/compat is deprecated and will be removed in debhelper (>= 14~).
	make -j8
make[1]: Entering directory '/build/reproducible-path/twclock-3.5'
make  all-recursive
make[2]: Entering directory '/build/reproducible-path/twclock-3.5'
Making all in src
make[3]: Entering directory '/build/reproducible-path/twclock-3.5/src'
Making all in icons
make[4]: Entering directory '/build/reproducible-path/twclock-3.5/src/icons'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/build/reproducible-path/twclock-3.5/src/icons'
make[4]: Entering directory '/build/reproducible-path/twclock-3.5/src'
gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/twclock-3.5=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection   -c -o twclock.o twclock.c
gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/twclock-3.5=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection   -c -o twclockWids.o twclockWids.c
gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/twclock-3.5=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection   -c -o twclockCB.o twclockCB.c
gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/twclock-3.5=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection   -c -o twclockDiags.o twclockDiags.c
gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/twclock-3.5=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection   -c -o libCW.o libCW.c
libCW.c:852:7: error: conflicting types for ‘cw_get_serdev’; have ‘char *(char *)’
  852 | char *cw_get_serdev (char *p)
      |       ^~~~~~~~~~~~~
In file included from libCW.c:27:
libCW.h:56:8: note: previous declaration of ‘cw_get_serdev’ with type ‘char *(void)’
   56 | char  *cw_get_serdev ();
      |        ^~~~~~~~~~~~~
make[4]: *** [Makefile:464: libCW.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/build/reproducible-path/twclock-3.5/src'
make[3]: *** [Makefile:501: all-recursive] Error 1
make[3]: Leaving directory '/build/reproducible-path/twclock-3.5/src'
make[2]: *** [Makefile:468: all-recursive] Error 1
make[2]: Leaving directory '/build/reproducible-path/twclock-3.5'
make[1]: *** [Makefile:367: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/twclock-3.5'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:19: binary] Error 255
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


Reply to: