• Bug#1097875: Fwd: Bug#1097875: sharutils: ftbfs with GCC-15

    From Santiago Vila@21:1/5 to All on Thu Mar 6 19:30:01 2025
    Hello.

    I received the following report from the Debian BTS.

    sharutils fails to build from source with gcc 15.

    For the Debian package, I'm going to add -std=c17 to CFLAGS
    in the meantime, but a new official release would be nice.

    Thanks.

    -------- Mensaje reenviado --------
    Asunto: Bug#1097875: sharutils: ftbfs with GCC-15
    Resent-Date: Mon, 17 Feb 2025 17:55:02 +0000
    Resent-From: Matthias Klose <doko@debian.org>
    Fecha: Mon, 17 Feb 2025 17:53:14 +0000
    De: Matthias Klose <doko@debian.org>

    Package: src:sharutils
    Version: 1:4.15.2-10
    Severity: important
    Tags: sid forky
    User: debian-gcc@lists.debian.org
    Usertags: ftbfs-gcc-15

    [...]

    The full build log can be found at: http://qa-logs.debian.net/2025/02/16/amd64exp/sharutils_4.15.2-10_unstable_gccexp.log.gz
    The last lines of the build log are at the end of this report.

    [...]

    gcc -DHAVE_CONFIG_H -I. -I.. -I. -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-format-contains-nul -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/sharutils-4.15.2=. -fstack-protector-strong -fstack-clash-protection -fcf-
    protection -Wno-format-contains-nul -c -o libopts_a-libopts.o `test -f 'libopts.c' || echo './'`libopts.c
    In file included from autoopts/project.h:30,
    from libopts.c:2:
    ./compat/compat.h:188:19: error: cannot use keyword ‘false’ as enumeration constant
    188 | typedef enum { false = 0, true = 1 } _Bool;
    | ^~~~~
    ./compat/compat.h:188:19: note: ‘false’ is a keyword with ‘-std=c23’ onwards
    ./compat/compat.h:188:41: error: expected ‘;’, identifier or ‘(’ before ‘_Bool’
    188 | typedef enum { false = 0, true = 1 } _Bool;
    | ^~~~~ ./compat/compat.h:188:41: warning: useless type name in empty declaration make[4]: *** [Makefile:1312: libopts_a-libopts.o] Error 1
    make[4]: Leaving directory '/build/reproducible-path/sharutils-4.15.2/libopts' make[3]: *** [Makefile:1237: all] Error 2
    make[3]: Leaving directory '/build/reproducible-path/sharutils-4.15.2/libopts' make[2]: *** [Makefile:1314: all-recursive] Error 1
    make[2]: Leaving directory '/build/reproducible-path/sharutils-4.15.2'
    make[1]: *** [Makefile:1253: all] Error 2
    make[1]: Leaving directory '/build/reproducible-path/sharutils-4.15.2' dh_auto_build: error: make -j8 returned exit code 2
    make: *** [debian/rules:3: binary] Error 25
    dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)