[Lustre-discuss] Compiling lustre-client 2.0.0.1 on RHEL 4

Christos Theodosiou ctheodos at grid.auth.gr
Fri Sep 3 01:06:11 PDT 2010


Hi,

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.
The compile is executed with -Werror option, and it fails in all 4 cases

* Error: lustre_compat25.h
  CC [M]  /usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/fid/fid_handler.o
In file included
from /usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/lvfs.h:48,

from /usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/obd_support.h:41,

from /usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/obd.h:44,

from /usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/obd.h:41,

from /usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/fid/fid_handler.c:55:
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h: In
function `ll_lookup_one_len':
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:131:
error: syntax error before '}' token
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:129:
warning: unused variable `dchild'
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:131:
warning: no return statement in function returning non-void
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h: At top
level:
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:132:
warning: type defaults to `int' in declaration of `dchild'
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:132:
error: `fid_name' undeclared here (not in a function)
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:132:
error: `dparent' undeclared here (not in a function)
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:132:
error: `fid_namelen' undeclared here (not in a function)
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:132:
warning: initialization makes integer from pointer without a cast
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:132:
error: initializer element is not constant
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:132:
warning: data definition has no type or storage class
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:133:
error: syntax error before "do"
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:141:
warning: type defaults to `int' in declaration of `dput'
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:141:
warning: parameter names (without types) in function declaration
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:141:
error: conflicting types for 'dput'
/usr/src/linux/include/linux/dcache.h:314: error: previous declaration
of 'dput' was here
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:141:
error: conflicting types for 'dput'
/usr/src/linux/include/linux/dcache.h:314: error: previous declaration
of 'dput' was here
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:141:
warning: data definition has no type or storage class
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:142:
warning: type defaults to `int' in declaration of `dchild'
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:142:
error: redefinition of 'dchild'
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:132:
error: previous definition of 'dchild' was here
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:142:
warning: initialization makes integer from pointer without a cast
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:142:
error: initializer element is not constant
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:142:
warning: data definition has no type or storage class
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/include/linux/lvfs.h:143:
error: syntax error before '}' token

* Error: symlink.c
make[3]: Entering directory `/usr/src/kernels/2.6.9-89.0.28.EL-x86_64'
  CC [M]  /usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/llite/symlink.o
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/llite/symlink.c: In function
`ll_follow_link':
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/llite/symlink.c:190: error:
`lli' undeclared (first use in this function)
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/llite/symlink.c:190: error:
(Each undeclared identifier is reported only once
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/llite/symlink.c:190: error:
for each function it appears in.)

* Error: statahead.c
make[3]: Entering directory `/usr/src/kernels/2.6.9-89.0.28.EL-x86_64'
  CC [M]  /usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/llite/statahead.o
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/llite/statahead.c: In
function `do_statahead_enter':
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/llite/statahead.c:1268:
error: structure has no member named `i_mutex'
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/llite/statahead.c:1319:
error: structure has no member named `i_mutex'

* Warning: atomic_inc_not_zero
  CC [M]  /usr/src/redhat/BUILD/lustre-2.0.0.1/libcfs/libcfs/hash.o
/usr/src/redhat/BUILD/lustre-2.0.0.1/libcfs/libcfs/hash.c: In function
`cfs_hash_getref':
/usr/src/redhat/BUILD/lustre-2.0.0.1/libcfs/libcfs/hash.c:212: warning:
implicit declaration of function `atomic_inc_not_zero'

  CC [M]  /usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/ptlrpc/service.o
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/ptlrpc/service.c: In
function `ptlrpc_at_check_timed':
/usr/src/redhat/BUILD/lustre-2.0.0.1/lustre/ptlrpc/service.c:1168:
warning: implicit declaration of function `atomic_inc_not_zero'

I manged to overcome the first two errors. I attached two patch files. 
Unfortunately I can not handle the other two cases.
Also, I tried report these issues https://bugzilla.lustre.org/, but I
still waiting for the confirmation email.

Regards
Christos


-- 
Christos Theodosiou
GridAUTH Operations Centre
Aristotle University 
54 124 Thessaloniki, Greece
Tel: +30 2310 99 8988
Fax: +30 2310 99 4309
http://www.grid.auth.gr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/attachments/20100903/9e1dca02/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compat25.h.patch
Type: text/x-patch
Size: 800 bytes
Desc: not available
URL: <http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/attachments/20100903/9e1dca02/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: symlink.c.patch
Type: text/x-patch
Size: 414 bytes
Desc: not available
URL: <http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/attachments/20100903/9e1dca02/attachment-0001.bin>


More information about the lustre-discuss mailing list