query_cache compile error

From: Eray Aslan <eray.aslan_at_caf.com.tr>
Date: Sat, 3 Mar 2012 17:56:18 +0200

configure --enable-query_cache && make results in:

libtool: compile: i686-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I.
-I.. -DCONFIG_BASE=\"/etc\" -I/usr/include/db4.8 -I-I/usr/include/db4.8
-O2 -march=i686 -pipe -c dkim-policy.c -fPIC -DPIC -o
/bin/sh ../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc
-std=gnu99 -DHAVE_CONFIG_H -I. -I.. -DCONFIG_BASE=\"/etc\"
-I/usr/include/db4.8 -I-I/usr/include/db4.8 -O2 -march=i686 -pipe -c
-o libopendkim_la-dkim-report.lo `test -f 'dkim-report.c' || echo
libtool: compile: i686-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I.
-I.. -DCONFIG_BASE=\"/etc\" -I/usr/include/db4.8 -I-I/usr/include/db4.8
-O2 -march=i686 -pipe -c dkim-report.c -fPIC -DPIC -o
dkim-report.c: In function 'dkim_repinfo':
dkim-report.c:205:3: error: 'ttl' undeclared (first use in this
dkim-report.c:205:3: note: each undeclared identifier is reported only
once for each function it appears in
make[3]: *** [libopendkim_la-dkim-report.lo] Error 1

The following patch seems to work for me:

--- libopendkim/dkim-report.c 2012-02-29 23:52:30.000000000 +0000
+++ libopendkim/dkim-report.c 2012-03-03 15:26:47.000000000 +0000
_at_@ -83,6 +83,9 @@
         HEADER hdr;
         u_char ansbuf[MAXPACKET];
         u_char query[DKIM_MAXHOSTNAMELEN + 1];
+ uint32_t ttl;
          assert(dkim != NULL);
         assert(sig != NULL);

Eray Aslan
Received on Sat Mar 03 2012 - 15:56:33 PST

This archive was generated by hypermail 2.3.0 : Mon Oct 29 2012 - 23:20:38 PST