Package: linux-ftpd-ssl
Severity: normal
Tags: patch
When building 'linux-ftpd-ssl' 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 -DUSE_SSL -g
-DHASSETPROCTITLE ftpcmd.c -c
ftpcmd.y:134: error: array type has incomplete element type
ftpcmd.y:135: error: array type has incomplete element type
ftpcmd.y: In function 'ftpd_getline':
ftpcmd.y:1004: warning: implicit declaration of function 'ssl_getc'
ftpcmd.y:1004: warning: nested extern declaration of 'ssl_getc'
make[2]: *** [ftpcmd.o] Error 1
make[2]: Leaving directory `/linux-ftpd-ssl-0.17.18+0.3/ftpd'
With the attached patch 'linux-ftpd-ssl' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp-orig/linux-ftpd-ssl-0.17.18+0.3/ftpd/ftpcmd.y ./ftpd/ftpcmd.y
--- ../tmp-orig/linux-ftpd-ssl-0.17.18+0.3/ftpd/ftpcmd.y 2005-03-18
15:31:05.901931402 +0100
+++ ./ftpd/ftpcmd.y 2005-03-18 15:31:03.742346458 +0100
@@ -126,7 +126,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 *));
@@ -893,14 +900,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 */
{ "AUTH", AUTH, STR1, 1, "<sp> auth_type" },
{ "USER", USER, STR1, 1, "<sp> username" },
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]