Fix gcc15 stricter check for headers#281
Fix gcc15 stricter check for headers#281mikelolasagasti wants to merge 1 commit intotrusteddomainproject:developfrom
Conversation
Signed-off-by: Mikel Olasagasti Uranga <mikel@olasagasti.info>
|
Heyo, what platform did you test this on? I'm not sure how it would play on some of the other "special" platforms. |
|
Patch was required for Fedora 42, but it's been applied also to F41, F40, EPEL10 & EPEL9. The best solution would be to rely on pkgconfig if libspf2 would provide it, but it's not the case. |
|
With https://github.com/shevek/libspf2/tree/d14abff4b544cfc53a8b5ef54cbc2353866b5081 (master at 2025-05-06), doing So the difference between without this change and with it, is only difference of the argment of --with-spf2-include we should pass on doing configure of OpenDMARC. For example, in the example above we shoud pass I don't think this is related to gcc15. |
My bad, it is incorrect. It affects the result of the configure: in the formar case, it adds '-I /foo/include' to CFLAGS in Makefile, and in the later case, it adds '-I /foo/include/spf2'. More over with this patch, with './configure --with-spf -with-spf2-include=/foo/include --with-spf2-lib=/foo/lib' brings build error: (I'm using FreeBSD 14.2 for confirmation, however, I believe this is generic problem on C compiler driver which support -I option) |
|
This patch is not correct, #287 is the correct fix. |
This patch has been required since Fedora-42 adopted GCC15.