Bug#301420: newspost: FTBFS (amd64/gcc-4.0): conflicting types for '_nntp_post'
Package: newspost
Severity: normal
Tags: patch
When building 'newspost' on amd64 with gcc-4.0,
I get the following error:
gcc -O2 -Wall -c -o nntp.o nntp.c
nntp.c: In function 'nntp_post':
nntp.c:81: warning: implicit declaration of function '_nntp_post'
nntp.c: At top level:
nntp.c:109: error: conflicting types for '_nntp_post'
nntp.c:109: note: an argument type that has a default promotion can't match an empty parameter name list declaration
nntp.c:81: error: previous implicit declaration of '_nntp_post' was here
make[3]: *** [nntp.o] Error 1
make[3]: Leaving directory `/newspost-2.1.1/base'
With the attached patch 'newspost' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp-orig/newspost-2.1.1/base/nntp.c ./base/nntp.c
--- ../tmp-orig/newspost-2.1.1/base/nntp.c 2005-03-25 20:41:28.638247703 +0100
+++ ./base/nntp.c 2005-03-25 20:41:21.836522991 +0100
@@ -26,6 +26,10 @@
*** Public Routines
**/
+int _nntp_post(const char *subject, newspost_data *data,
+ const char *buffer, long length,
+ boolean no_ui_updates);
+
boolean nntp_logon(newspost_data *data) {
char buffer[STRING_BUFSIZE];
Reply to: