Jeffrey Layton
2010-Jun-12 14:00 UTC
[Ocfs2-users] Problems building ocfs2-1.4.7 against Centos 5.3 and 2.6.30 kernel
Good morning, I'm trying to build ocfs2-1.4.7 against a Centos 5.3 distro with a 2.6.30 kernel. I get the following errors during compilation. make[1]: Entering directory `/root/src/ocfs2-1.4.7/fs' make -C ocfs2 stamp-md5 make[2]: Entering directory `/root/src/ocfs2-1.4.7/fs/ocfs2' make[2]: Leaving directory `/root/src/ocfs2-1.4.7/fs/ocfs2' make -C ocfs2/cluster stamp-md5 make[2]: Entering directory `/root/src/ocfs2-1.4.7/fs/ocfs2/cluster' make[2]: Leaving directory `/root/src/ocfs2-1.4.7/fs/ocfs2/cluster' make -C ocfs2/dlm stamp-md5 make[2]: Entering directory `/root/src/ocfs2-1.4.7/fs/ocfs2/dlm' make[2]: Leaving directory `/root/src/ocfs2-1.4.7/fs/ocfs2/dlm' make -C /usr/src/kernels/linux-2.6.30 M=/root/src/ocfs2-1.4.7/fs modules make[2]: Entering directory `/usr/src/kernels/linux-2.6.30' CC [M] /root/src/ocfs2-1.4.7/fs/ocfs2/compat_should_remove_suid.o CC [M] /root/src/ocfs2-1.4.7/fs/ocfs2/compat_generic_segment_checks.o CC [M] /root/src/ocfs2-1.4.7/fs/ocfs2/alloc.o CC [M] /root/src/ocfs2-1.4.7/fs/ocfs2/aops.o CC [M] /root/src/ocfs2-1.4.7/fs/ocfs2/buffer_head_io.o CC [M] /root/src/ocfs2-1.4.7/fs/ocfs2/dcache.o CC [M] /root/src/ocfs2-1.4.7/fs/ocfs2/dir.o /root/src/ocfs2-1.4.7/fs/ocfs2/dir.c: In function ?ocfs2_readdir?: /root/src/ocfs2-1.4.7/fs/ocfs2/dir.c:865: warning: passing argument 2 of ?ocfs2_dir_foreach_blk? from incompatible pointer type CC [M] /root/src/ocfs2-1.4.7/fs/ocfs2/dlmglue.o CC [M] /root/src/ocfs2-1.4.7/fs/ocfs2/export.o /root/src/ocfs2-1.4.7/fs/ocfs2/export.c: In function ?ocfs2_get_dentry?: /root/src/ocfs2-1.4.7/fs/ocfs2/export.c:139: error: implicit declaration of function ?d_alloc_anon? /root/src/ocfs2-1.4.7/fs/ocfs2/export.c:139: warning: assignment makes pointer from integer without a cast /root/src/ocfs2-1.4.7/fs/ocfs2/export.c: In function ?ocfs2_get_parent?: /root/src/ocfs2-1.4.7/fs/ocfs2/export.c:189: warning: assignment makes pointer from integer without a cast /root/src/ocfs2-1.4.7/fs/ocfs2/export.c: In function ?ocfs2_decode_fh?: /root/src/ocfs2-1.4.7/fs/ocfs2/export.c:302: error: ?struct export_operations? has no member named ?find_exported_dentry? /root/src/ocfs2-1.4.7/fs/ocfs2/export.c: At top level: /root/src/ocfs2-1.4.7/fs/ocfs2/export.c:311: error: unknown field ?decode_fh? specified in initializer /root/src/ocfs2-1.4.7/fs/ocfs2/export.c:311: warning: initialization from incompatible pointer type /root/src/ocfs2-1.4.7/fs/ocfs2/export.c:315: error: unknown field ?get_dentry? specified in initializer /root/src/ocfs2-1.4.7/fs/ocfs2/export.c:315: warning: excess elements in struct initializer /root/src/ocfs2-1.4.7/fs/ocfs2/export.c:315: warning: (near initialization for ?ocfs2_export_ops?) make[4]: *** [/root/src/ocfs2-1.4.7/fs/ocfs2/export.o] Error 1 make[3]: *** [/root/src/ocfs2-1.4.7/fs/ocfs2] Error 2 make[2]: *** [_module_/root/src/ocfs2-1.4.7/fs] Error 2 make[2]: Leaving directory `/usr/src/kernels/linux-2.6.30' make[1]: *** [build-modules] Error 2 make[1]: Leaving directory `/root/src/ocfs2-1.4.7/fs' make: *** [fs] Error 2 Any suggestions? Thanks! Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: http://oss.oracle.com/pipermail/ocfs2-users/attachments/20100612/83629f22/attachment.html
Marcos E. Matsunaga
2010-Jun-12 14:42 UTC
[Ocfs2-users] Problems building ocfs2-1.4.7 against Centos 5.3 and 2.6.30 kernel
Jeffrey, 2.6.30 already have ocfs2. ocfs2-1.4 is for enterprise kernel only (OEL, RHEL, SLES) so, it will not build on mainline kernels. If you want to use ocfs2 with 2.6.30, you have enable it and rebuild the kernel. Regards, Marcos Eduardo Matsunaga Oracle USA Linux Engineering ?The statements and opinions expressed here are my own and do not necessarily represent those of Oracle Corporation.? On 06/12/2010 10:00 AM, Jeffrey Layton wrote:> Good morning, > > I'm trying to build ocfs2-1.4.7 against a Centos 5.3 distro with a > 2.6.30 kernel. I get the following errors during compilation. > > make[1]: Entering directory `/root/src/ocfs2-1.4.7/fs' > make -C ocfs2 stamp-md5 > make[2]: Entering directory `/root/src/ocfs2-1.4.7/fs/ocfs2' > make[2]: Leaving directory `/root/src/ocfs2-1.4.7/fs/ocfs2' > make -C ocfs2/cluster stamp-md5 > make[2]: Entering directory `/root/src/ocfs2-1.4.7/fs/ocfs2/cluster' > make[2]: Leaving directory `/root/src/ocfs2-1.4.7/fs/ocfs2/cluster' > make -C ocfs2/dlm stamp-md5 > make[2]: Entering directory `/root/src/ocfs2-1.4.7/fs/ocfs2/dlm' > make[2]: Leaving directory `/root/src/ocfs2-1.4.7/fs/ocfs2/dlm' > make -C /usr/src/kernels/linux-2.6.30 M=/root/src/ocfs2-1.4.7/fs modules > make[2]: Entering directory `/usr/src/kernels/linux-2.6.30' > ? CC [M]? /root/src/ocfs2-1.4.7/fs/ocfs2/compat_should_remove_suid.o > ? CC [M]? /root/src/ocfs2-1.4.7/fs/ocfs2/compat_generic_segment_checks.o > ? CC [M]? /root/src/ocfs2-1.4.7/fs/ocfs2/alloc.o > ? CC [M]? /root/src/ocfs2-1.4.7/fs/ocfs2/aops.o > ? CC [M]? /root/src/ocfs2-1.4.7/fs/ocfs2/buffer_head_io.o > ? CC [M]? /root/src/ocfs2-1.4.7/fs/ocfs2/dcache.o > ? CC [M]? /root/src/ocfs2-1.4.7/fs/ocfs2/dir.o > /root/src/ocfs2-1.4.7/fs/ocfs2/dir.c: In function ?ocfs2_readdir?: > /root/src/ocfs2-1.4.7/fs/ocfs2/dir.c:865: warning: passing argument 2 > of ?ocfs2_dir_foreach_blk? from incompatible pointer type > ? CC [M]? /root/src/ocfs2-1.4.7/fs/ocfs2/dlmglue.o > ? CC [M]? /root/src/ocfs2-1.4.7/fs/ocfs2/export.o > /root/src/ocfs2-1.4.7/fs/ocfs2/export.c: In function ?ocfs2_get_dentry?: > /root/src/ocfs2-1.4.7/fs/ocfs2/export.c:139: error: implicit > declaration of function ?d_alloc_anon? > /root/src/ocfs2-1.4.7/fs/ocfs2/export.c:139: warning: assignment makes > pointer from integer without a cast > /root/src/ocfs2-1.4.7/fs/ocfs2/export.c: In function ?ocfs2_get_parent?: > /root/src/ocfs2-1.4.7/fs/ocfs2/export.c:189: warning: assignment makes > pointer from integer without a cast > /root/src/ocfs2-1.4.7/fs/ocfs2/export.c: In function ?ocfs2_decode_fh?: > /root/src/ocfs2-1.4.7/fs/ocfs2/export.c:302: error: ?struct > export_operations? has no member named ?find_exported_dentry? > /root/src/ocfs2-1.4.7/fs/ocfs2/export.c: At top level: > /root/src/ocfs2-1.4.7/fs/ocfs2/export.c:311: error: unknown field > ?decode_fh? specified in initializer > /root/src/ocfs2-1.4.7/fs/ocfs2/export.c:311: warning: initialization > from incompatible pointer type > /root/src/ocfs2-1.4.7/fs/ocfs2/export.c:315: error: unknown field > ?get_dentry? specified in initializer > /root/src/ocfs2-1.4.7/fs/ocfs2/export.c:315: warning: excess elements > in struct initializer > /root/src/ocfs2-1.4.7/fs/ocfs2/export.c:315: warning: (near > initialization for ?ocfs2_export_ops?) > make[4]: *** [/root/src/ocfs2-1.4.7/fs/ocfs2/export.o] Error 1 > make[3]: *** [/root/src/ocfs2-1.4.7/fs/ocfs2] Error 2 > make[2]: *** [_module_/root/src/ocfs2-1.4.7/fs] Error 2 > make[2]: Leaving directory `/usr/src/kernels/linux-2.6.30' > make[1]: *** [build-modules] Error 2 > make[1]: Leaving directory `/root/src/ocfs2-1.4.7/fs' > make: *** [fs] Error 2 > > > > Any suggestions? > > Thanks! > > Jeff > > > > _______________________________________________ > Ocfs2-users mailing list > Ocfs2-users at oss.oracle.com > http://oss.oracle.com/mailman/listinfo/ocfs2-users-------------- next part -------------- An HTML attachment was scrubbed... URL: http://oss.oracle.com/pipermail/ocfs2-users/attachments/20100612/2e474731/attachment.html