Package: mailutils
Severity: normal
Tags: patch

When building 'mailutils' on amd64 with gcc-4.0,
I get the following error:

if cc -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../include -I../mailbox 
-I../include/mailutils/gnu    -I/usr/include   -DSYSCONFDIR=\"/etc\"  -g -Wall 
-O2 -MT fetch.o -MD -MP -MF ".deps/fetch.Tpo" -c -o fetch.o fetch.c; \
then mv -f ".deps/fetch.Tpo" ".deps/fetch.Po"; else rm -f ".deps/fetch.Tpo"; 
exit 1; fi
fetch.c:66: error: array type has incomplete element type
make[4]: *** [fetch.o] Error 1
make[4]: Leaving directory `/mailutils-0.6.1/imap4d'

With the attached patch 'mailutils' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/mailutils-0.6.1/imap4d/fetch.c ./imap4d/fetch.c
--- ../tmp-orig/mailutils-0.6.1/imap4d/fetch.c  2004-06-02 09:30:52.000000000 
+0200
+++ ./imap4d/fetch.c    2005-03-22 12:38:54.000000000 +0100
@@ -63,8 +63,6 @@
 static int fetch_header_fields_not __P ((message_t, char **, unsigned long, 
unsigned long));
 static int fetch_send_address      __P ((const char *));
 
-static struct fetch_command* fetch_getcommand __P ((char *, struct 
fetch_command[]));
-
 struct fetch_command
 {
   const char *name;
@@ -101,6 +99,8 @@
   { NULL, 0, 0}
 };
 
+static struct fetch_command* fetch_getcommand __P ((char *, struct 
fetch_command[]));
+
 /* Go through the fetch array sub command and returns the the structure.  */
 
 static struct fetch_command *


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to