latest Makefile breaks compilation of security/clamav if base is lacking sendmail
Yasuhiro KIMURA
yasu at utahime.org
Sun Jul 5 22:25:37 UTC 2020
Hello Michael,
Thank you for bug report and patch. I confirmed your patch fixes the
problem with 12.1-RELEASE.
From: Michael Grimm <trashcan at ellael.org>
Subject: latest Makefile breaks compilation of security/clamav if base is lacking sendmail
Date: Sun, 5 Jul 2020 15:37:13 +0200
> I managed to get compilation working with the attached, surely crude and dirty hack (due to my lack of knowledge regarding ports Makefiles), by adding 'MILTER_LDFLAGS= -L${LOCALBASE}/lib' and 'MILTER_CFLAGS= -I${LOCALBASE}/include' in order to help finding relevant files from port mail/libmilter.
>
> What worries my somehow, although clamav is working as usual, is the following part in poudrier's log:
>
> checking for mi_stop in -lmilter… yes
> checking libmilter/mfapi.h usability… yes
> checking libmilter/mfapi.h presence… no
> configure: WARNING: libmilter/mfapi.h: accepted by the compiler, rejected by the preprocessor!
> configure: WARNING: libmilter/mfapi.h: proceeding with the compiler's result
> checking for libmilter/mfapi.h... yes
>
>
> Here my question: Is this the right way to fix this issue?
I'm not sure why configure script produces such warning messages. But
mail/libmilter surely installs ${PREFIX}/lib/libmilter/mfapi.h and
configure script correctly detects it anyway. Therefore I don't think
this warning message is of much concern.
And I submitted a bit modified patch as following bug report.
security/clamav: Fix build after r541115 when base system is build
with 'WITHOUT_SENDMAIL=yes'
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=247792
Best Regards.
---
Yasuhiro KIMURA
More information about the freebsd-ports
mailing list