<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">lustre 2.0 isn't support RHEL4.<div><div>>>></div><div>2010-07-15  Oracle, Inc.</div><div>       * version 2.0.0</div><div>       * Server support for kernels:</div><div>         2.6.18-164.11.1.el5 (RHEL 5)</div><div>         2.6.18-164.11.1.0.1.el5 (OEL 5)</div><div>       * Client support for unpatched kernels:</div><div>         (see <a href="http://wiki.lustre.org/index.php?title=Patchless_Client">http://wiki.lustre.org/index.php?title=Patchless_Client</a>)</div><div>         2.6.18-164.11.1.el5 (RHEL 5),</div><div>         2.6.18-164.11.1.0.1.el5 (OEL 5)</div><div>         2.6.16.60-0.42.8 (SLES 10),</div><div>         2.6.27.19-5 (SLES11)</div><div>         2.6.29.4-167.fc11 (FC11)</div><div>       * Recommended e2fsprogs version: 1.41.10-sun2</div></div><div>>></div><div><br><div><div><div>On Sep 3, 2010, at 12:06, Christos Theodosiou wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<div>
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%">
<tbody><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>
</tbody></table>
</div>

<span><compat25.h.patch></span><span><symlink.c.patch></span>_______________________________________________<br>Lustre-discuss mailing list<br><a href="mailto:Lustre-discuss@lists.lustre.org">Lustre-discuss@lists.lustre.org</a><br>http://lists.lustre.org/mailman/listinfo/lustre-discuss<br></blockquote></div><br></div></div></body></html>