Debian Bug report logs - #1098087
wdm: ftbfs with GCC-15

version graph

Package: src:wdm; Maintainer for src:wdm is Axel Beckert <[email protected]>;

Reported by: Matthias Klose <[email protected]>

Date: Mon, 17 Feb 2025 18:01:27 UTC

Severity: important

Tags: forky, sid

Found in version wdm/1.28-27

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to Axel Beckert <[email protected]>:
Bug#1098087; Package src:wdm. (Mon, 17 Feb 2025 18:01:27 GMT) (full text, mbox, link).


Acknowledgement sent to Matthias Klose <[email protected]>:
New Bug report received and forwarded. Copy sent to Axel Beckert <[email protected]>. (Mon, 17 Feb 2025 18:01:27 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Matthias Klose <[email protected]>
To: [email protected]
Subject: wdm: ftbfs with GCC-15
Date: Mon, 17 Feb 2025 18:00:02 +0000
Package: src:wdm
Version: 1.28-27
Severity: important
Tags: sid forky
User: [email protected]
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/wdm_1.28-27_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

[...]
   dh_auto_build
	make -j8
make[1]: Entering directory '/build/reproducible-path/wdm-1.28'
gcc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/wdm-1.28=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DHAVE_CONFIG_H -I./include  -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -pthread   src/TestLogin/TestLogin.c -o src/TestLogin/TestLogin.o
gcc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/wdm-1.28=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DHAVE_CONFIG_H -I./include  -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -pthread   src/libwdm/debug.c -o src/libwdm/debug.o
gcc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/wdm-1.28=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DHAVE_CONFIG_H -I./include  -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -pthread   src/libwdm/environment.c -o src/libwdm/environment.o
gcc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/wdm-1.28=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DHAVE_CONFIG_H -I./include  -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -pthread   src/libwdm/names.c -o src/libwdm/names.o
gcc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/wdm-1.28=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DHAVE_CONFIG_H -I./include  -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -pthread   src/libwdm/plcheckers.c -o src/libwdm/plcheckers.o
gcc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/wdm-1.28=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DHAVE_CONFIG_H -I./include  -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -pthread   -DWITH_SELINUX -I/usr/include/selinux src/wdm/Greet.c -o src/wdm/Greet.o
gcc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/wdm-1.28=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DHAVE_CONFIG_H -I./include  -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -pthread   -DWITH_SELINUX -I/usr/include/selinux src/wdm/access.c -o src/wdm/access.o
gcc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/wdm-1.28=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DHAVE_CONFIG_H -I./include  -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -pthread   -DWITH_SELINUX -I/usr/include/selinux src/wdm/auth.c -o src/wdm/auth.o
src/libwdm/plcheckers.c: In function ‘WDMCheckPLBool’:
src/libwdm/plcheckers.c:37:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   37 |         *bool_target = (Bool)def;
      |                        ^
gcc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/wdm-1.28=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DHAVE_CONFIG_H -I./include  -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -pthread   -DWITH_SELINUX -I/usr/include/selinux src/wdm/choose.c -o src/wdm/choose.o
src/TestLogin/TestLogin.c: In function ‘main’:
src/TestLogin/TestLogin.c:186:9: warning: ignoring return value of ‘pipe’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  186 |         pipe(filedescriptor);
      |         ^~~~~~~~~~~~~~~~~~~~
src/wdm/Greet.c:143:19: error: conflicting types for ‘systemEnv’; have ‘char **(void)’
  143 | extern  char    **systemEnv();
      |                   ^~~~~~~~~
In file included from src/wdm/Greet.c:97:
./include/dm.h:438:15: note: previous declaration of ‘systemEnv’ with type ‘char **(struct display *, char *, char *)’
  438 | extern char **systemEnv (struct display *d, char *user, char *home);
      |               ^~~~~~~~~
src/wdm/Greet.c: In function ‘InitGreet’:
src/wdm/Greet.c:219:24: error: too many arguments to function ‘systemEnv’; expected 0, have 3
  219 |         env = (char **)systemEnv(d, (char*)NULL, FAKEHOME);
      |                        ^~~~~~~~~ ~
src/wdm/Greet.c:143:19: note: declared here
  143 | extern  char    **systemEnv();
      |                   ^~~~~~~~~
src/wdm/Greet.c: In function ‘GreetUser’:
src/wdm/Greet.c:359:48: warning: format ‘%i’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
  359 |         WDMDebug("Greet greet done: %s, pwlen=%i\n", name, strlen(password));
      |                                               ~^           ~~~~~~~~~~~~~~~~
      |                                                |           |
      |                                                int         size_t {aka long unsigned int}
      |                                               %li
src/wdm/Greet.c:378:25: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  378 |                         system(wdmReboot);
      |                         ^~~~~~~~~~~~~~~~~
src/wdm/Greet.c:384:25: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  384 |                         system(wdmHalt);
      |                         ^~~~~~~~~~~~~~~
src/wdm/Greet.c: In function ‘InitGreet’:
src/wdm/Greet.c:203:5: warning: ignoring return value of ‘pipe’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  203 |     pipe(pipe_filedes);
      |     ^~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:128: src/wdm/Greet.o] Error 1
make[1]: *** Waiting for unfinished jobs....
src/wdm/auth.c: In function ‘MakeServerAuthFile’:
src/wdm/auth.c:299:48: warning: ignoring return value of ‘chown’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  299 |                                         (void) chown(d->authFile,
      |                                                ^~~~~~~~~~~~~~~~~~
  300 |                                                      0, statb.st_gid);
      |                                                      ~~~~~~~~~~~~~~~~
src/wdm/auth.c: In function ‘SetUserAuthorization’:
src/wdm/auth.c:1068:16: warning: ignoring return value of ‘mkstemp’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1068 |         (void) mkstemp (backup_name);
      |                ^~~~~~~~~~~~~~~~~~~~~
src/wdm/auth.c:1172:13: warning: ignoring return value of ‘chown’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1172 |             chown (envname, verify->uid, verify->gid);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: Leaving directory '/build/reproducible-path/wdm-1.28'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:33: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 12:53:10 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.