зоррыч
2012-Mar-11 14:37 UTC
[Ocfs2-users] ocfs2-1.4.7 is not binding in scientific linux 6.2
Hi. I use scientific linux 6.2: [root at noc-1-m77 ocfs2-1.4.7]# cat /etc/redhat-release Scientific Linux release 6.2 (Carbon) [root at noc-1-m77 ocfs2-1.4.7]# uname -r 2.6.32-220.4.1.el6.x86_64 Does not compile: [root at noc-1-m77 ocfs2-1.4.7]# ./configure --with-kernel=/usr/src/kernels/2.6.32-220.7.1.el6.x86_64 checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking how to run the C preprocessor... gcc -E checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes checking for egrep... grep -E checking for ANSI C header files... yes checking for an ANSI C-conforming const... yes checking for vendor... not found checking for vendor kernel... not supported checking for debugging... no checking for directory with kernel build tree... /usr/src/kernels/2.6.32-220.7.1.el6.x86_64 checking for kernel version... 2.6.32-220.7.1.el6.x86_64 checking for directory with kernel sources... /usr/src/kernels/2.6.32-220.7.1.el6.x86_64 checking for kernel source version... 2.6.32-220.7.1.el6.x86_64 checking for struct delayed_work in workqueue.h... yes checking for uninitialized_var() in compiler-gcc4.h... yes checking for zero_user_page() in highmem.h... no checking for do_sync_mapping_range() in fs.h... yes checking for fault() in struct vm_operations_struct in mm.h... yes checking for f_path in fs.h... yes checking for enum umh_wait in kmod.h... yes checking for inc_nlink() in fs.h... yes checking for drop_nlink() in fs.h... yes checking for kmem_cache_create() with dtor arg in slab.h... no checking for kmem_cache_zalloc in slab.h... yes checking for flag FS_RENAME_DOES_D_MOVE in fs.h... yes checking for enum FS_OCFS2 in sysctl.h... yes checking for configfs_depend_item() in configfs.h... yes checking for register_sysctl() with two args in sysctl.h... no checking for su_mutex in struct configfs_subsystem in configfs.h... yes checking for struct subsystem in kobject.h... no checking for is_owner_or_cap() in fs.h... yes checking for fallocate() in fs.h... yes checking for struct splice_desc in splice.h... yes checking for MNT_RELATIME in mount.h... yes checking for should_remove_suid() in fs.h... no checking for generic_segment_checks() in fs.h... no checking for s_op declared as const in struct super_block in fs.h... yes checking for i_op declared as const in struct inode in fs.h... yes checking for f_op declared as const in struct file in fs.h... yes checking for a_ops declared as const in struct address_space in fs.h... yes checking for aio_read() in struct file_operations using iovec in fs.h... yes checking for __splice_from_pipe() in splice.h... yes checking for old bio_end_io_t in bio.h... no checking for b_size is u32 struct buffer_head in buffer_head.h... no checking for exportfs.h... yes checking for linux/lockdep.h... yes checking for mandatory_lock() in fs.h... yes checking for range prefix in struct writeback_control... yes checking for SYNC_FILE_RANGE flags... yes checking for blkcnt_t in types.h... yes checking for i_private in struct inode... yes checking for page_mkwrite in struct vm_operations_struct... no checking for get_sb_bdev() with 5 arguments in fs.h... no checking for read_mapping_page in pagemap.h... yes checking for ino_t in filldir_t in fs.h... no checking for invalidatepage returning int in fs.h... no checking for get_blocks_t type... no checking for linux/uaccess.h... yes checking for system_utsname in utsname.h... no checking for MS_LOOP_NO_AOPS flag defined... no checking for fops->sendfile() in fs.h... no checking for task_pid_nr in sched.h... yes checking for confirm() in struct pipe_buf_operations in pipe_fs_i.h... yes checking for mutex_lock_nested() in mutex.h... yes checking for inode_double_lock) in fs.h... no checking for splice_read() in fs.h... yes checking for sops->statfs takes struct super_block * in fs.h... no checking for le16_add_cpu() in byteorder/generic.h... yes checking for le32_add_cpu() in byteorder/generic.h... yes checking for le64_add_cpu() in byteorder/generic.h... yes checking for be32_add_cpu() in byteorder/generic.h... yes checking for clear_nlink() in fs.h... yes configure: creating ./config.status config.status: creating Config.make config.status: creating vendor/rhel5/ocfs2.spec-generic config.status: creating vendor/suse-kmp/ocfs2.spec-generic [root at noc-1-m77 ocfs2-1.4.7]# make make: Warning: File `Versioning.make' has modification time 8.1e+07 s in the future make -C fs make[1]: Entering directory `/root/ocfs2-1.4.7/fs' make[1]: Warning: File `../Versioning.make' has modification time 8.1e+07 s in the future make -C ocfs2 stamp-md5 make[2]: Entering directory `/root/ocfs2-1.4.7/fs/ocfs2' make[2]: Warning: File `../../Versioning.make' has modification time 8.1e+07 s in the future make[2]: warning: Clock skew detected. Your build may be incomplete. make[2]: Leaving directory `/root/ocfs2-1.4.7/fs/ocfs2' make -C ocfs2/cluster stamp-md5 make[2]: Entering directory `/root/ocfs2-1.4.7/fs/ocfs2/cluster' make[2]: Warning: File `../../../Versioning.make' has modification time 8.1e+07 s in the future make[2]: warning: Clock skew detected. Your build may be incomplete. make[2]: Leaving directory `/root/ocfs2-1.4.7/fs/ocfs2/cluster' make -C ocfs2/dlm stamp-md5 make[2]: Entering directory `/root/ocfs2-1.4.7/fs/ocfs2/dlm' make[2]: Warning: File `../../../Versioning.make' has modification time 8.1e+07 s in the future make[2]: warning: Clock skew detected. Your build may be incomplete. make[2]: Leaving directory `/root/ocfs2-1.4.7/fs/ocfs2/dlm' make -C /usr/src/kernels/2.6.32-220.7.1.el6.x86_64 M=/root/ocfs2-1.4.7/fs modules make[2]: Entering directory `/usr/src/kernels/2.6.32-220.7.1.el6.x86_64' make[2]: Warning: File `/usr/src/kernels/2.6.32-220.7.1.el6.x86_64/arch/x86/Makefile' has modification time 2.1e+08 s in the future make[3]: Warning: File `scripts/Makefile.lib' has modification time 1.4e+08 s in the future make[4]: Warning: File `scripts/Makefile.lib' has modification time 1.4e+08 s in the future CC [M] /root/ocfs2-1.4.7/fs/ocfs2/compat_should_remove_suid.o CC [M] /root/ocfs2-1.4.7/fs/ocfs2/compat_generic_segment_checks.o CC [M] /root/ocfs2-1.4.7/fs/ocfs2/alloc.o CC [M] /root/ocfs2-1.4.7/fs/ocfs2/aops.o /root/ocfs2-1.4.7/fs/ocfs2/aops.c: In function ?-?ocfs2_direct_IO?-?: /root/ocfs2-1.4.7/fs/ocfs2/aops.c:721: warning: passing argument 9 of ?-?blockdev_direct_IO_no_locking?-? from incompatible pointer type include/linux/fs.h:2364: note: expected ?-?void (*)(struct kiocb *, loff_t, ssize_t, void *, int, bool)?-? but argument is of type ?-?void (*)(struct kiocb *, loff_t, ssize_t, void *)?-? CC [M] /root/ocfs2-1.4.7/fs/ocfs2/buffer_head_io.o CC [M] /root/ocfs2-1.4.7/fs/ocfs2/dcache.o CC [M] /root/ocfs2-1.4.7/fs/ocfs2/dir.o /root/ocfs2-1.4.7/fs/ocfs2/dir.c: In function ?-?ocfs2_readdir?-?: /root/ocfs2-1.4.7/fs/ocfs2/dir.c:865: warning: passing argument 2 of ?-?ocfs2_dir_foreach_blk?-? from incompatible pointer type /root/ocfs2-1.4.7/fs/ocfs2/dir.c:800: note: expected ?-?long unsigned int *?-? but argument is of type ?-?u64 *?-? CC [M] /root/ocfs2-1.4.7/fs/ocfs2/dlmglue.o CC [M] /root/ocfs2-1.4.7/fs/ocfs2/export.o /root/ocfs2-1.4.7/fs/ocfs2/export.c: In function ?-?ocfs2_get_dentry?-?: /root/ocfs2-1.4.7/fs/ocfs2/export.c:139: error: implicit declaration of function ?-?d_alloc_anon?-? /root/ocfs2-1.4.7/fs/ocfs2/export.c:139: warning: assignment makes pointer from integer without a cast /root/ocfs2-1.4.7/fs/ocfs2/export.c: In function ?-?ocfs2_get_parent?-?: /root/ocfs2-1.4.7/fs/ocfs2/export.c:189: warning: assignment makes pointer from integer without a cast /root/ocfs2-1.4.7/fs/ocfs2/export.c: In function ?-?ocfs2_decode_fh?-?: /root/ocfs2-1.4.7/fs/ocfs2/export.c:302: error: ?-?struct export_operations?-? has no member named ?-?find_exported_dentry?-? /root/ocfs2-1.4.7/fs/ocfs2/export.c: At top level: /root/ocfs2-1.4.7/fs/ocfs2/export.c:311: error: unknown field ?-?decode_fh?-? specified in initializer /root/ocfs2-1.4.7/fs/ocfs2/export.c:311: warning: initialization from incompatible pointer type /root/ocfs2-1.4.7/fs/ocfs2/export.c:315: error: unknown field ?-?get_dentry?-? specified in initializer /root/ocfs2-1.4.7/fs/ocfs2/export.c:315: warning: initialization from incompatible pointer type make[4]: *** [/root/ocfs2-1.4.7/fs/ocfs2/export.o] Error 1 make[3]: *** [/root/ocfs2-1.4.7/fs/ocfs2] Error 2 make[2]: *** [_module_/root/ocfs2-1.4.7/fs] Error 2 make[2]: Leaving directory `/usr/src/kernels/2.6.32-220.7.1.el6.x86_64' make[1]: *** [build-modules] Error 2 make[1]: Leaving directory `/root/ocfs2-1.4.7/fs' make: *** [fs] Error 2 How do I fix this? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://oss.oracle.com/pipermail/ocfs2-users/attachments/20120311/a6752839/attachment-0001.html
Sunil Mushran
2012-Mar-12 18:26 UTC
[Ocfs2-users] ocfs2-1.4.7 is not binding in scientific linux 6.2
ocfs2 1.4 will not build with 2.6.32. A better solution is to just enable ocfs2 in the 2.6.32 kernel src tree and build. On 03/11/2012 07:37 AM, ?????? wrote:> Hi. > > I use scientific linux 6.2: > > [root at noc-1-m77 ocfs2-1.4.7]# cat /etc/redhat-release > > Scientific Linux release 6.2 (Carbon) > > [root at noc-1-m77 ocfs2-1.4.7]# uname -r > > 2.6.32-220.4.1.el6.x86_64 > > Does not compile: > > [root at noc-1-m77 ocfs2-1.4.7]# ./configure > --with-kernel=/usr/src/kernels/2.6.32-220.7.1.el6.x86_64 > > checking build system type... x86_64-unknown-linux-gnu > > checking host system type... x86_64-unknown-linux-gnu > > checking for gcc... gcc > > checking for C compiler default output file name... a.out > > checking whether the C compiler works... yes > > checking whether we are cross compiling... no > > checking for suffix of executables... > > checking for suffix of object files... o > > checking whether we are using the GNU C compiler... yes > > checking whether gcc accepts -g... yes > > checking for gcc option to accept ANSI C... none needed > > checking how to run the C preprocessor... gcc -E > > checking for a BSD-compatible install... /usr/bin/install -c > > checking whether ln -s works... yes > > checking for egrep... grep -E > > checking for ANSI C header files... yes > > checking for an ANSI C-conforming const... yes > > checking for vendor... not found > > checking for vendor kernel... not supported > > checking for debugging... no > > checking for directory with kernel build tree... > /usr/src/kernels/2.6.32-220.7.1.el6.x86_64 > > checking for kernel version... 2.6.32-220.7.1.el6.x86_64 > > checking for directory with kernel sources... > /usr/src/kernels/2.6.32-220.7.1.el6.x86_64 > > checking for kernel source version... 2.6.32-220.7.1.el6.x86_64 > > checking for struct delayed_work in workqueue.h... yes > > checking for uninitialized_var() in compiler-gcc4.h... yes > > checking for zero_user_page() in highmem.h... no > > checking for do_sync_mapping_range() in fs.h... yes > > checking for fault() in struct vm_operations_struct in mm.h... yes > > checking for f_path in fs.h... yes > > checking for enum umh_wait in kmod.h... yes > > checking for inc_nlink() in fs.h... yes > > checking for drop_nlink() in fs.h... yes > > checking for kmem_cache_create() with dtor arg in slab.h... no > > checking for kmem_cache_zalloc in slab.h... yes > > checking for flag FS_RENAME_DOES_D_MOVE in fs.h... yes > > checking for enum FS_OCFS2 in sysctl.h... yes > > checking for configfs_depend_item() in configfs.h... yes > > checking for register_sysctl() with two args in sysctl.h... no > > checking for su_mutex in struct configfs_subsystem in configfs.h... yes > > checking for struct subsystem in kobject.h... no > > checking for is_owner_or_cap() in fs.h... yes > > checking for fallocate() in fs.h... yes > > checking for struct splice_desc in splice.h... yes > > checking for MNT_RELATIME in mount.h... yes > > checking for should_remove_suid() in fs.h... no > > checking for generic_segment_checks() in fs.h... no > > checking for s_op declared as const in struct super_block in fs.h... yes > > checking for i_op declared as const in struct inode in fs.h... yes > > checking for f_op declared as const in struct file in fs.h... yes > > checking for a_ops declared as const in struct address_space in fs.h... yes > > checking for aio_read() in struct file_operations using iovec in fs.h... yes > > checking for __splice_from_pipe() in splice.h... yes > > checking for old bio_end_io_t in bio.h... no > > checking for b_size is u32 struct buffer_head in buffer_head.h... no > > checking for exportfs.h... yes > > checking for linux/lockdep.h... yes > > checking for mandatory_lock() in fs.h... yes > > checking for range prefix in struct writeback_control... yes > > checking for SYNC_FILE_RANGE flags... yes > > checking for blkcnt_t in types.h... yes > > checking for i_private in struct inode... yes > > checking for page_mkwrite in struct vm_operations_struct... no > > checking for get_sb_bdev() with 5 arguments in fs.h... no > > checking for read_mapping_page in pagemap.h... yes > > checking for ino_t in filldir_t in fs.h... no > > checking for invalidatepage returning int in fs.h... no > > checking for get_blocks_t type... no > > checking for linux/uaccess.h... yes > > checking for system_utsname in utsname.h... no > > checking for MS_LOOP_NO_AOPS flag defined... no > > checking for fops->sendfile() in fs.h... no > > checking for task_pid_nr in sched.h... yes > > checking for confirm() in struct pipe_buf_operations in pipe_fs_i.h... yes > > checking for mutex_lock_nested() in mutex.h... yes > > checking for inode_double_lock) in fs.h... no > > checking for splice_read() in fs.h... yes > > checking for sops->statfs takes struct super_block * in fs.h... no > > checking for le16_add_cpu() in byteorder/generic.h... yes > > checking for le32_add_cpu() in byteorder/generic.h... yes > > checking for le64_add_cpu() in byteorder/generic.h... yes > > checking for be32_add_cpu() in byteorder/generic.h... yes > > checking for clear_nlink() in fs.h... yes > > configure: creating ./config.status > > config.status: creating Config.make > > config.status: creating vendor/rhel5/ocfs2.spec-generic > > config.status: creating vendor/suse-kmp/ocfs2.spec-generic > > [root at noc-1-m77 ocfs2-1.4.7]# make > > make: Warning: File `Versioning.make' has modification time 8.1e+07 s in > the future > > make -C fs > > make[1]: Entering directory `/root/ocfs2-1.4.7/fs' > > make[1]: Warning: File `../Versioning.make' has modification time > 8.1e+07 s in the future > > make -C ocfs2 stamp-md5 > > make[2]: Entering directory `/root/ocfs2-1.4.7/fs/ocfs2' > > make[2]: Warning: File `../../Versioning.make' has modification time > 8.1e+07 s in the future > > make[2]: warning: Clock skew detected. Your build may be incomplete. > > make[2]: Leaving directory `/root/ocfs2-1.4.7/fs/ocfs2' > > make -C ocfs2/cluster stamp-md5 > > make[2]: Entering directory `/root/ocfs2-1.4.7/fs/ocfs2/cluster' > > make[2]: Warning: File `../../../Versioning.make' has modification time > 8.1e+07 s in the future > > make[2]: warning: Clock skew detected. Your build may be incomplete. > > make[2]: Leaving directory `/root/ocfs2-1.4.7/fs/ocfs2/cluster' > > make -C ocfs2/dlm stamp-md5 > > make[2]: Entering directory `/root/ocfs2-1.4.7/fs/ocfs2/dlm' > > make[2]: Warning: File `../../../Versioning.make' has modification time > 8.1e+07 s in the future > > make[2]: warning: Clock skew detected. Your build may be incomplete. > > make[2]: Leaving directory `/root/ocfs2-1.4.7/fs/ocfs2/dlm' > > make -C /usr/src/kernels/2.6.32-220.7.1.el6.x86_64 > M=/root/ocfs2-1.4.7/fs modules > > make[2]: Entering directory `/usr/src/kernels/2.6.32-220.7.1.el6.x86_64' > > make[2]: Warning: File > `/usr/src/kernels/2.6.32-220.7.1.el6.x86_64/arch/x86/Makefile' has > modification time 2.1e+08 s in the future > > make[3]: Warning: File `scripts/Makefile.lib' has modification time > 1.4e+08 s in the future > > make[4]: Warning: File `scripts/Makefile.lib' has modification time > 1.4e+08 s in the future > > CC [M] /root/ocfs2-1.4.7/fs/ocfs2/compat_should_remove_suid.o > > CC [M] /root/ocfs2-1.4.7/fs/ocfs2/compat_generic_segment_checks.o > > CC [M] /root/ocfs2-1.4.7/fs/ocfs2/alloc.o > > CC [M] /root/ocfs2-1.4.7/fs/ocfs2/aops.o > > /root/ocfs2-1.4.7/fs/ocfs2/aops.c: In function ???ocfs2_direct_IO???: > > /root/ocfs2-1.4.7/fs/ocfs2/aops.c:721: warning: passing argument 9 of > ???blockdev_direct_IO_no_locking??? from incompatible pointer type > > include/linux/fs.h:2364: note: expected ???void (*)(struct kiocb *, > loff_t, ssize_t, void *, int, bool)??? but argument is of type ???void > (*)(struct kiocb *, loff_t, ssize_t, void *)??? > > CC [M] /root/ocfs2-1.4.7/fs/ocfs2/buffer_head_io.o > > CC [M] /root/ocfs2-1.4.7/fs/ocfs2/dcache.o > > CC [M] /root/ocfs2-1.4.7/fs/ocfs2/dir.o > > /root/ocfs2-1.4.7/fs/ocfs2/dir.c: In function ???ocfs2_readdir???: > > /root/ocfs2-1.4.7/fs/ocfs2/dir.c:865: warning: passing argument 2 of > ???ocfs2_dir_foreach_blk??? from incompatible pointer type > > /root/ocfs2-1.4.7/fs/ocfs2/dir.c:800: note: expected ???long unsigned > int *??? but argument is of type ???u64 *??? > > CC [M] /root/ocfs2-1.4.7/fs/ocfs2/dlmglue.o > > CC [M] /root/ocfs2-1.4.7/fs/ocfs2/export.o > > /root/ocfs2-1.4.7/fs/ocfs2/export.c: In function ???ocfs2_get_dentry???: > > /root/ocfs2-1.4.7/fs/ocfs2/export.c:139: error: implicit declaration of > function ???d_alloc_anon??? > > /root/ocfs2-1.4.7/fs/ocfs2/export.c:139: warning: assignment makes > pointer from integer without a cast > > /root/ocfs2-1.4.7/fs/ocfs2/export.c: In function ???ocfs2_get_parent???: > > /root/ocfs2-1.4.7/fs/ocfs2/export.c:189: warning: assignment makes > pointer from integer without a cast > > /root/ocfs2-1.4.7/fs/ocfs2/export.c: In function ???ocfs2_decode_fh???: > > /root/ocfs2-1.4.7/fs/ocfs2/export.c:302: error: ???struct > export_operations??? has no member named ???find_exported_dentry??? > > /root/ocfs2-1.4.7/fs/ocfs2/export.c: At top level: > > /root/ocfs2-1.4.7/fs/ocfs2/export.c:311: error: unknown field > ???decode_fh??? specified in initializer > > /root/ocfs2-1.4.7/fs/ocfs2/export.c:311: warning: initialization from > incompatible pointer type > > /root/ocfs2-1.4.7/fs/ocfs2/export.c:315: error: unknown field > ???get_dentry??? specified in initializer > > /root/ocfs2-1.4.7/fs/ocfs2/export.c:315: warning: initialization from > incompatible pointer type > > make[4]: *** [/root/ocfs2-1.4.7/fs/ocfs2/export.o] Error 1 > > make[3]: *** [/root/ocfs2-1.4.7/fs/ocfs2] Error 2 > > make[2]: *** [_module_/root/ocfs2-1.4.7/fs] Error 2 > > make[2]: Leaving directory `/usr/src/kernels/2.6.32-220.7.1.el6.x86_64' > > make[1]: *** [build-modules] Error 2 > > make[1]: Leaving directory `/root/ocfs2-1.4.7/fs' > > make: *** [fs] Error 2 > > How do I fix this? > > > > _______________________________________________ > Ocfs2-users mailing list > Ocfs2-users at oss.oracle.com > http://oss.oracle.com/mailman/listinfo/ocfs2-users