#1097400 mimedefang: ftbfs with GCC-15

Package:
src:mimedefang
Source:
src:mimedefang
Submitter:
Matthias Klose
Date:
2025-10-05 12:05:02 UTC
Severity:
normal
Tags:
#1097400#5
Date:
2025-02-17 17:37:49 UTC
From:
To:
[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/mimedefang_3.5-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

[...]
checking for initgroups... yes
checking for getpwnam_r... yes
checking for setrlimit... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for readdir_r... yes
checking for pathconf... yes
checking for inet_ntop... yes
checking for rspamc... /bin/false
checking for sendmail... /usr/sbin/sendmail
checking for libmilter/mfapi.h... /usr/include/libmilter/mfapi.h
checking for libmilter.a... no
checking for libsm.a... no
checking for libmilter.so... no
configure: WARNING: Oops.. I couldn't find libmilter.a or libmilter.so.  Please install Sendmail
configure: WARNING: and its libraries.  You must run Build in the libmilter/ directory
configure: WARNING: to compile libmilter.
checking whether libmilter requires -lsm... yes
checking whether libsm requires -lldap... /usr/bin/nm: 'no': No such file
no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mimedefang.pl
config.status: creating mimedefang-release.pl
config.status: creating script/mimedefang-util
config.status: creating examples/init-script
config.status: creating mimedefang-filter.5
config.status: creating mimedefang-multiplexor.8
config.status: creating mimedefang-protocol.7
config.status: creating mimedefang-notify.7
config.status: creating mimedefang.8
config.status: creating mimedefang.pl.8
config.status: creating md-mx-ctrl.8
config.status: creating watch-mimedefang
config.status: creating redhat/mimedefang-init
config.status: creating redhat/mimedefang-sysconfig
config.status: creating config.h

*** Virus scanner detection results:
All virus-scanner detection disabled by --disable-anti-virus

Could not find any recognized virus scanner... do not use
any of the contains_virus functions in your filter.
Found Mail::SpamAssassin.  You may use spam_assassin_* functions

Found HTML::Parser.  You may use append_html_boilerplate()

Could not find Mail::SPF Perl module... do not use
md_authres function in your filter.

Note: SpamAssassin and HTML::Parser are
detected at run-time, so if you install or remove any of those modules, you
do not need to re-run ./configure and make a new mimedefang.pl.

Note:  The MIMEDefang user 'defang' does not seem to
exist.  Please create this user before continuing.
dh_testdir
# Add here commands to compile the package.
/usr/bin/make INSTALL_STRIP_FLAG=''
make[1]: Entering directory '/build/reproducible-path/mimedefang-3.5'
x86_64-linux-gnu-gcc -g -O2 -fPIC -Wall -Wstrict-prototypes -pthread -D_POSIX_PTHREAD_SEMANTICS -DEMBED_PERL -DSAFE_EMBED_PERL -DPERL_PATH=\"/usr/bin/perl\" -DMIMEDEFANG_PL=\"/usr/bin/mimedefang.pl\" -DVERSION=\"3.5\" -DSPOOLDIR=\"/var/spool/MIMEDefang\" -DQDIR=\"/var/spool/MIMEDefang\" -DCONFDIR=\"/etc\"  -c -o mimedefang.o ./mimedefang.c
In file included from ./mimedefang.c:61:
/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[1]: *** [Makefile:108: mimedefang.o] Error 1
make[1]: Leaving directory '/build/reproducible-path/mimedefang-3.5'
make: *** [debian/rules:37: build-stamp] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

#1097400#14
Date:
2025-10-05 12:03:39 UTC
From:
To:
Dear maintainer,

I've prepared an NMU for mimedefang (versioned as 3.6-2.1) and uploaded
it to DELAYED/2. Please feel free to tell me if I should cancel it.

cu
Adrian