[Lustre-discuss] Compiling lustre 1.8.X on Ubuntu LTS 10.04
Bernd Schubert
bs_lists at aakef.fastmail.fm
Tue May 4 05:16:58 PDT 2010
On Tuesday 04 May 2010, Ramiro Alba Queipo wrote:
> Hi everybody,
>
> I would like if anybody is trying to compile lustre 1.8.X on Ubuntu LTS
> 10.4/Debian testing(squeeze), and know your opinion/comments on what
> I've got:
>
>
> I've been using lustre 1.8.1.1 with RedHat5 kernel 2.6.18-128.7.1 on
> Ubuntu LTS 8.04 both serves and clients, but now I would like to upgrade
> to the recent Ubuntu LTS 10.04.
> When I try to compile lustre 1.8.1.1 on Ubuntu 10.04 (gcc-4.4 and libc6
> 2.11.1 instead gcc-4.2 and libc6-2.7.10 on Ubuntu 8.04) and once
> suppressed all references in to "-Werror" in configure script (I tried
> --disable-werror, but it did not work), I finally got:
That is bug 22729. A very simple patch (entirely untested) should be:
diff --git a/lnet/include/libcfs/linux/kp30.h b/lnet/include/libcfs/linux/kp30.h
--- a/lnet/include/libcfs/linux/kp30.h
+++ b/lnet/include/libcfs/linux/kp30.h
@@ -386,17 +386,8 @@ extern int lwt_snapshot (cycles_t *now,
# define LPF64 "l"
#endif
-#ifdef HAVE_SIZE_T_LONG
-# define LPSZ "%lu"
-#else
-# define LPSZ "%u"
-#endif
-
-#ifdef HAVE_SSIZE_T_LONG
-# define LPSSZ "%ld"
-#else
-# define LPSSZ "%d"
-#endif
+#define LPSZ "%zd"
+#define LPSSZ "%zd"
#ifndef LPU64
# error "No word size defined"
Please note that I did not test this patch at all yet.
Cheers,
Bernd
--
Bernd Schubert
DataDirect Networks
More information about the lustre-discuss
mailing list