Package: cnews Severity: normal Tags: patch When building 'cnews' on amd64 with gcc-4.0, I get the following error:
cc -O2 -DFASTSTRCHR -I../include -c -o trbatch.o trbatch.c trbatch.c: In function 'hfinstall': trbatch.c:75: warning: incompatible implicit declaration of built-in function 'memset' trbatch.c: At top level: trbatch.c:165: error: static declaration of 'bfrclose' follows non-static declaration ../include/trbatch.h:30: error: previous declaration of 'bfrclose' was here trbatch.c:201: error: static declaration of 'bfrealclose' follows non-static declaration ../include/trbatch.h:27: error: previous declaration of 'bfrealclose' was here trbatch.c:218: error: static declaration of 'bfisopen' follows non-static declaration ../include/trbatch.h:26: error: previous declaration of 'bfisopen' was here make[2]: *** [trbatch.o] Error 1 make[2]: Leaving directory `/cnews-cr.g7/explode' With the attached patch 'cnews' can be compiled on amd64 using gcc-4.0. Regards Andreas Jochens diff -urN ../tmp-orig/cnews-cr.g7/explode/trbatch.c ./explode/trbatch.c --- ../tmp-orig/cnews-cr.g7/explode/trbatch.c 1994-11-30 23:09:10.000000000 +0100 +++ ./explode/trbatch.c 2005-02-02 16:40:19.712844292 +0100 @@ -23,6 +23,9 @@ static HASHTABLE *nmbftbl; /* name -> batchfile mapping */ +static struct batchfile *bfisopen(char *name), *bfincache(char *name); +static statust bfrealclose(), bfrclose(); + /* * open "name" for appending. * @@ -86,7 +89,7 @@ /* * returns a batchfile, never NULL, corresponding to name. */ -struct batchfile * +static struct batchfile * bfincache(name) char *name; { diff -urN ../tmp-orig/cnews-cr.g7/include/trbatch.h ./include/trbatch.h --- ../tmp-orig/cnews-cr.g7/include/trbatch.h 1993-12-17 00:17:03.000000000 +0100 +++ ./include/trbatch.h 2005-02-02 16:40:51.403721461 +0100 @@ -23,12 +23,12 @@ }; /* imports from trbatch.c */ -extern struct batchfile *bfopen(), *bfisopen(); -extern statust bffkclose(), bfrealclose(); +extern struct batchfile *bfopen(); +extern statust bffkclose(); extern int bfflush(); /* imports from trbatcomm.c */ -extern statust bfclose(), bfrclose(); -extern struct batchfile *bfincache(), *fakebf(); +extern statust bfclose(); +extern struct batchfile *fakebf(); extern struct batchfile batchfile[]; /* try to keep open always */ #define lastbf &batchfile[NOPENBFS-1] diff -urN ../tmp-orig/cnews-cr.g7/relay/trbatch.c ./relay/trbatch.c --- ../tmp-orig/cnews-cr.g7/relay/trbatch.c 1993-01-15 05:27:11.000000000 +0100 +++ ./relay/trbatch.c 2005-02-02 16:38:24.289144599 +0100 @@ -14,6 +14,8 @@ #include "msgs.h" #include "trbatch.h" +static struct batchfile *bfincache(char *name, int ord); + /* tunable parameters */ #ifndef MASTERDIR #define MASTERDIR artfile("out.master") -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]