[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#300283: masqdialer: FTBFS (amd64/gcc-4.0): array type has incomplete element type



Package: masqdialer
Severity: normal
Tags: patch

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

make[3]: Entering directory `/masqdialer-0.5.5/mserver'
gcc -DHAVE_CONFIG_H -I. -I. -I..     -O2 -Wall   -c mserver.c
In file included from mserver.c:34:
mserver.h:155: error: array type has incomplete element type
mserver.h:155: error: array type has incomplete element type

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

The patch includes the patch from #287634.

Regards
Andreas Jochens

diff -urN ../tmp-orig/masqdialer-0.5.5/mserver/mserver.h ./mserver/mserver.h
--- ../tmp-orig/masqdialer-0.5.5/mserver/mserver.h	2005-03-18 19:20:32.054749075 +0100
+++ ./mserver/mserver.h	2005-03-18 19:20:21.105820903 +0100
@@ -152,7 +152,6 @@
 /* Parsing functions */
 bool parse(const char *);
 bool parse_init(const char *);
-int parse_listenon(char *, char [MAXINTERFACES][], char [MAXINTERFACES][]);
 
 /* Utility functions */
 int util_system (const char *);
diff -urN ../tmp-orig/masqdialer-0.5.5/authgen/authgen.c ./authgen/authgen.c
--- ../tmp-orig/masqdialer-0.5.5/authgen/authgen.c	2005-03-18 19:20:32.046750588 +0100
+++ ./authgen/authgen.c	2005-03-18 19:19:31.952120830 +0100
@@ -75,7 +75,7 @@
 	salt[1] = 'a';
 	salt[2] = '\0';
 
-	(char *) cryptpass = (char *) crypt(passwd, salt);
+	cryptpass = (char *) crypt(passwd, salt);
 
 	chomp (username);
 	chomp (cryptpass);



Reply to: