paths.h

David Relson relson at osagesoftware.com
Sun Nov 23 20:44:03 CET 2003


On Sun, 23 Nov 2003 20:28:03 +0100
Matthias Andree <matthias.andree at gmx.de> 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?
> 
> 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.

Matthias,

I found a workaround that seems to work.  Leave syslog.h out of common.h
and add it to the .c files that need it.  As there are only 3 files that
really need it, the change is minor.


David




More information about the Bogofilter mailing list