[exim] Compiling Exim 4.94 with SPF on Ubuntu

Góra strony
Delete this message
Reply to this message
Autor: Chris Bunch
Data:  
Dla: exim-users
Temat: [exim] Compiling Exim 4.94 with SPF on Ubuntu
I am attempting to add SPF to an Ubuntu 18.04 Exim installation (compiled from source, not the Ubuntu package), but Exim compilation fails:

    cc -DMACRO_PREDEF macro_predef.c
    In file included from exim.h:494:0,
                 from macro_predef.c:12:
    spf.h:17:10: fatal error: spf2/spf.h: No such file or directory
     #include <spf2/spf.h>
          ^~~~~~~~~~~~
    compilation terminated.


I have this in Local/Makefile:

    SUPPORT_SPF=yes 
    CFLAGS += -I/usr/include 
    LDFLAGS += -l/usr/lib/spf2 


Ubuntu has libspf2 installed (in /usr/lib) but this does not include spf.h

I have tried compiling libspf2-1.2.10 from source but this fails with several errors, finally:

    Makefile:228: recipe for target 'all' failed
    make: *** [all] Error 2


(It looks like libspf2 is now quite old (2010?) and links to their support forums are dead.)

There is spf.h at exim-4.94/build-Linux-x86_64/spf.h. Can I use this and if so where should it go?

Chris