Hello Jean-Marc
Thanks for the patch , that did fix it, many thanks. It seems I
may have other issues as it then breaks further on :-(.
CC lfsck_common.c
LD e2fsck.static
CP e2fsck
CC lfsck.c
lfsck.c: In function `get_response':
lfsck.c:1553: warning: comparison is always false due to limited range of data
type
LD lfsck
cc -pthread -I /usr/src/lustre/lustre/include -Wall lfsck_common.o lfsck.o -o
lfsck -L /usr/src/lustre/lustre/utils -llustreapi ../lib/libext2fs.a
../lib/libcom_err.a ../lib/libblkid.a ../lib/libuuid.a -ldb-4.2
/usr/bin/ld: skipping incompatible /usr/src/lustre/lustre/utils/liblustreapi.a
when searching for -llustreapi
/usr/bin/ld: cannot find -llustreapi
collect2: ld returned 1 exit status
make[2]: *** [lfsck] 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
I can locate the lusterapi , I have the source for the e2fsprogs in the main
directory of the lustre-1.4.7.3 source.
[EMAIL PROTECTED] e2fsprogs-1.39.cfs1]# locate lustreapi
/scr2/src/lustre-1.4.7.3/lustre/include/lustre/liblustreapi.h
/scr2/src/lustre-1.4.7.3/lustre/utils/liblustreapi.c
/scr2/src/lustre-1.4.7.3/lustre/utils/liblustreapi.a
/scr2/src/lustre-1.4.7.3/lustre/utils/.deps/liblustreapi.Po
/scr2/src/lustre-1.4.7.3/lustre/utils/liblustreapi.o
Do I have to set up my environments in some way to enable the make to find all
the relevant libraries/ headers ?
Thanks
Arun
-----Original Message-----
From: Jean-Marc Saffroy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 28, 2006 6:29 PM
To: tagarsi, arun
Cc: [email protected]
Subject: Re: [Lustre-discuss] Please help!! PPC64 compiling failure
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