paths.h

John Poltorak jp at warpix.org
Sun Nov 23 20:43:39 CET 2003


On Sun, Nov 23, 2003 at 08:28:03PM +0100, Matthias Andree wrote:
> John Poltorak <jp at warpix.org> writes:
> 
> > Making install in src
> > make[1]: Entering directory `U:/unixos2/workdir/bogofilter-0.15.8/src'
> > Making install in .
> > make[2]: Entering directory `U:/unixos2/workdir/bogofilter-0.15.8/src'
> > source='globals.c' object='globals.o' libtool=no \
> > depfile='.deps/globals.Po' tmpdepfile='.deps/globals.TPo' \
> > depmode=gcc u:/bin/sh ../depcomp \
> > gcc -DHAVE_CONFIG_H -I. -I. -I.  -I../trio -I..   -DBOGOFILTER -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 -Wpointer-arith -c `test -f 'globals.c' || echo './'`globals.c
> > In file included from u:\posix2\include\sys/syslog.h:36,
> >                  from u:\posix2\include\syslog.h:6,
> >                  from common.h:24,
> >                  from globals.h:10,
> >                  from globals.c:14:
> > paths.h:37: parse error before `which'
> > paths.h:37: warning: function declaration isn't a prototype
> > make[2]: *** [globals.o] Error 1
> >
> >
> > It looks like the wrong paths.h is getting picked up.
> 
> Indeed, by your syslog.h. Either the default include path is bogus or
> your sys/syslog.h uses #include "paths.h" where it should use #include
> <paths.h>. Can you check your sys/syslog.h?


/*
 * Copyright (c) 1982, 1986, 1988, 1993
 *	The Regents of the University of California.  All rights reserved.
 *
...
...

 *
 *	@(#)syslog.h	8.1 (Berkeley) 6/2/93
 */

#include <paths.h>
#include <stdarg.h>

 
> We can fix this by renaming paths.h to bfpaths.h, which I'd like to
> avoid in case it's something that can be fixed by configuration.

I added some of the fixes provided by David yesterday and got passed this 
error.

Unfortunately I couldn't apply the patchfile as a whole because it was 
produced for the latest CVS snapshot and I am using the latest production 
release of the code.



> 
> -- 
> Matthias Andree
> 
> Encrypt your mail: my GnuPG key ID is 0x052E7D95


-- 
John







More information about the Bogofilter mailing list