Compile problem - libdb

David Relson relson at osagesoftware.com
Mon Jan 19 01:23:02 CET 2004


On Mon, 19 Jan 2004 00:52:27 +0100
Henri van Riel <bogo at vanriel.xs4all.nl> wrote:


....[snip]...
> DR> It's a very minor problem.  In contrib/bogogrep.c, change "#ifdef
> DR> __DGUX__" to "#ifndef MAP_FAILED"
> 
> I solved it by removing the #ifndef and #endif all together ;) It did
> give me a warning about comparing a pointer to an int on line 80
> though but it all works! Great!

Did the #ifndef not work?  or were you just using the simple solution?

On my Linux box file /usr/include/sys/mman.h has "#define MAP_FAILED
((void *)-1)".  Use that value in bogogrep.c and the warning should go
away!

> >> Thanks for helping me put this together!
> 
> DR> You're welcome.
> 
> Oh, how do I wish I had a few days to implement this completely... But
> it's monday already so it'll be only an hour here or there for the
> next week. A well... :)
> 
> See you around! Good luck developing Bogofilter, we're going to need
> it!

Going!?!?!  It's already darn near necessary here in Michigan.  Over the
past month, my daily average seems to have gone from 300 to 400 spam per
day.




More information about the Bogofilter mailing list