Re: [exim] exim 4.69 + dkim build error

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Russell King
Dátum:  
Címzett: exim-users, Tom Kistner
Tárgy: Re: [exim] exim 4.69 + dkim build error
On Wed, Apr 09, 2008 at 09:34:13AM +0100, Russell King wrote:
> While trying to build exim 4.69 with libdkim (1.0.15) support, I'm
> getting the following error:
>
> gcc -o eximon.bin
> util-spool_in.o: In function `spool_read_header':
> /usr/src/redhat/BUILD/exim-4.69/build-Linux-armv5tel/spool_in.c:752: undefined reference to `dkim_do_verify'
>
> (libdkim is installed in /usr/lib, dkim.h in /usr/include, and I added
> EXPERIMENTAL_DKIM=yes
> LDFLAGS += -ldkim -lssl -lstdc++
> to Local/Makefile.)
>
> It seems dkim_do_verify is only declared in globals.c, but that file isn't
> build/linked for eximon.
>
> Are patches required for exim 4.69 to support dkim?


Having given up waiting for a response, below is a patch which rectifies
this issue:

--- exim-4.69/src/spool_in.c.dkim    2007-09-28 13:21:57.000000000 +0100
+++ exim-4.69/src/spool_in.c    2008-04-11 22:25:10.000000000 +0100
@@ -282,9 +282,11 @@
 dk_do_verify = 0;
 #endif


+#ifndef COMPILE_UTILITY
#ifdef EXPERIMENTAL_DKIM
dkim_do_verify = 0;
#endif
+#endif

#ifdef SUPPORT_TLS
tls_certificate_verified = FALSE;


--
Russell King