Package: src:mailcheck Version: 1.91.2-4 Severity: normal Tags: sid bookworm User: debian-...@lists.debian.org Usertags: ftbfs-gcc-12
[This bug is targeted to the upcoming bookworm 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-12/g++-12, but succeeds to build with gcc-11/g++-11. The severity of this report will be raised before the bookworm release. The full build log can be found at: http://qa-logs.debian.net/2022/06/09/gcc12/mailcheck_1.91.2-4_unstable_gcc12.log The last lines of the build log are at the end of this report. To build with GCC 11, either set CC=gcc-11 CXX=g++-11 explicitly, or install the gcc, g++, gfortran, ... packages from experimental. apt-get -t=experimental install g++ 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-11/porting_to.html GCC 11 defaults to the GNU++17 standard. If your package installs header files in /usr/include, please don't work around C++17 issues by choosing a lower C++ standard for the package build, but fix these issues to build with the C++17 standard. [...] fakeroot debian/rules clean dh clean dh_auto_clean make -j8 distclean make[1]: Entering directory '/<<PKGBUILDDIR>>' rm -f mailcheck *~ make[1]: Leaving directory '/<<PKGBUILDDIR>>' dh_clean debian/rules build dh build dh_update_autotools_config dh_autoreconf dh_auto_configure dh_auto_build make -j8 "INSTALL=install --strip-program=true" make[1]: Entering directory '/<<PKGBUILDDIR>>' cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -Wall -O2 mailcheck.c netrc.c socket.c -o mailcheck mailcheck.c: In function ‘check_pop3’: mailcheck.c:461:3: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 461 | fgets (buf, BUF_SIZE, fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~ mailcheck.c:465:3: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 465 | fgets (buf, BUF_SIZE, fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~ mailcheck.c:481:3: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 481 | fgets (buf, BUF_SIZE, fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~ mailcheck.c:495:3: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 495 | fgets (buf, BUF_SIZE, fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~ mailcheck.c:510:3: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 510 | fgets (buf, BUF_SIZE, fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~ mailcheck.c: In function ‘check_imap’: mailcheck.c:559:3: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 559 | fgets (buf, BUF_SIZE, fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~ mailcheck.c:569:7: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 569 | fgets (buf, BUF_SIZE, fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~ mailcheck.c:586:3: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 586 | fgets (buf, BUF_SIZE, fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~ mailcheck.c:600:7: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 600 | fgets (buf, BUF_SIZE, fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~ mailcheck.c: In function ‘check_maildir’: mailcheck.c:162:40: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size between 0 and 2047 [-Wformat-truncation=] 162 | snprintf(fname, sizeof(fname), "%s/%s", dir, entry->d_name); | ^~ In file included from /usr/include/stdio.h:866, from mailcheck.c:21: In function ‘snprintf’, inlined from ‘ignore_maildir_entry’ at mailcheck.c:162:5, inlined from ‘check_maildir’ at mailcheck.c:416:9: /usr/include/x86_64-linux-gnu/bits/stdio2.h:71:10: note: ‘__builtin___snprintf_chk’ output between 2 and 2304 bytes into a destination of size 2048 71 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 72 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ /usr/bin/ld: /tmp/ccziOleX.o: in function `count_entries': ./mailcheck.c:191: undefined reference to `ignore_maildir_entry' collect2: error: ld returned 1 exit status make[1]: *** [Makefile:7: mailcheck] Error 1 make[1]: Leaving directory '/<<PKGBUILDDIR>>' dh_auto_build: error: make -j8 "INSTALL=install --strip-program=true" returned exit code 2 make: *** [debian/rules:7: build] Error 25 dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2