problem building 0.15.7

David Relson relson at osagesoftware.com
Mon Dec 8 21:52:08 CET 2003


Dave,

The problem seems familiar, though I'm not certain.  I wish I knew the
answer, but I don't.  The best thing at this point is for you to
localize the problem a bit more.

On Mon, 8 Dec 2003 15:07:40 -0500 (EST)
Dave Lovelace <dave at firstcomp.biz> wrote:

> OK, having been dealing with other things, I thought I'd finally get
> around to updating bogofilter.  We're still running 0.11.1.8.  I
> downloaded the stable release, which appears to be 0.15.7.  I ran
> configure, which produced lots of output but no errors.  Now I run
> make, & here is what I get:

...[snip]...

>         gcc -DHAVE_CONFIG_H -I. -I. -I.  -I../trio -I..  
>         -I/usr/local/BerkeleyDB.4.1/include  -DBOGOFILTER -g -O2 
>         -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wshadow
>         -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings
>         -Waggregate-return -Wmissing-declarations -Wnested-externs
>         -ggdb -fno-common -Wchar-subscripts -Wcomment -Wimplicit
>         -Wreturn-type -c `test -f 'globals.c' || echo './'`globals.c

I've trimmed down the compile command a bit:

gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/BerkeleyDB.4.1/include 
-DBOGOFILTER -g globals.c

try it and see if you get the same result, which I expect you will. 
Then start hacking and slicing at globals.c and globals.h to reduce them
to something small - say 100 lines total.  At some point, when you
remove a declaration or a #include statement, the error message will
disappear.   Let us know what happens then and we can work on what's
really wrong.  Until then, you'll need to do a bit of work.

By the way, what happens if you edit or remove the typedef with line 92,
i.e.:

> ----snip----snip----snip----snip----snip----snip----snip----snip----s
> nip---- 88:
> 89:typedef enum ex_e { EX_SPAM	= RC_SPAM,
> 90:		    EX_HAM	= RC_HAM,
> 91:		    EX_UNSURE	= RC_UNSURE,
> 92:		    EX_OK	= 0,
> 93:		    EX_ERROR	= 3 } ex_t;
> 94:
> ----snip----snip----snip----snip----snip----snip----snip----snip----s
> nip----
> 
> I don't know what in all this is getting #define'd as 020.
> 

Good luck!

David




More information about the Bogofilter mailing list