Discussion:
GCC 15 and sendmail and milter?
Add Reply
AMM
2025-02-10 10:51:51 UTC
Reply
Permalink
Hello

Happy to see new release 8.18.2 coming after more than a year!

Also GCC 15 is coming too.

Just wanted to point out that as per bug link below, currently sendmail
milter related packages do not compile with GCC 15.

https://bugzilla.redhat.com/show_bug.cgi?id=2336394

I would request if this bug can be fixed in 8.18.2.(-std=gnu17 is a
workaround to force GCC 14 behaviour)

Also as per bug report - it is not clear if API/ABI will have any
issues. i.e. if may affect all milter packages?

Clarification regarding this would be appreciated.

Thank you,

AMM
Claus Aßmann
2025-02-11 11:10:38 UTC
Reply
Permalink
Post by AMM
Just wanted to point out that as per bug link below, currently sendmail
milter related packages do not compile with GCC 15.
Is SM_CONF_STDBOOL_H defined for the platform?
--
Note: please read the netiquette before posting. I will almost never
reply to top-postings which include a full copy of the previous
article(s) at the end because it's annoying, shows that the poster
is too lazy to trim his article, and it's wasting the time of all readers.
AMM
2025-02-11 13:48:09 UTC
Reply
Permalink
Post by Claus Aßmann
Post by AMM
Just wanted to point out that as per bug link below, currently sendmail
milter related packages do not compile with GCC 15.
Is SM_CONF_STDBOOL_H defined for the platform?
From .spec or redhat.config.m4 file, I dont think so.
https://src.fedoraproject.org/rpms/sendmail/blob/rawhide/f/sendmail.spec

But defining SM_CONF_STDBOOL_H will break backward compatibility with
GCC 14. As it does not have stdbool.h

I am not an expert but may be something like this may work inside mfapi.h?

#ifdef __GNUC__
# include <features.h>
# if __GNUC_PREREQ(15,0)
# define SM_CONF_STDBOOL_H 1
# endif
#endif

// line 92 of mfapi.h
#if SM_CONF_STDBOOL_H
...

Regards

AMM.
Claus Aßmann
2025-02-11 20:00:36 UTC
Reply
Permalink
Post by AMM
I am not an expert but may be something like this may work inside mfapi.h?
See include/sm/config.h, that's where SM_CONF_STDBOOL_H is handled.
Maybe you can write and test a patch (with GCC 15 and older versions)?
Loading...