Package: netatalk
Severity: normal
Tags: patch

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

if cc -DHAVE_CONFIG_H -I. -I. -I../..     -I../../include -I../../sys 
-I../../include -g -Wall -O2 -I../../sys 
-D_PATH_AFPDDEFVOL=\"/etc/netatalk/AppleVolumes.default\" 
-D_PATH_AFPDSYSVOL=\"/etc/netatalk/AppleVolumes.system\" 
-D_PATH_AFPDPWFILE=\"/etc/netatalk/afppasswd\" 
-D_PATH_AFPDCONF=\"/etc/netatalk/afpd.conf\" 
-D_PATH_AFPDUAMPATH=\"/usr/lib/netatalk/\" -DAPPLCNAME 
-DSERVERTEXT=\"/etc/netatalk/msg/\" -MT desktop.o -MD -MP -MF 
".deps/desktop.Tpo" \
  -c -o desktop.o `test -f 'desktop.c' || echo './'`desktop.c; \
then mv -f ".deps/desktop.Tpo" ".deps/desktop.Po"; \
else rm -f ".deps/desktop.Tpo"; exit 1; \
fi
desktop.c:313: error: static declaration of 'ucreator' follows non-static 
declaration
desktop.h:51: error: previous declaration of 'ucreator' was here
desktop.c: In function 'afp_geticon':
desktop.c:555: warning: label 'geticon_done' defined but not used
make[4]: *** [desktop.o] Error 1
make[4]: Leaving directory `/netatalk-2.0.2/etc/afpd'

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/netatalk-2.0.2/etc/afpd/desktop.h ./etc/afpd/desktop.h
--- ../tmp-orig/netatalk-2.0.2/etc/afpd/desktop.h       2004-03-11 
03:01:59.000000000 +0100
+++ ./etc/afpd/desktop.h        2005-03-19 08:46:51.187494641 +0100
@@ -48,7 +48,6 @@
 extern char    *dtfile __P((const struct vol *, u_char [], char *));
 extern char    *mtoupath __P((const struct vol *, char *, cnid_t, int utf8));
 extern char    *utompath __P((const struct vol *, char *, cnid_t, int utf8));
-extern u_char  ucreator[];
 
 /* FP functions */
 extern int     afp_opendt __P((AFPObj *, char *, int, char *, int *));


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

Reply via email to