[Lustre-discuss] 1.6.5 compile probs

Heiko Schroeter schroete at iup.physik.uni-bremen.de
Tue Jun 17 22:51:29 PDT 2008


Am Dienstag, 17. Juni 2008 15:44:00 schrieb Brian J. Murrell:
> On Mon, 2008-06-16 at 12:23 +0200, Heiko Schroeter wrote:
> > Hello,
> >
> > i'am trying to compile the 1.6.5 sources against a vanilla-2.6.22.19
> > kernel. Distrib: gentoo 2008
> >
> > - setting the links and patching the kernel as described with "quilt push
> > -av" ok.
> > - compiling and booting the kernel ok.
> > - configuring lustre:
> > ./configure --disable-liblustre --enable-quota
> > --with-linux=/usr/src/linux-2.6.22.19/ seems ok, since it states "Type
> > make etc."
>
> I don't have a vanilla 2.6.22 kernel here, but I do have a RHEL5,
> 2.6.18-53.1.4 kernel...
>
> > - compiling lustre fails with:
> >
> > <snip>
> >   CC [M]  /usr/src/lustre-1.6.5/lustre/lov/lov_ea.o
> >   LD [M]  /usr/src/lustre-1.6.5/lustre/lov/lov.o
> > ln -s /usr/src/lustre-1.6.5/lustre/lvfs/fsfilt_ldiskfs.c
> > /usr/src/lustre-1.6.5/lustre/lvfs/fsfilt-ldiskfs.c CC [M] 
> > /usr/src/lustre-1.6.5/lustre/lvfs/fsfilt-ldiskfs.o
> > /usr/src/lustre-1.6.5/lustre/lvfs/fsfilt-ldiskfs.c: In
> > function 'fsfilt_ldiskfs_setup':
> > /usr/src/lustre-1.6.5/lustre/lvfs/fsfilt-ldiskfs.c:1401: error: 'struct
> > ldiskfs_sb_info' has no member named 's_qf_names'
>
> Did you enable CONFIG_QUOTA in your kernel?
>
> The RHEL5 kernel defines ext3_sb_info->s_qf_names as such:
>
> struct ext3_sb_info {
> ...
> #ifdef CONFIG_QUOTA
> 	char *s_qf_names[MAXQUOTAS];		/* Names of quota files with journalled
> quota */
> 	int s_jquota_fmt;			/* Format of quota to use */
> #endif
> };
>
> Can you see if your kernel has a similar definition of ext_sb_info?
>
> b.

Yes that does the trick ... partly i think.
The following diffs between the CVS and the 1.6.5 Version i could spot:
I hilighted the diffs in the output of the configure script.
It _seems_ (carefull speeking here) that the CVS configure script silently 
sets the parameter right, whereas the 1.6.5 Version lets you run into this 
compile error.



CVS Version
QUOTA OFF in Kernel
./configure --disable-liblustre --enable-quota --with-linux=/usr/src/linux-2.6.22.19/
<snip>
checking whether to DISABLE quota support... yes
<snap>
make
compiles through ...


1.6.5 Version
QUOTA OFF in Kernel
./configure --disable-liblustre --enable-quota --with-linux=/usr/src/linux-2.6.22.19/
<snip>
checking whether to ENABLE quota support... yes
<snap>
make
<snip>
/usr/src/lustre-1.6.5/lustre/lvfs/fsfilt-ldiskfs.c: In 
function 'fsfilt_ldiskfs_setup':
/usr/src/lustre-1.6.5/lustre/lvfs/fsfilt-ldiskfs.c:1401: error: 'struct 
ldiskfs_sb_info' has no member named 's_qf_names'
<snap>

Thank you very much for pointing me to this.

Regards
Heiko



More information about the lustre-discuss mailing list