On Tue, 28 Nov 2006, tagarsi, arun wrote:
It was suggested I needed to compile a version of e2fsprogs from lustre
itself which I have tried to do , as you can see from the listing below
it is not happy, any suggestions would be very welcome .
CC prof_err.c
CC pass6.c
pass6.c: In function `lfsck_get_last_id':
pass6.c:738: warning: implicit declaration of function `ext2fs_swab64'
CC lfsck_common.c
lfsck_common.c: In function `cputole_mds_hdr':
lfsck_common.c:184: warning: implicit declaration of function `ext2fs_swab64'
LD e2fsck.static
pass6.o(.text+0x1894): In function `lfsck_set_last_id':
/usr/src/lustre-1.4.7.3/e2fsprogs-1.39.cfs1/e2fsck/pass6.c:771: undefined
reference to `ext2fs_swab64'
pass6.o(.text+0x2b58): In function `e2fsck_pass6_ost':
/usr/src/lustre-1.4.7.3/e2fsprogs-1.39.cfs1/e2fsck/pass6.c:738: undefined
reference to `ext2fs_swab64'
lfsck_common.o(.text+0x54c): In function `cputole_mds_hdr':
/usr/src/lustre-1.4.7.3/e2fsprogs-1.39.cfs1/e2fsck/lfsck_common.c:184:
undefined reference to `ext2fs_swab64'
lfsck_common.o(.text+0x56c):/usr/src/lustre-1.4.7.3/e2fsprogs-1.39.cfs1/e2fsck/lfsck_common.c:185:
undefined reference to `ext2fs_swab64'
lfsck_common.o(.text+0x58c):/usr/src/lustre-1.4.7.3/e2fsprogs-1.39.cfs1/e2fsck/lfsck_common.c:186:
undefined reference to `ext2fs_swab64'
lfsck_common.o(.text+0x5a8):/usr/src/lustre-1.4.7.3/e2fsprogs-1.39.cfs1/e2fsck/lfsck_common.c:187:
more undefined references to `ext2fs_swab64' follow
collect2: ld returned 1 exit status
make[2]: *** [e2fsck.static] Error 1
make[2]: Leaving directory `/scr2/src/lustre-1.4.7.3/e2fsprogs-1.39.cfs1/e2fsck'
make[1]: *** [all-progs-recursive] Error 1
make[1]: Leaving directory `/scr2/src/lustre-1.4.7.3/e2fsprogs-1.39.cfs1'
make: *** [all] Error 2
Thanks for any help ...prod....:-)
You may need the patch below.
--
Jean-Marc Saffroy - [EMAIL PROTECTED]
Index: e2fsprogs-source/lib/ext2fs/bitops.h
diff -u e2fsprogs-source/lib/ext2fs/bitops.h:1.1.1.3
e2fsprogs-source/lib/ext2fs/bitops.h:1.1.1.3.4.1
--- e2fsprogs-source/lib/ext2fs/bitops.h:1.1.1.3 Fri Nov 17 20:15:03 2006
+++ e2fsprogs-source/lib/ext2fs/bitops.h Mon Nov 20 15:12:13 2006
@@ -351,6 +351,12 @@
((val<<8)&0xFF0000) | (val<<24));
}
+_INLINE_ __u64 ext2fs_swab64(__u64 val)
+{
+ return (ext2fs_swab32(val >> 32) |
+ (((__u64)ext2fs_swab32(val & 0xFFFFFFFFUL)) << 32));
+}
+
#endif /* !_EXT2_HAVE_ASM_SWAB */
#if !defined(_EXT2_HAVE_ASM_FINDBIT_)
_______________________________________________
Lustre-discuss mailing list
[email protected]
https://mail.clusterfs.com/mailman/listinfo/lustre-discuss