Package: src:filter
Version: 2.6.3+ds1-4
Severity: important
Tags: sid trixie
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-14

[This bug is 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-14/g++-14, but succeeds to build with gcc-13/g++-13. The
severity of this report will be raised before the trixie release.

The full build log can be found at:
http://qa-logs.debian.net/2024/07/01/filter_2.6.3+ds1-4_unstable_gccexp.log
The last lines of the build log are at the end of this report.

To build with GCC 14, either set CC=gcc-14 CXX=g++-14 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-14/porting_to.html

[...]
 
Doing variable substitutions on .SH files...
Extracting Makefile (with variable substitutions)
Extracting config.h (with variable substitutions)
Extracting sysdefs.h (with variable substitutions)
Extracting doc/Makefile (with variable substitutions)
 
Now you must run a make.
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_build
dh_auto_build: warning: Compatibility levels before 10 are deprecated (level 9 
in use)
        make -j1
make[1]: Entering directory '/<<PKGBUILDDIR>>'
/bin/chmod u+w defs.h
/bin/touch defs.h
cc -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-Wdate-time -D_FORTIFY_SOURCE=2  -c -o actions.o actions.c
actions.c: In function ‘mail_message’:
actions.c:274:21: warning: ignoring return value of ‘setuid’ declared with 
attribute ‘warn_unused_result’ [-Wunused-result]
  274 |                     setuid(user_uid);
      |                     ^~~~~~~~~~~~~~~~
actions.c:275:21: warning: ignoring return value of ‘setgid’ declared with 
attribute ‘warn_unused_result’ [-Wunused-result]
  275 |                     setgid(user_gid);
      |                     ^~~~~~~~~~~~~~~~
actions.c: In function ‘execute’:
actions.c:549:17: warning: ignoring return value of ‘setgid’ declared with 
attribute ‘warn_unused_result’ [-Wunused-result]
  549 |                 setgid(user_gid);
      |                 ^~~~~~~~~~~~~~~~
actions.c:550:17: warning: ignoring return value of ‘setuid’ declared with 
attribute ‘warn_unused_result’ [-Wunused-result]
  550 |                 setuid(user_uid);
      |                 ^~~~~~~~~~~~~~~~
actions.c:554:17: warning: ignoring return value of ‘dup’ declared with 
attribute ‘warn_unused_result’ [-Wunused-result]
  554 |                 dup(tmpfd);
      |                 ^~~~~~~~~~
actions.c: In function ‘emergency_local_delivery’:
actions.c:581:30: warning: ‘%s’ directive writing 14 bytes into a region of 
size between 0 and 255 [-Wformat-overflow=]
  581 |         sprintf(mailbox, "%s/%s", home, EMERGENCY_MAILBOX);
      |                              ^~
In file included from /usr/include/stdio.h:964,
                 from actions.c:76:
In function ‘sprintf’,
    inlined from ‘emergency_local_delivery’ at actions.c:581:2:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: 
‘__builtin___sprintf_chk’ output between 16 and 271 bytes into a destination of 
size 256
   30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   31 |                                   __glibc_objsize (__s), __fmt,
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   32 |                                   __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~
actions.c: In function ‘emergency_local_delivery’:
actions.c:589:31: warning: ‘%s’ directive writing 14 bytes into a region of 
size between 0 and 255 [-Wformat-overflow=]
  589 |           sprintf(mailbox,"%s/%s", home, EMERG_MBOX);
      |                               ^~
In function ‘sprintf’,
    inlined from ‘emergency_local_delivery’ at actions.c:589:4:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: 
‘__builtin___sprintf_chk’ output between 16 and 271 bytes into a destination of 
size 256
   30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   31 |                                   __glibc_objsize (__s), __fmt,
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   32 |                                   __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~
cc -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-Wdate-time -D_FORTIFY_SOURCE=2  -c -o filter.o filter.c
filter.c:164:1: error: return type defaults to ‘int’ [-Wimplicit-int]
  164 | main(argc, argv)
      | ^~~~
make[1]: *** [<builtin>: filter.o] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j1 returned exit code 2
make: *** [debian/rules:9: build] Error 255
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

Reply via email to