[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1097660: proxsmtp: ftbfs with GCC-15



Package: src:proxsmtp
Version: 1.10-5
Severity: important
Tags: sid forky
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-15

[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/proxsmtp_1.10-5_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

[...]
      |         ^~~~
../common/smtppass.c:328:5: warning: ‘siginterrupt’ is deprecated: Use sigaction with SA_RESTART instead [-Wdeprecated-declarations]
  328 |     siginterrupt(SIGINT, 1);
      |     ^~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/param.h:28,
                 from ../common/smtppass.c:46:
/usr/include/signal.h:324:12: note: declared here
  324 | extern int siginterrupt (int __sig, int __interrupt) __THROW
      |            ^~~~~~~~~~~~
../common/smtppass.c:329:5: warning: ‘siginterrupt’ is deprecated: Use sigaction with SA_RESTART instead [-Wdeprecated-declarations]
  329 |     siginterrupt(SIGTERM, 1);
      |     ^~~~~~~~~~~~
/usr/include/signal.h:324:12: note: declared here
  324 | extern int siginterrupt (int __sig, int __interrupt) __THROW
      |            ^~~~~~~~~~~~
../common/smtppass.c:340:56: error: lvalue required as unary ‘&’ operand
  340 |     setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (void *)&true, sizeof(true));
      |                                                        ^
../common/smtppass.c: In function ‘thread_main’:
../common/smtppass.c:752:5: warning: ‘siginterrupt’ is deprecated: Use sigaction with SA_RESTART instead [-Wdeprecated-declarations]
  752 |     siginterrupt(SIGINT, 1);
      |     ^~~~~~~~~~~~
/usr/include/signal.h:324:12: note: declared here
  324 | extern int siginterrupt (int __sig, int __interrupt) __THROW
      |            ^~~~~~~~~~~~
../common/smtppass.c:753:5: warning: ‘siginterrupt’ is deprecated: Use sigaction with SA_RESTART instead [-Wdeprecated-declarations]
  753 |     siginterrupt(SIGTERM, 1);
      |     ^~~~~~~~~~~~
/usr/include/signal.h:324:12: note: declared here
  324 | extern int siginterrupt (int __sig, int __interrupt) __THROW
      |            ^~~~~~~~~~~~
../common/smtppass.c: In function ‘sp_setup_forked’:
../common/smtppass.c:1972:5: warning: ‘siginterrupt’ is deprecated: Use sigaction with SA_RESTART instead [-Wdeprecated-declarations]
 1972 |     siginterrupt(SIGINT, 0);
      |     ^~~~~~~~~~~~
/usr/include/signal.h:324:12: note: declared here
  324 | extern int siginterrupt (int __sig, int __interrupt) __THROW
      |            ^~~~~~~~~~~~
../common/smtppass.c:1973:5: warning: ‘siginterrupt’ is deprecated: Use sigaction with SA_RESTART instead [-Wdeprecated-declarations]
 1973 |     siginterrupt(SIGTERM, 0);
      |     ^~~~~~~~~~~~
/usr/include/signal.h:324:12: note: declared here
  324 | extern int siginterrupt (int __sig, int __interrupt) __THROW
      |            ^~~~~~~~~~~~
../common/smtppass.c: In function ‘connection_loop’:
../common/smtppass.c:599:21: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  599 |                     write(fd, SMTP_STARTFAILED, KL(SMTP_STARTFAILED));
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../common/smtppass.c:616:13: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  616 |             write(fd, SMTP_STARTBUSY, KL(SMTP_STARTBUSY));
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:434: proxsmtpd-smtppass.o] Error 1
make[3]: *** Waiting for unfinished jobs....
../common/spio.c: In function ‘read_raw’:
../common/spio.c:501:38: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
  501 |             io->line[SP_LINE_LENGTH] = 0;
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from ../common/sppriv.h:42,
                 from ../common/spio.c:73:
../common/smtppass.h:74:10: note: at offset 4224 into destination object ‘line’ of size 4224
   74 |     char line[SP_LINE_LENGTH];
      |          ^~~~
make[3]: Leaving directory '/build/reproducible-path/proxsmtp-1.10/src'
make[2]: *** [Makefile:378: all-recursive] Error 1
make[2]: Leaving directory '/build/reproducible-path/proxsmtp-1.10'
make[1]: *** [Makefile:319: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/proxsmtp-1.10'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:5: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


Reply to: