[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/opendkim_2.11.0~beta2-9.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
[...]
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
70 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
rbl.c: In function 'rbl_query_check':
rbl.c:1187:30: warning: '' reply was unresolved CNAME' directive output may be truncated writing 28 bytes into a region of size between 0 and 256 [-Wformat-truncation=]
1187 | "'%s' reply was unresolved CNAME", qname);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'snprintf',
inlined from 'rbl_query_check' at rbl.c:1186:3:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output between 30 and 286 bytes into a destination of size 257
68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
70 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
rbl.c: In function 'rbl_query_check':
rbl.c:1084:30: warning: '' unexpected reply type/class' directive output may be truncated writing 29 bytes into a region of size between 0 and 256 [-Wformat-truncation=]
1084 | "'%s' unexpected reply type/class", qname);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'snprintf',
inlined from 'rbl_query_check' at rbl.c:1083:3:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output between 31 and 287 bytes into a destination of size 257
68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
70 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
rbl.c: In function 'rbl_query_check':
rbl.c:1065:38: warning: '' reply corrupt' directive output may be truncated writing 15 bytes into a region of size between 0 and 256 [-Wformat-truncation=]
1065 | "'%s' reply corrupt", qname);
| ^~~~~~~~~~~~~~~
In function 'snprintf',
inlined from 'rbl_query_check' at rbl.c:1064:4:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output between 17 and 273 bytes into a destination of size 257
68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
70 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -DCONFIG_BASE=\"/etc\" -g -O2 -Werror=implicit-function-declaration "-ffile-prefix-map=/build/reproducible-path/opendkim-2.11.0~beta2=." -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -c rbl.c -o rbl.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/opendkim-2.11.0~beta2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -version-info 1:0:0 -rpath /usr/lib/x86_64-linux-gnu -Wl,-z,relro -Wl,-z,now -Wl,-z,defs -L/usr/lib/libmilter -o librbl.la -rpath /usr/lib/x86_64-linux-gnu rbl.lo
libtool: link: gcc -shared -fPIC -DPIC .libs/rbl.o -L/usr/lib/libmilter -g -O2 -Werror=implicit-function-declaration "-ffile-prefix-map=/build/reproducible-path/opendkim-2.11.0~beta2=." -fstack-protector-strong -Werror=format-security -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-z -Wl,defs -Wl,-soname -Wl,librbl.so.1 -o .libs/librbl.so.1.0.0
libtool: link: (cd ".libs" && rm -f "librbl.so.1" && ln -s "librbl.so.1.0.0" "librbl.so.1")
libtool: link: (cd ".libs" && rm -f "librbl.so" && ln -s "librbl.so.1.0.0" "librbl.so")
libtool: link: ar cr .libs/librbl.a rbl.o
libtool: link: ranlib .libs/librbl.a
libtool: link: ( cd ".libs" && rm -f "librbl.la" && ln -s "../librbl.la" "librbl.la" )
make[3]: Leaving directory '/build/reproducible-path/opendkim-2.11.0~beta2/librbl'
Making all in miltertest
make[3]: Entering directory '/build/reproducible-path/opendkim-2.11.0~beta2/miltertest'
gcc -DHAVE_CONFIG_H -I. -I.. -I./../libopendkim -I/usr/include -I/usr/include/lua5.3 -Wdate-time -D_FORTIFY_SOURCE=2 -DCONFIG_BASE=\"/etc\" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/opendkim-2.11.0~beta2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -c -o miltertest-miltertest.o `test -f 'miltertest.c' || echo './'`miltertest.c
In file included from miltertest.c:32:
/usr/include/libmilter/mfapi.h:98:17: error: ‘bool’ cannot be defined via ‘typedef’
98 | typedef int bool;
| ^~~~
/usr/include/libmilter/mfapi.h:98:17: note: ‘bool’ is a keyword with ‘-std=c23’ onwards
make[3]: *** [Makefile:585: miltertest-miltertest.o] Error 1
make[3]: Leaving directory '/build/reproducible-path/opendkim-2.11.0~beta2/miltertest'
make[2]: *** [Makefile:604: all-recursive] Error 1
make[2]: Leaving directory '/build/reproducible-path/opendkim-2.11.0~beta2'
make[1]: *** [Makefile:515: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/opendkim-2.11.0~beta2'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2