On Thu, 9 Oct 2003, Nathan Scott wrote:
Hi.
> If it doesn't compile, please send a patch (and the compile error).
Of course.
To trigger error you must have includes from kernel 2.6.0-test5 or higher.
The error:
/usr/bin/libtool --mode=compile gcc -O1 -g -DNDEBUG -funsigned-char -Wall
-I../include -DVERSION=\"2.5.10\" -DLOCALEDIR=\"/usr/local/share/locale\"
-DPACKAGE=\"xfsprogs\" -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I.
-D_REENTRANT -fno-strict-aliasing -c linux.c
rm -f .libs/linux.lo
gcc -O1 -g -DNDEBUG -funsigned-char -Wall -I../include -DVERSION=\"2.5.10\"
-DLOCALEDIR=\"/usr/local/share/locale\" -DPACKAGE=\"xfsprogs\" -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64 -I. -D_REENTRANT -fno-strict-aliasing -c linux.c
-fPIC -DPIC -o .libs/linux.lo
linux.c: In function `platform_set_blocksize':
linux.c:116: parse error before '[' token
linux.c: In function `platform_findsizes':
linux.c:148: parse error before '[' token
make[1]: *** [linux.lo] Error 1
make: *** [default] Error 2
The patch: (from /usr/include/linux/fs.h)
diff -uNr xfsprogs.orig/libxfs/linux.c xfsprogs/libxfs/linux.c
--- xfsprogs.orig/libxfs/linux.c 2003-06-11 13:49:17.000000000 +0200
+++ xfsprogs/libxfs/linux.c 2003-10-09 10:30:12.000000000 +0200
@@ -42,10 +42,10 @@
extern char *progname;
#ifndef BLKGETSIZE64
-# define BLKGETSIZE64 _IOR(0x12,114,sizeof(__uint64_t))
+# define BLKGETSIZE64 _IOR(0x12,114,size_t)
#endif
#ifndef BLKBSZSET
-# define BLKBSZSET _IOW(0x12,113,sizeof(int))
+# define BLKBSZSET _IOW(0x12,113,size_t)
#endif
#ifndef BLKSSZGET
# define BLKSSZGET _IO(0x12,104)
jan
--
|