Christos Theodosiou
2010-Sep-03 08:06 UTC
[Lustre-discuss] Compiling lustre-client 2.0.0.1 on RHEL 4
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/attachments/20100903/9e1dca02/attachment-0001.html -------------- 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/attachments/20100903/9e1dca02/attachment-0002.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/attachments/20100903/9e1dca02/attachment-0003.bin
Alexey Lyashkov
2010-Sep-03 12:40 UTC
[Lustre-discuss] Compiling lustre-client 2.0.0.1 on RHEL 4
lustre 2.0 isn''t support RHEL4.>>>2010-07-15 Oracle, Inc. * version 2.0.0 * Server support for kernels: 2.6.18-164.11.1.el5 (RHEL 5) 2.6.18-164.11.1.0.1.el5 (OEL 5) * Client support for unpatched kernels: (see http://wiki.lustre.org/index.php?title=Patchless_Client) 2.6.18-164.11.1.el5 (RHEL 5), 2.6.18-164.11.1.0.1.el5 (OEL 5) 2.6.16.60-0.42.8 (SLES 10), 2.6.27.19-5 (SLES11) 2.6.29.4-167.fc11 (FC11) * Recommended e2fsprogs version: 1.41.10-sun2>>On Sep 3, 2010, at 12:06, Christos Theodosiou wrote:> 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 > <compat25.h.patch><symlink.c.patch>_______________________________________________ > Lustre-discuss mailing list > Lustre-discuss at lists.lustre.org > http://lists.lustre.org/mailman/listinfo/lustre-discuss-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.lustre.org/pipermail/lustre-discuss/attachments/20100903/a1b1c78d/attachment.html