Recently, trying to build milter-greylist(and -devel) on FreeBSD 9.1
with libspf2 has resulted in:
In file included from /usr/local/include/spf2/spf_server.h:22,
from /usr/local/include/spf2/spf.h:27,
from spf.c:311:
/usr/local/include/spf2/spf_dns.h:85: error: conflicting types for
'ns_type'
/usr/include/arpa/nameser.h:301: error: previous declaration of
'ns_type' was here *** [spf.o] Error code 1
Digging a bit deeper I noticed that libSPF2's spf_dns.h had:
/* XXX This should use a more sensible define. */
#if !defined( HAVE_NS_TYPE )
Adding -DHAVE_NS_TYPE to milter-greylist's main Makefile or adding:
#ifdef __FreeBSD__
#define HAVE_NS_TYPE
#endif
to milter-greylist's spf.c around line 62 resolves the problem. As far
as I know this is FreeBSD + libSPF2 problem only (it likely effects
FreeBSD as far back as 7.x).
Cheers,
JohnMessage
milter-greylist + libSPF2 compilation on FreeBSD.. and a fix
2013-06-28 by John Wood
Attachments
- No local attachments were found for this message.