Help needed with Gmake on SunOS

Matthias Andree matthias.andree at gmx.de
Thu Jan 29 00:11:22 CET 2004


On Wed, 28 Jan 2004, Charles Hewson wrote:

> 	I get the folowing fatal error on first install:
> 
> [cahewson] gmake
...
> gmake[3]: Entering directory
> `/userspace/u/c/cahewson/bogofilter-0.16.4/src'
> source='passthrough.c' object='passthrough.o' libtool=no \
> depfile='.deps/passthrough.Po' tmpdepfile='.deps/passthrough.TPo' \
> depmode=gcc /bin/ksh ../depcomp \
> gcc -DHAVE_CONFIG_H -I. -I. -I.  -I../trio -I..
> -I/u/c/cahewson/BerkeleyDB/include -DBOGOFILTER  -g -O2  -Wpointer-arith
> -ggdb -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wshadow
> -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings
> -Waggregate-return -Wmissing-declarations -Wnested-externs -fno-common
> -Wchar-subscripts -Wcomment -Wimplicit -Wreturn-type -Wformat -Wformat=2
> -c passthrough.c
> passthrough.c: In function `read_seek':
> passthrough.c:120: warning: implicit declaration of function `fflush'
> passthrough.c: In function `write_header':
> passthrough.c:131: `ssize_t' undeclared (first use in this function)
> passthrough.c:131: (Each undeclared identifier is reported only once
> passthrough.c:131: for each function it appears in.)
> passthrough.c:131: parse error before `rd'

This doesn't look like a gmake problem, but as though passthrough.c
hadn't included stdio.h. There is only one way how this can happen: that
COMMON_H is defined.

Can you gzip your config.log and src/config.h files and send them to me
off-list? They may have the answer although configuration went fine for
you.

As a quick band-aid, does this patch help? (David, this is context diff;
diff -c; because few SunOS patch(1) commands understand unified diff.)

*** src/passthrough.c.orig	2004-01-29 00:10:11.000000000 +0100
--- src/passthrough.c	2004-01-29 00:10:17.000000000 +0100
***************
*** 12,17 ****
--- 12,18 ----
  #include <ctype.h>
  #include <errno.h>
  #include <stdlib.h>
+ #include <stdio.h>
  #include <syslog.h>
  
  #include "passthrough.h"

-- 
Matthias Andree

Encrypt your mail: my GnuPG key ID is 0x052E7D95




More information about the Bogofilter mailing list