Help needed with Gmake on SunOS

David Relson relson at osagesoftware.com
Fri Jan 30 02:47:32 CET 2004


On Thu, 29 Jan 2004 17:38:32 -0800 (PST)
Charles Hewson wrote:

...[snip]...

> 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'
> passthrough.c:142: `rd' undeclared (first use in this function)
> passthrough.c:168: warning: implicit declaration of function
> `strncasecmp' passthrough.c:170: warning: implicit declaration of
> function `fprintf' passthrough.c:172: warning: implicit declaration of
> function `fputc' passthrough.c:173: warning: implicit declaration of
> function `fwrite' passthrough.c: In function `write_body':
> passthrough.c:191: `ssize_t' undeclared (first use in this function)
> passthrough.c:191: parse error before `rd'
> passthrough.c:201: `rd' undeclared (first use in this function)
> passthrough.c:210: warning: implicit declaration of function `fclose'
> passthrough.c: In function `write_message':
> passthrough.c:244: warning: implicit declaration of function `rewind'
> passthrough.c: In function `write_log_message':
> passthrough.c:282: warning: implicit declaration of function `syslog'
> passthrough.c:297: warning: implicit declaration of function
> `closelog' passthrough.c: In function `output_setup':
> passthrough.c:307: warning: implicit declaration of function
> `strerror' passthrough.c:307: warning: format argument is not a
> pointer (arg 4)

Greetings Charles,

It sounds like your compiler is, somehow, messing up its processing of
#include directives.  As a test, the patch below should define fprintf,
fputc, fwrite, and fclose.  Try it and let us know if it does that much.

Thanks.

David


*** passthrough.c	19 Jan 2004 18:21:41 -0000	1.21
--- passthrough.c	30 Jan 2004 01:43:41 -0000
***************
*** 11,16 ****
--- 11,17 ----
  
  #include <ctype.h>
  #include <errno.h>
+ #include <stdio.h>
  #include <stdlib.h>
  #include <syslog.h>
  




More information about the Bogofilter mailing list