Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Thread

4.1.1 and 4.1.2 compile problem w/ geoip

4.1.1 and 4.1.2 compile problem w/ geoip

2008-07-31 by cah4i

I'm currently using 4.0 with geoip and spf and am having problems
compiling 4.1.1 and 4.1.2.  I get the below:

gcc -g -O2 -Wall -Iyes/include -Iyes/include -DUSE_GEOIP -Iyes/include
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -I. -I.   -c -o geoip.o geoip.c
In file included from geoip.h:32,
                 from geoip.c:54:
acl.h:180: error: field `spf_status' has incomplete type
make: *** [geoip.o] Error 1

I'm using GeoIP-1.4.4 and libsfp2 1.2.5.  OS is Centos 4.6 and kernel
is 2.6.9-67.0.22.EL.  My configure command is ./configure
--with-libmilter --with-libGeoIP --with-libspf2.  I am able to compile
successfully if I do not include geoip support.


Any insights or suggestions for fixing this would be greatly
appreciated.  Thanks!

Re: [milter-greylist] 4.1.1 and 4.1.2 compile problem w/ geoip

2008-07-31 by manu@netbsd.org

cah4i <cah4i@...> wrote:

> gcc -g -O2 -Wall -Iyes/include -Iyes/include -DUSE_GEOIP -Iyes/include
> -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -I. -I.   -c -o geoip.o geoip.c
> In file included from geoip.h:32,
>                  from geoip.c:54:
> acl.h:180: error: field `spf_status' has incomplete type

Does that patch help?
--- geoip.h.orig        2008-07-31 21:39:37.000000000 +0200
+++ geoip.h     2008-07-31 21:38:36.000000000 +0200
@@ -30,4 +30,5 @@
  */
 
+#include "spf.h"
 #include "acl.h"
 



-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu@...

Re: [milter-greylist] 4.1.1 and 4.1.2 compile problem w/ geoip

2008-07-31 by Chris Hanes

Yep, that fixed me.  Thanks so much!
Show quoted textHide quoted text
----- Original Message ----
From: "manu@..." <manu@...>
To: milter-greylist@yahoogroups.com
Sent: Thursday, July 31, 2008 3:40:23 PM
Subject: Re: [milter-greylist] 4.1.1 and 4.1.2 compile problem w/ geoip


cah4i <cah4i@yahoo. com> wrote:

> gcc -g -O2 -Wall -Iyes/include -Iyes/include -DUSE_GEOIP -Iyes/include
> -D_XOPEN_SOURCE= 500 -D_BSD_SOURCE -I. -I.   -c -o geoip.o geoip.c
> In file included from geoip.h:32,
>                  from geoip.c:54:
> acl.h:180: error: field `spf_status' has incomplete type

Does that patch help?
--- geoip.h.orig        2008-07-31 21:39:37.000000000 +0200
+++ geoip.h     2008-07-31 21:38:36.000000000 +0200
@@ -30,4 +30,5 @@
*/

+#include "spf.h"
#include "acl.h"


-- 
Emmanuel Dreyfus
http://hcpnet. free.fr/pubz
manu@netbsd. org

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.