Package: linux-ftpd Severity: normal Tags: patch When building 'linux-ftpd' on amd64 with gcc-4.0, I get the following error:
gcc -g -D_FILE_OFFSET_BITS=64 -O2 -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -DUSE_PAM -I../support -DHASSETPROCTITLE ftpcmd.c -c ftpcmd.y:109: error: array type has incomplete element type ftpcmd.y:110: error: array type has incomplete element type make[2]: *** [ftpcmd.o] Error 1 make[2]: Leaving directory `/linux-ftpd-0.17/ftpd' With the attached patch 'linux-ftpd' can be compiled on amd64 using gcc-4.0. Regards Andreas Jochens diff -urN ../tmp-orig/linux-ftpd-0.17/ftpd/ftpcmd.y ./ftpd/ftpcmd.y --- ../tmp-orig/linux-ftpd-0.17/ftpd/ftpcmd.y 2005-03-18 15:23:56.693393002 +0100 +++ ./ftpd/ftpcmd.y 2005-03-18 15:23:23.564755318 +0100 @@ -101,7 +101,14 @@ char cbuf[512]; char *fromname; -struct tab; +struct tab { + const char *name; + short token; + short state; + short implemented; /* 1 if command is implemented */ + const char *help; +}; + static int yylex __P((void)); static void sizecmd __P((char *)); static void help __P((struct tab *, char *)); @@ -834,14 +841,6 @@ #define SITECMD 7 /* SITE command */ #define NSTR 8 /* Number followed by a string */ -struct tab { - const char *name; - short token; - short state; - short implemented; /* 1 if command is implemented */ - const char *help; -}; - struct tab cmdtab[] = { /* In order defined in RFC 765 */ { "USER", USER, STR1, 1, "<sp> username" }, { "PASS", PASS, ZSTR1, 1, "<sp> password" }, -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]