<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.28.3">
</HEAD>
<BODY>
Hi,<BR>
<BR>
I tried to compile lustre-client 2.0.0.1 on RHEL4 with kernel 2.6.9-89.0.28.EL-x86_64 and I got 3 errors and 1 warning during the compile.<BR>
The compile is executed with -Werror option, and it fails in all 4 cases<BR>
<BR>
* Error: lustre_compat25.h<BR>
  CC [M]  /usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/fid/fid_handler.o<BR>
In file included from /usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/lvfs.h:48,<BR>
                 from /usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/obd_support.h:41,<BR>
                 from /usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/obd.h:44,<BR>
                 from /usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/obd.h:41,<BR>
                 from /usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/fid/fid_handler.c:55:<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h: In function `ll_lookup_one_len':<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:131: error: syntax error before '}' token<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:129: warning: unused variable `dchild'<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:131: warning: no return statement in function returning non-void<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h: At top level:<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:132: warning: type defaults to `int' in declaration of `dchild'<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:132: error: `fid_name' undeclared here (not in a function)<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:132: error: `dparent' undeclared here (not in a function)<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:132: error: `fid_namelen' undeclared here (not in a function)<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:132: warning: initialization makes integer from pointer without a cast<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:132: error: initializer element is not constant<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:132: warning: data definition has no type or storage class<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:133: error: syntax error before "do"<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:141: warning: type defaults to `int' in declaration of `dput'<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:141: warning: parameter names (without types) in function declaration<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:141: error: conflicting types for 'dput'<BR>
/usr/src/linux/include/linux/dcache.h:314: error: previous declaration of 'dput' was here<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:141: error: conflicting types for 'dput'<BR>
/usr/src/linux/include/linux/dcache.h:314: error: previous declaration of 'dput' was here<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:141: warning: data definition has no type or storage class<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:142: warning: type defaults to `int' in declaration of `dchild'<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:142: error: redefinition of 'dchild'<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:132: error: previous definition of 'dchild' was here<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:142: warning: initialization makes integer from pointer without a cast<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:142: error: initializer element is not constant<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:142: warning: data definition has no type or storage class<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:143: error: syntax error before '}' token<BR>
<BR>
* Error: symlink.c<BR>
make[3]: Entering directory `/usr/src/kernels/2.6.9-89.0.28.EL-x86_64'<BR>
  CC [M]  /usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/llite/symlink.o<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/llite/symlink.c: In function `ll_follow_link':<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/llite/symlink.c:190: error: `lli' undeclared (first use in this function)<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/llite/symlink.c:190: error: (Each undeclared identifier is reported only once<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/llite/symlink.c:190: error: for each function it appears in.)<BR>
<BR>
* Error: statahead.c<BR>
make[3]: Entering directory `/usr/src/kernels/2.6.9-89.0.28.EL-x86_64'<BR>
  CC [M]  /usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/llite/statahead.o<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/llite/statahead.c: In function `do_statahead_enter':<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/llite/statahead.c:1268: error: structure has no member named `i_mutex'<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/llite/statahead.c:1319: error: structure has no member named `i_mutex'<BR>
<BR>
* Warning: atomic_inc_not_zero<BR>
  CC [M]  /usr/src/redhat/BUILD/lustre-2.0.0.1/libcfs/libcfs/hash.o<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/libcfs/libcfs/hash.c: In function `cfs_hash_getref':<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/libcfs/libcfs/hash.c:212: warning: implicit declaration of function `atomic_inc_not_zero'<BR>
<BR>
  CC [M]  /usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/ptlrpc/service.o<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/ptlrpc/service.c: In function `ptlrpc_at_check_timed':<BR>
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/ptlrpc/service.c:1168: warning: implicit declaration of function `atomic_inc_not_zero'<BR>
<BR>
I manged to overcome the first two errors. I attached two patch files. <BR>
Unfortunately I can not handle the other two cases.<BR>
Also, I tried report these issues <A HREF="https://bugzilla.lustre.org/,">https://bugzilla.lustre.org/,</A> but I still waiting for the confirmation email.<BR>
<BR>
Regards<BR>
Christos<BR>
<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
-- 
Christos Theodosiou
GridAUTH Operations Centre
Aristotle University 
54 124 Thessaloniki, Greece
Tel: +30 2310 99 8988
Fax: +30 2310 99 4309
<A HREF="http://www.grid.auth.gr">http://www.grid.auth.gr</A>
</PRE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>