Package: xfsdump Severity: normal Tags: patch When building 'xfsdump' on amd64 with gcc-4.0, I get the following error:
gcc -O1 -g -DNDEBUG -funsigned-char -Wall -I../include -DVERSION=\"2.2.23\" -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"xfsdump\" -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DXFS_BIG_FILES=1 -DXFS_BIG_FILESYSTEMS=1 -c -o xfs_fsr.o xfs_fsr.c xfs_fsr.c:109: error: static declaration of 'progname' follows non-static declaration /usr/include/xfs/libxfs.h:125: error: previous declaration of 'progname' was here xfs_fsr.c: In function 'xfs_bulkstat_single': xfs_fsr.c:168: warning: assignment from incompatible pointer type xfs_fsr.c: In function 'xfs_bulkstat': xfs_fsr.c:181: warning: assignment from incompatible pointer type make[2]: *** [xfs_fsr.o] Error 1 make[1]: *** [default] Error 2 make[1]: Leaving directory `/xfsdump-2.2.23' make: *** [built] Error 2 With the attached patch 'xfsdump' can be compiled on amd64 using gcc-4.0. Regards Andreas Jochens diff -urN ../tmp-orig/xfsdump-2.2.23/fsr/xfs_fsr.c ./fsr/xfs_fsr.c --- ../tmp-orig/xfsdump-2.2.23/fsr/xfs_fsr.c 2004-07-28 22:21:31.000000000 +0200 +++ ./fsr/xfs_fsr.c 2005-03-07 13:00:24.569803188 +0100 @@ -106,7 +106,7 @@ static time_t howlong = 7200; /* default seconds of reorganizing */ static char *leftofffile = "/var/tmp/.fsrlast_xfs";/* where we left off last */ static char *mtab = MOUNTED; -static char *progname; +char *progname; static time_t endtime; static time_t starttime; static xfs_ino_t leftoffino = 0; -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

