On Tue, 2010-05-04 at 14:16 +0200, Bernd Schubert wrote: > 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"
Thanks Bernd. Now, it compiles > > > Please note that I did not test this patch at all yet. I'll follow the bug and test yours Now a couple of questions: 1) I've compiled RedHat5 2.6.18-164.11.1 kernel using config from file config-2.6.18-164.11.1.el5_lustre.1.8.3 extracted from package kernel-2.6.18-164.11.1.el5_lustre.1.8.3.x86_64-ext4.rpm from Oracle server that says: Lustre-patched kernel for ext4(MDS/MGS/OSS Only) Is it the right one? 2) By looking at infiniband libraries in Ubuntu LTS 10.04/Debian testing I could see that there are mainly OFED 1.4.2 except except libibverbs and librdmacm packages which seem to be from OFED 1.5.1 (libibverbs) and 1.5 (librdmaca). I suppose it have done this way, due to the 2.6.32 kernel (containing OFED 1.5.1 as you can see in docs/OFED_release_notes.txt) and openmpi 1.4.1 (coming with OFED 1.5.1), but I afraid of having problems when using Lustre 1.8.3 on it. I asked Debian maintainer Roland Dreier but he did not answer. Should I worry? -- Ramiro Alba Centre Tecnològic de Tranferència de Calor http://www.cttc.upc.edu Escola Tècnica Superior d'Enginyeries Industrial i Aeronàutica de Terrassa Colom 11, E-08222, Terrassa, Barcelona, Spain Tel: (+34) 93 739 86 46 -- Aquest missatge ha estat analitzat per MailScanner a la cerca de virus i d'altres continguts perillosos, i es considera que està net. _______________________________________________ Lustre-discuss mailing list [email protected] http://lists.lustre.org/mailman/listinfo/lustre-discuss
