[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/cyrus-imapd_3.10.1-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
[...]
8565 | time_t compile_time = calc_compile_time(__TIME__, __DATE__);
| ^~~~~~~~
imap/http_dav.c:8565:55: warning: macro ‘__DATE__’ might prevent reproducible builds [-Wdate-time]
8565 | time_t compile_time = calc_compile_time(__TIME__, __DATE__);
| ^~~~~~~~
gcc -DHAVE_CONFIG_H -I. -I. -I./lib -I. -I./lib -DLIBEXEC_DIR=\"/usr/lib/cyrus/bin\" -DSBIN_DIR=\"/usr/lib/cyrus/bin\" -DSYSCONF_DIR=\"/etc\" -DHAVE_CONFIG_H -I/usr/include/libxml2 -I/usr/include/postgresql -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/cyrus-imapd-3.10.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -g -fno-strict-aliasing -pipe -O2 -DPCRE2POSIX_SHARED -c -o imap/http_h2.o imap/http_h2.c
gcc -DHAVE_CONFIG_H -I. -I. -I./lib -I. -I./lib -DLIBEXEC_DIR=\"/usr/lib/cyrus/bin\" -DSBIN_DIR=\"/usr/lib/cyrus/bin\" -DSYSCONF_DIR=\"/etc\" -DHAVE_CONFIG_H -I/usr/include/libxml2 -I/usr/include/postgresql -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/cyrus-imapd-3.10.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -g -fno-strict-aliasing -pipe -O2 -DPCRE2POSIX_SHARED -c -o imap/http_ischedule.o imap/http_ischedule.c
gcc -DHAVE_CONFIG_H -I. -I. -I./lib -I. -I./lib -DLIBEXEC_DIR=\"/usr/lib/cyrus/bin\" -DSBIN_DIR=\"/usr/lib/cyrus/bin\" -DSYSCONF_DIR=\"/etc\" -DHAVE_CONFIG_H -I/usr/include/libxml2 -I/usr/include/postgresql -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/cyrus-imapd-3.10.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -g -fno-strict-aliasing -pipe -O2 -DPCRE2POSIX_SHARED -c -o imap/http_jwt.o imap/http_jwt.c
imap/http_ischedule.c: In function ‘isched_init’:
imap/http_ischedule.c:1104:38: warning: macro ‘__TIME__’ might prevent reproducible builds [-Wdate-time]
1104 | compile_time = calc_compile_time(__TIME__, __DATE__);
| ^~~~~~~~
imap/http_ischedule.c:1104:48: warning: macro ‘__DATE__’ might prevent reproducible builds [-Wdate-time]
1104 | compile_time = calc_compile_time(__TIME__, __DATE__);
| ^~~~~~~~
gcc -DHAVE_CONFIG_H -I. -I. -I./lib -I. -I./lib -DLIBEXEC_DIR=\"/usr/lib/cyrus/bin\" -DSBIN_DIR=\"/usr/lib/cyrus/bin\" -DSYSCONF_DIR=\"/etc\" -DHAVE_CONFIG_H -I/usr/include/libxml2 -I/usr/include/postgresql -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/cyrus-imapd-3.10.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -g -fno-strict-aliasing -pipe -O2 -DPCRE2POSIX_SHARED -c -o imap/http_prometheus.o imap/http_prometheus.c
gcc -DHAVE_CONFIG_H -I. -I. -I./lib -I. -I./lib -DLIBEXEC_DIR=\"/usr/lib/cyrus/bin\" -DSBIN_DIR=\"/usr/lib/cyrus/bin\" -DSYSCONF_DIR=\"/etc\" -DHAVE_CONFIG_H -I/usr/include/libxml2 -I/usr/include/postgresql -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/cyrus-imapd-3.10.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -g -fno-strict-aliasing -pipe -O2 -DPCRE2POSIX_SHARED -c -o imap/http_proxy.o imap/http_proxy.c
gcc -DHAVE_CONFIG_H -I. -I. -I./lib -I. -I./lib -DLIBEXEC_DIR=\"/usr/lib/cyrus/bin\" -DSBIN_DIR=\"/usr/lib/cyrus/bin\" -DSYSCONF_DIR=\"/etc\" -DHAVE_CONFIG_H -I/usr/include/libxml2 -I/usr/include/postgresql -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/cyrus-imapd-3.10.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -g -fno-strict-aliasing -pipe -O2 -DPCRE2POSIX_SHARED -c -o imap/http_rss.o imap/http_rss.c
gcc -DHAVE_CONFIG_H -I. -I. -I./lib -I. -I./lib -DLIBEXEC_DIR=\"/usr/lib/cyrus/bin\" -DSBIN_DIR=\"/usr/lib/cyrus/bin\" -DSYSCONF_DIR=\"/etc\" -DHAVE_CONFIG_H -I/usr/include/libxml2 -I/usr/include/postgresql -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/cyrus-imapd-3.10.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -g -fno-strict-aliasing -pipe -O2 -DPCRE2POSIX_SHARED -c -o imap/http_tzdist.o imap/http_tzdist.c
gcc -DHAVE_CONFIG_H -I. -I. -I./lib -I. -I./lib -DLIBEXEC_DIR=\"/usr/lib/cyrus/bin\" -DSBIN_DIR=\"/usr/lib/cyrus/bin\" -DSYSCONF_DIR=\"/etc\" -DHAVE_CONFIG_H -I/usr/include/libxml2 -I/usr/include/postgresql -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/cyrus-imapd-3.10.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -g -fno-strict-aliasing -pipe -O2 -DPCRE2POSIX_SHARED -c -o imap/http_webdav.o imap/http_webdav.c
gcc -DHAVE_CONFIG_H -I. -I. -I./lib -I. -I./lib -DLIBEXEC_DIR=\"/usr/lib/cyrus/bin\" -DSBIN_DIR=\"/usr/lib/cyrus/bin\" -DSYSCONF_DIR=\"/etc\" -DHAVE_CONFIG_H -I/usr/include/libxml2 -I/usr/include/postgresql -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/cyrus-imapd-3.10.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -g -fno-strict-aliasing -pipe -O2 -DPCRE2POSIX_SHARED -c -o imap/http_ws.o imap/http_ws.c
imap/http_rss.c: In function ‘rss_init’:
imap/http_rss.c:149:38: warning: macro ‘__TIME__’ might prevent reproducible builds [-Wdate-time]
149 | compile_time = calc_compile_time(__TIME__, __DATE__);
| ^~~~~~~~
imap/http_rss.c:149:48: warning: macro ‘__DATE__’ might prevent reproducible builds [-Wdate-time]
149 | compile_time = calc_compile_time(__TIME__, __DATE__);
| ^~~~~~~~
imap/http_tzdist.c: In function ‘tzdist_init’:
imap/http_tzdist.c:651:38: warning: macro ‘__TIME__’ might prevent reproducible builds [-Wdate-time]
651 | compile_time = calc_compile_time(__TIME__, __DATE__);
| ^~~~~~~~
imap/http_tzdist.c:651:48: warning: macro ‘__DATE__’ might prevent reproducible builds [-Wdate-time]
651 | compile_time = calc_compile_time(__TIME__, __DATE__);
| ^~~~~~~~
gcc -DHAVE_CONFIG_H -I. -I. -I./lib -I. -I./lib -DLIBEXEC_DIR=\"/usr/lib/cyrus/bin\" -DSBIN_DIR=\"/usr/lib/cyrus/bin\" -DSYSCONF_DIR=\"/etc\" -DHAVE_CONFIG_H -I/usr/include/libxml2 -I/usr/include/postgresql -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/cyrus-imapd-3.10.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -g -fno-strict-aliasing -pipe -O2 -DPCRE2POSIX_SHARED -c -o imap/httpd.o imap/httpd.c
gcc -DHAVE_CONFIG_H -I. -I. -I./lib -I. -I./lib -DLIBEXEC_DIR=\"/usr/lib/cyrus/bin\" -DSBIN_DIR=\"/usr/lib/cyrus/bin\" -DSYSCONF_DIR=\"/etc\" -DHAVE_CONFIG_H -I/usr/include/libxml2 -I/usr/include/postgresql -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/cyrus-imapd-3.10.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -g -fno-strict-aliasing -pipe -O2 -DPCRE2POSIX_SHARED -c -o imap/itip_support.o imap/itip_support.c
gcc -DHAVE_CONFIG_H -I. -I. -I./lib -I. -I./lib -DLIBEXEC_DIR=\"/usr/lib/cyrus/bin\" -DSBIN_DIR=\"/usr/lib/cyrus/bin\" -DSYSCONF_DIR=\"/etc\" -DHAVE_CONFIG_H -I/usr/include/libxml2 -I/usr/include/postgresql -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/cyrus-imapd-3.10.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -g -fno-strict-aliasing -pipe -O2 -DPCRE2POSIX_SHARED -c -o imap/jcal.o imap/jcal.c
imap/httpd.c: In function ‘service_init’:
imap/httpd.c:905:38: warning: macro ‘__TIME__’ might prevent reproducible builds [-Wdate-time]
905 | compile_time = calc_compile_time(__TIME__, __DATE__);
| ^~~~~~~~
imap/httpd.c:905:48: warning: macro ‘__DATE__’ might prevent reproducible builds [-Wdate-time]
905 | compile_time = calc_compile_time(__TIME__, __DATE__);
| ^~~~~~~~
gcc -DHAVE_CONFIG_H -I. -I. -I./lib -I. -I./lib -DLIBEXEC_DIR=\"/usr/lib/cyrus/bin\" -DSBIN_DIR=\"/usr/lib/cyrus/bin\" -DSYSCONF_DIR=\"/etc\" -DHAVE_CONFIG_H -I/usr/include/libxml2 -I/usr/include/postgresql -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/cyrus-imapd-3.10.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -g -fno-strict-aliasing -pipe -O2 -DPCRE2POSIX_SHARED -c -o imap/xcal.o imap/xcal.c
gcc -DHAVE_CONFIG_H -I. -I. -I./lib -I. -I./lib -DLIBEXEC_DIR=\"/usr/lib/cyrus/bin\" -DSBIN_DIR=\"/usr/lib/cyrus/bin\" -DSYSCONF_DIR=\"/etc\" -DHAVE_CONFIG_H -I/usr/include/libxml2 -I/usr/include/postgresql -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/cyrus-imapd-3.10.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -g -fno-strict-aliasing -pipe -O2 -DPCRE2POSIX_SHARED -c -o imap/xml_support.o imap/xml_support.c
gcc -DHAVE_CONFIG_H -I. -I. -I./lib -I. -I./lib -DLIBEXEC_DIR=\"/usr/lib/cyrus/bin\" -DSBIN_DIR=\"/usr/lib/cyrus/bin\" -DSYSCONF_DIR=\"/etc\" -DHAVE_CONFIG_H -I/usr/include/libxml2 -I/usr/include/postgresql -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/cyrus-imapd-3.10.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -g -fno-strict-aliasing -pipe -O2 -DPCRE2POSIX_SHARED -c -o imap/zoneinfo_db.o imap/zoneinfo_db.c
gcc -DHAVE_CONFIG_H -I. -I. -I./lib -I. -I./lib -DLIBEXEC_DIR=\"/usr/lib/cyrus/bin\" -DSBIN_DIR=\"/usr/lib/cyrus/bin\" -DSYSCONF_DIR=\"/etc\" -DHAVE_CONFIG_H -I/usr/include/libxml2 -I/usr/include/postgresql -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/cyrus-imapd-3.10.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -g -fno-strict-aliasing -pipe -O2 -DPCRE2POSIX_SHARED -c -o imap/defaultalarms.o imap/defaultalarms.c
imap/zoneinfo_db.c:308:14: error: conflicting types for ‘zoneinfo_find’; have ‘int(const char *, int, time_t, int (*)(void), void *)’ {aka ‘int(const char *, int, long int, int (*)(void), void *)’}
308 | EXPORTED int zoneinfo_find(const char *find, int tzid_only, time_t changedsince,
| ^~~~~~~~~~~~~
In file included from imap/zoneinfo_db.c:64:
imap/zoneinfo_db.h:99:12: note: previous declaration of ‘zoneinfo_find’ with type ‘int(const char *, int, time_t, int (*)(const char *, int, struct zoneinfo *, void *), void *)’ {aka ‘int(const char *, int, long int, int (*)(const char *, int, struct zoneinfo *, void *), void *)’}
99 | extern int zoneinfo_find(const char *find, int tzid_only, time_t changedsince,
| ^~~~~~~~~~~~~
imap/zoneinfo_db.c: In function ‘zoneinfo_find’:
imap/zoneinfo_db.c:321:16: error: assignment to ‘int (*)(const char *, int, struct zoneinfo *, void *)’ from incompatible pointer type ‘int (*)(void)’ [-Wincompatible-pointer-types]
321 | frock.proc = proc;
| ^
make[3]: *** [Makefile:5578: imap/zoneinfo_db.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/build/reproducible-path/cyrus-imapd-3.10.1'
make[2]: *** [Makefile:7675: all-recursive] Error 1
make[2]: Leaving directory '/build/reproducible-path/cyrus-imapd-3.10.1'
make[1]: *** [Makefile:3414: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/cyrus-imapd-3.10.1'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:62: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2