Help needed with Gmake on SunOS

Charles Hewson cahewson at eskimo.com
Fri Jan 30 02:38:32 CET 2004


Neither patch was affective;

[cahewson] gmake
Making all in trio
gmake[1]: Entering directory
`/userspace/u/c/cahewson/bogofilter-0.16.4/trio'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory
`/userspace/u/c/cahewson/bogofilter-0.16.4/trio'
Making all in src
gmake[1]: Entering directory
`/userspace/u/c/cahewson/bogofilter-0.16.4/src'
/bin/ksh ./version.sh .. >"version.c.new" && mv -f "version.c.new"
"version.c" \
    || { rm -f "version.c" ; false ; }
gmake  all-recursive
gmake[2]: Entering directory
`/userspace/u/c/cahewson/bogofilter-0.16.4/src'
Making all in .
gmake[3]: Entering directory
`/userspace/u/c/cahewson/bogofilter-0.16.4/src'
echo "const char *const system_config_file =
\"/u/c/cahewson/bogofilter/etc/bogofilter.cf\";" >"directories.c" \
    || rm -f "directories.c"
source='directories.c' object='directories.o' libtool=no \
depfile='.deps/directories.Po' tmpdepfile='.deps/directories.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 directories.c
source='version.c' object='version.o' libtool=no \
depfile='.deps/version.Po' tmpdepfile='.deps/version.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 version.c
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'
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)
gmake[3]: *** [passthrough.o] Error 1
gmake[3]: Leaving directory
`/userspace/u/c/cahewson/bogofilter-0.16.4/src'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory
`/userspace/u/c/cahewson/bogofilter-0.16.4/src'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory
`/userspace/u/c/cahewson/bogofilter-0.16.4/src'
gmake: *** [all-recursive] Error 1

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>...end console snip
On Thu, 29 Jan 2004, Matthias
Andree wrote:

> On Thu, 29 Jan 2004, Matthias Andree wrote:
>
> > 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
> > ***************
>
> I have no idea as to the nature of the problem, I offer an alternative
> patch just in case the previous either doesn't help or doesn't take you
> much farther. It's just poking into the dark. Let me know if this works.
>
> BTW; if you've never used patch, save the body of this mail to a file in
> /tmp, say /tmp/bogo0164.2.patch, then cd to your bogofilter-0.16.4
> directory, type: patch </tmp/bogo0164.2.patch. If it complains about not
> finding files, try "patch -p0 </tmp/bogo0164.2.patch" instead. After
> that, please see how far "gmake" (or Gmake) takes you.
>
> *** src/common.h.orig	2003-11-23 16:22:09.000000000 +0100
> --- src/common.h	2004-01-29 00:18:37.000000000 +0100
> ***************
> *** 7,14 ****
>
>   ******************************************************************************/
>
> ! #ifndef COMMON_H
> ! #define COMMON_H
>
>   #include "config.h"
>
> --- 7,14 ----
>
>   ******************************************************************************/
>
> ! #ifndef BF_COMMON_H
> ! #define BF_COMMON_H
>
>   #include "config.h"
>
>
> ---------------------------------------------------------------------
> FAQ: http://bogofilter.sourceforge.net/bogofilter-faq.html
> To unsubscribe, e-mail: bogofilter-unsubscribe at aotto.com
> For summary digest subscription: bogofilter-digest-subscribe at aotto.com
> For more commands, e-mail: bogofilter-help at aotto.com
>





More information about the Bogofilter mailing list