[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/mailutils_3.17-2_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
[...]
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include -I../../include -I/libmailutils -Wdate-time -D_FORTIFY_SOURCE=2 -DSYSCONFDIR=\"/etc\" -g -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/mailutils-3.17=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -ggdb -c ent_creat.c -fPIC -DPIC -o .libs/ent_creat.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include -I../../include -I/libmailutils -Wdate-time -D_FORTIFY_SOURCE=2 -DSYSCONFDIR=\"/etc\" -g -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/mailutils-3.17=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -ggdb -c ent_locus.c -fPIC -DPIC -o .libs/ent_locus.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include -I../../include -I/libmailutils -Wdate-time -D_FORTIFY_SOURCE=2 -DSYSCONFDIR=\"/etc\" -g -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/mailutils-3.17=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -ggdb -c ent_type.c -fPIC -DPIC -o .libs/ent_type.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include -I../../include -I/libmailutils -Wdate-time -D_FORTIFY_SOURCE=2 -DSYSCONFDIR=\"/etc\" -g -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/mailutils-3.17=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -ggdb -c fields.c -fPIC -DPIC -o .libs/fields.o
/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include -I../../include -I/libmailutils -Wdate-time -D_FORTIFY_SOURCE=2 -DSYSCONFDIR=\"/etc\" -g -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/mailutils-3.17=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -ggdb -c -o fieldacc.lo fieldacc.c
/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include -I../../include -I/libmailutils -Wdate-time -D_FORTIFY_SOURCE=2 -DSYSCONFDIR=\"/etc\" -g -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/mailutils-3.17=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -ggdb -c -o finder.lo finder.c
/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include -I../../include -I/libmailutils -Wdate-time -D_FORTIFY_SOURCE=2 -DSYSCONFDIR=\"/etc\" -g -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/mailutils-3.17=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -ggdb -c -o parse.lo parse.c
/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include -I../../include -I/libmailutils -Wdate-time -D_FORTIFY_SOURCE=2 -DSYSCONFDIR=\"/etc\" -g -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/mailutils-3.17=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -ggdb -c -o parsefile.lo parsefile.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include -I../../include -I/libmailutils -Wdate-time -D_FORTIFY_SOURCE=2 -DSYSCONFDIR=\"/etc\" -g -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/mailutils-3.17=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -ggdb -c fieldacc.c -fPIC -DPIC -o .libs/fieldacc.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include -I../../include -I/libmailutils -Wdate-time -D_FORTIFY_SOURCE=2 -DSYSCONFDIR=\"/etc\" -g -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/mailutils-3.17=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -ggdb -c finder.c -fPIC -DPIC -o .libs/finder.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include -I../../include -I/libmailutils -Wdate-time -D_FORTIFY_SOURCE=2 -DSYSCONFDIR=\"/etc\" -g -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/mailutils-3.17=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -ggdb -c parse.c -fPIC -DPIC -o .libs/parse.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include -I../../include -I/libmailutils -Wdate-time -D_FORTIFY_SOURCE=2 -DSYSCONFDIR=\"/etc\" -g -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/mailutils-3.17=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -ggdb -c parsefile.c -fPIC -DPIC -o .libs/parsefile.o
/bin/bash ../../libtool --tag=CC --mode=link gcc -g -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/mailutils-3.17=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -ggdb -Wl,-z,relro -Wl,-z,now -Wl,--no-as-needed -o libmailcap.la ctmatch.lo deferrclos.lo mcp_creat.lo mcp_destr.lo mcp_get.lo mcp_err.lo mcp_find.lo mcp_flags.lo mcp_sel.lo mcp_count.lo ent_cmd.lo ent_creat.lo ent_destr.lo ent_locus.lo ent_type.lo fields.lo fieldacc.lo finder.lo parse.lo parsefile.lo -lcrypt -lresolv -lpthread
libtool: link: ar cr .libs/libmailcap.a .libs/ctmatch.o .libs/deferrclos.o .libs/mcp_creat.o .libs/mcp_destr.o .libs/mcp_get.o .libs/mcp_err.o .libs/mcp_find.o .libs/mcp_flags.o .libs/mcp_sel.o .libs/mcp_count.o .libs/ent_cmd.o .libs/ent_creat.o .libs/ent_destr.o .libs/ent_locus.o .libs/ent_type.o .libs/fields.o .libs/fieldacc.o .libs/finder.o .libs/parse.o .libs/parsefile.o
libtool: link: ranlib .libs/libmailcap.a
libtool: link: ( cd ".libs" && rm -f "libmailcap.la" && ln -s "../libmailcap.la" "libmailcap.la" )
make[5]: Leaving directory '/build/reproducible-path/mailutils-3.17/libmailutils/mailcap'
Making all in mailer
make[5]: Entering directory '/build/reproducible-path/mailutils-3.17/libmailutils/mailer'
/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include -I../../include -I/libmailutils -Wdate-time -D_FORTIFY_SOURCE=2 -DSYSCONFDIR=\"/etc\" -g -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/mailutils-3.17=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -ggdb -c -o mailer.lo mailer.c
/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include -I../../include -I/libmailutils -Wdate-time -D_FORTIFY_SOURCE=2 -DSYSCONFDIR=\"/etc\" -g -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/mailutils-3.17=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -ggdb -c -o progmailer.lo progmailer.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include -I../../include -I/libmailutils -Wdate-time -D_FORTIFY_SOURCE=2 -DSYSCONFDIR=\"/etc\" -g -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/mailutils-3.17=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -ggdb -c progmailer.c -fPIC -DPIC -o .libs/progmailer.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include -I../../include -I/libmailutils -Wdate-time -D_FORTIFY_SOURCE=2 -DSYSCONFDIR=\"/etc\" -g -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/mailutils-3.17=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -ggdb -c mailer.c -fPIC -DPIC -o .libs/mailer.o
progmailer.c: In function 'mu_progmailer_create':
progmailer.c:63:18: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int)' [-Wincompatible-pointer-types]
63 | pm->sighandler = SIG_ERR;
| ^
progmailer.c: In function 'mu_progmailer_open':
progmailer.c:116:23: error: assignment to 'void (*)(void)' from incompatible pointer type '__sighandler_t' {aka 'void (*)(int)'} [-Wincompatible-pointer-types]
116 | if ((pm->sighandler = signal (SIGCHLD, SIG_DFL)) == SIG_ERR)
| ^
In file included from progmailer.c:27:
/usr/include/signal.h:72:16: note: '__sighandler_t' declared here
72 | typedef void (*__sighandler_t) (int);
| ^~~~~~~~~~~~~~
progmailer.c:116:52: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types]
116 | if ((pm->sighandler = signal (SIGCHLD, SIG_DFL)) == SIG_ERR)
| ^~
progmailer.c: In function 'mu_progmailer_close':
progmailer.c:295:22: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types]
295 | if (pm->sighandler != SIG_ERR
| ^~
progmailer.c:296:29: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types]
296 | && signal (SIGCHLD, pm->sighandler) == SIG_ERR)
| ~~^~~~~~~~~~~~
| |
| void (*)(void)
/usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)'
88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
| ~~~~~~~~~~~~~~~^~~~~~~~~
/usr/include/signal.h:72:16: note: '__sighandler_t' declared here
72 | typedef void (*__sighandler_t) (int);
| ^~~~~~~~~~~~~~
progmailer.c:302:18: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int)' [-Wincompatible-pointer-types]
302 | pm->sighandler = SIG_ERR;
| ^
make[5]: *** [Makefile:1276: progmailer.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: Leaving directory '/build/reproducible-path/mailutils-3.17/libmailutils/mailer'
make[4]: *** [Makefile:1446: all-recursive] Error 1
make[4]: Leaving directory '/build/reproducible-path/mailutils-3.17/libmailutils'
make[3]: *** [Makefile:1379: all-recursive] Error 1
make[3]: Leaving directory '/build/reproducible-path/mailutils-3.17'
make[2]: *** [Makefile:1263: all] Error 2
make[2]: Leaving directory '/build/reproducible-path/mailutils-3.17'
dh_auto_build: error: make -j8 returned exit code 2
make[1]: *** [debian/rules:47: override_dh_auto_build] Error 25
make[1]: Leaving directory '/build/reproducible-path/mailutils-3.17'
make: *** [debian/rules:4: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2