Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Compile error on SUSE 11 SP2 #303

Open
zhanghaiyang9999 opened this issue Mar 22, 2024 · 0 comments
Open

Compile error on SUSE 11 SP2 #303

zhanghaiyang9999 opened this issue Mar 22, 2024 · 0 comments

Comments

@zhanghaiyang9999
Copy link

the compile error are:

make -C src clean
make[1]: Entering directory /root/test/elastio-snap/src' make -C /lib/modules/3.0.76-0.11-default/build M=/root/test/elastio-snap/src clean make[2]: Entering directory /usr/src/linux-3.0.76-0.11-obj/x86_64/default'
make -C ../../../linux-3.0.76-0.11 O=/usr/src/linux-3.0.76-0.11-obj/x86_64/default/. clean
CLEAN /root/test/elastio-snap/src/.tmp_versions
make[2]: Leaving directory /usr/src/linux-3.0.76-0.11-obj/x86_64/default' rm -f kernel-config.h rm -f -r configure-tests/feature-tests/build make[1]: Leaving directory /root/test/elastio-snap/src'
make -C lib clean
make[1]: Entering directory /root/test/elastio-snap/lib' rm -f *.a *.o *.so* make[1]: Leaving directory /root/test/elastio-snap/lib'
make -C app clean
make[1]: Entering directory /root/test/elastio-snap/app' rm -f elioctl make[1]: Leaving directory /root/test/elastio-snap/app'
make -C utils clean
make[1]: Entering directory /root/test/elastio-snap/utils' rm -f nl_debug rm -f update-img make[1]: Leaving directory /root/test/elastio-snap/utils'
/root/test/elastio-snap/src/genconfig.sh "3.0.76-0.11-default"
sed: invalid option -- 'E'
Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...

-n, --quiet, --silent
suppress automatic printing of pattern space
-e script, --expression=script
add the script to the commands to be executed
-f script-file, --file=script-file
add the contents of script-file to the commands to be executed
--follow-symlinks
follow symlinks when processing in place
-i[SUFFIX], --in-place[=SUFFIX]
edit files in place (makes backup if extension supplied)
-l N, --line-length=N
specify the desired line-wrap length for the `l' command
--posix
disable all GNU extensions.
-r, --regexp-extended
use extended regular expressions in the script.
-s, --separate
consider files as separate rather than as a single continuous
long stream.
-u, --unbuffered
load minimal amounts of data from the input files and flush
the output buffers more often
--help display this help and exit
--version output version information and exit

If no -e, --expression, -f, or --file option is given, then the first
non-option argument is taken as the sed script to interpret. All
remaining arguments are names of input files; if no input files are
specified, then the standard input is read.

E-mail bug reports to: [email protected] .
Be sure to include the word sed'' somewhere in the Subject:'' field.
generating configurations for kernel-3.0.76-0.11-default
performing configure test: HAVE_ADD_DISK_INT - not present
performing configure test: HAVE_BD_HAS_SUBMIT_BIO - not present
performing configure test: HAVE___DENTRY_PATH - not present
performing configure test: HAVE_ALLOC_DISK - present
performing configure test: HAVE_BDEV_IS_PARTITION - not present
performing configure test: HAVE_BDEV_NR_SECTORS - not present
performing configure test: HAVE_BD_SUPER - present
performing configure test: HAVE_BDEV_STACK_LIMITS - present
performing configure test: HAVE_BDOPS_OPEN_INODE - not present
performing configure test: HAVE_BDEVNAME - present
performing configure test: HAVE_BDOPS_SUBMIT_BIO - not present
performing configure test: HAVE_BDOPS_OPEN_INT - present
performing configure test: HAVE_BDOPS_SUBMIT_BIO_UINT - not present
performing configure test: HAVE_BIO_ALLOC_BIOSET_5 - not present
performing configure test: HAVE_BIO_ALLOC_2 - present
performing configure test: HAVE_BIO_BI_BDEV - present
performing configure test: HAVE_BIO_BI_BDEV_BD_DISK - present
performing configure test: HAVE_BIO_BI_POOL - not present
performing configure test: HAVE_BIO_BI_REMAINING - not present
performing configure test: HAVE_BIO_COPY_DEV - not present
performing configure test: HAVE_BIO_ENDIO_1 - not present
performing configure test: HAVE_BIO_ENDIO_INT - not present
performing configure test: HAVE_BIO_FREE_PAGES - not present
performing configure test: HAVE_BIO_REMAPPED - not present
performing configure test: HAVE_BIO_SET_DEV - not present
performing configure test: HAVE_BIO_LIST - present
performing configure test: HAVE_BIO_SET_OP_ATTRS - not present
performing configure test: HAVE_BIO_SPLIT_4 - not present
performing configure test: HAVE_BIO_THROTTLED - not present
performing configure test: HAVE_BIOSET_CREATE_3 - not present
performing configure test: HAVE_BIOSET_INIT - not present
performing configure test: HAVE_BIOSET_NEED_BVECS_FLAG - not present
performing configure test: HAVE_BLK_ALLOC_QUEUE_MK_REQ_FN_NODE_ID - not present
performing configure test: HAVE_BLK_MQ_MAKE_REQUEST - not present
performing configure test: HAVE_BLK_ALLOC_QUEUE_GFP_T - present
performing configure test: HAVE_BLK_MQ_SUBMIT_BIO - not present
performing configure test: HAVE_BLK_STATUS_T - not present
performing configure test: HAVE_BLK_SET_STACKING_LIMITS - present
performing configure test: HAVE_BLKDEV_PUT_1 - not present
performing configure test: HAVE_BLKDEV_GET_BY_PATH - present
performing configure test: HAVE_BVEC_ITER - not present
performing configure test: HAVE_BVEC_ITER_ALL - not present
performing configure test: HAVE_BVEC_MERGE_DATA - present
performing configure test: HAVE_COMPOUND_HEAD - present
performing configure test: HAVE_D_UNLINKED - present
performing configure test: HAVE_DENTRY_PATH_RAW - present
performing configure test: HAVE_DISK_LIVE - not present
performing configure test: HAVE_ENUM_REQ_OP - not present
performing configure test: HAVE_ENUM_REQ_OPF - not present
performing configure test: HAVE_FILE_INODE - not present
performing configure test: HAVE_FMODE_T - present
performing configure test: HAVE_FREEZE_SUPER - present
performing configure test: HAVE_FOPS_FALLOCATE - present
performing configure test: HAVE_GENERIC_MAKE_REQUEST - present
performing configure test: HAVE_GENHD_FL_NO_PART - not present
performing configure test: HAVE_INODE_LOCK - not present
performing configure test: HAVE_GENHD_FL_NO_PART_SCAN - not present
performing configure test: HAVE_IOPS_FALLOCATE - not present
performing configure test: HAVE_KERNEL_READ_PPOS - not present
performing configure test: HAVE_KERNEL_WRITE_PPOS - not present
performing configure test: HAVE_KERN_PATH - present
performing configure test: HAVE_LOCKS_VERIFY_TRUNCATE - not present
performing configure test: HAVE_MAKE_REQUEST_FN_VOID - not present
performing configure test: HAVE_MAKE_REQUEST_FN_IN_QUEUE - present
performing configure test: HAVE_MAKE_REQUEST_FN_INT - present
performing configure test: HAVE_MERGE_BVEC_FN - present
performing configure test: HAVE_MMAP_WRITE_LOCK - not present
performing configure test: HAVE_MNT_WANT_WRITE - present
performing configure test: HAVE_NOOP_LLSEEK - present
performing configure test: HAVE_NOTIFY_CHANGE_3 - not present
performing configure test: HAVE_NOTIFY_CHANGE_2 - present
performing configure test: HAVE_NOTIFY_CHANGE_4_USER_NAMESPACE - not present
performing configure test: HAVE_PART_NR_SECTS_READ - not present
performing configure test: HAVE_PATH_PUT - present
performing configure test: HAVE_PROC_CREATE_FN_FILE_OPERATIONS - present
performing configure test: HAVE_PROC_CREATE_FN_PROC_OPS - not present
performing configure test: HAVE_SB_START_WRITE - not present
performing configure test: HAVE_SI_MEM_AVAILABLE - not present
performing configure test: HAVE_SUBMIT_BIO_1 - not present
performing configure test: HAVE_SUBMIT_BIO_WAIT - not present
performing configure test: HAVE_STRUCT_PATH - present
performing configure test: HAVE_SYS_OLDUMOUNT - not present
performing configure test: HAVE_TASK_STRUCT_STATE - not present
performing configure test: HAVE_TASK_STRUCT_TASK_WORKS_CB_HEAD - not present
performing configure test: HAVE_TASK_STRUCT_TASK_WORKS_HLIST - not present
performing configure test: HAVE_UAPI_MOUNT_H - not present
performing configure test: HAVE_THAW_BDEV_INT - present
performing configure test: HAVE_USER_PATH_AT - present
performing configure test: HAVE_VFS_FALLOCATE - not present
performing configure test: HAVE_UUID_H - present
performing configure test: HAVE_VFS_UNLINK_3 - not present
performing configure test: HAVE_VFS_UNLINK_2 - present
performing configure test: HAVE_VFS_UNLINK_4_USER_NAMESPACE - not present
performing configure test: HAVE_WRITE_ZEROES - not present
performing configure test: HAVE_VZALLOC - present
performing sys_mount lookup
performing sys_umount lookup
performing __x64_sys_mount lookup
performing __x64_sys_umount lookup
performing __arm64_sys_mount lookup
performing __arm64_sys_umount lookup
performing __change_memory_common lookup
performing sys_oldumount lookup
performing sys_call_table lookup
performing kfree lookup
performing blk_mq_submit_bio lookup
performing blk_alloc_queue lookup
performing get_super lookup
performing vm_area_alloc lookup
performing vm_area_free lookup
performing insert_vm_struct lookup
performing vm_area_cachep lookup
checking CONFIG_ARM64_PAGE_SHIFT
make -C src
make[1]: Entering directory /root/test/elastio-snap/src' if [ ! -f kernel-config.h ] || tail -1 kernel-config.h | grep -qv '#endif'; then ./genconfig.sh "3.0.76-0.11-default"; fi; make -C /lib/modules/3.0.76-0.11-default/build M=/root/test/elastio-snap/src modules make[2]: Entering directory /usr/src/linux-3.0.76-0.11-obj/x86_64/default'
make -C ../../../linux-3.0.76-0.11 O=/usr/src/linux-3.0.76-0.11-obj/x86_64/default/. modules
CC [M] /root/test/elastio-snap/src/main.o
/root/test/elastio-snap/src/main.c: In function ‘bio_free_pages’:
/root/test/elastio-snap/src/main.c:812: error: implicit declaration of function ‘bio_for_each_segment_all’
/root/test/elastio-snap/src/main.c:812: error: expected ‘;’ before ‘{’ token
/root/test/elastio-snap/src/main.c:803: warning: unused variable ‘bv_page’
/root/test/elastio-snap/src/main.c: In function ‘file_read_block’:
/root/test/elastio-snap/src/main.c:1940: error: expected ‘;’ before ‘{’ token
/root/test/elastio-snap/src/main.c: In function ‘file_truncate’:
/root/test/elastio-snap/src/main.c:2110: error: implicit declaration of function ‘vfs_truncate’
/root/test/elastio-snap/src/main.c: In function ‘elastio_snap_get_cow_file_extents’:
/root/test/elastio-snap/src/main.c:2735: error: ‘struct file’ has no member named ‘f_inode’
/root/test/elastio-snap/src/main.c:2736: error: ‘struct file’ has no member named ‘f_inode’
/root/test/elastio-snap/src/main.c:2748: error: ‘struct file’ has no member named ‘f_inode’
/root/test/elastio-snap/src/main.c:2778: error: implicit declaration of function ‘vm_munmap’
/root/test/elastio-snap/src/main.c: In function ‘cow_reopen’:
/root/test/elastio-snap/src/main.c:2813: error: ‘struct file’ has no member named ‘f_inode’
/root/test/elastio-snap/src/main.c: In function ‘cow_reload’:
/root/test/elastio-snap/src/main.c:2856: error: ‘struct file’ has no member named ‘f_inode’
/root/test/elastio-snap/src/main.c: In function ‘cow_init’:
/root/test/elastio-snap/src/main.c:2974: error: ‘struct file’ has no member named ‘f_inode’
/root/test/elastio-snap/src/main.c: In function ‘snap_handle_read_bio’:
/root/test/elastio-snap/src/main.c:3696: error: expected ‘;’ before ‘{’ token
/root/test/elastio-snap/src/main.c:3642: warning: unused variable ‘bvec_off’
/root/test/elastio-snap/src/main.c:3642: warning: unused variable ‘block_off’
/root/test/elastio-snap/src/main.c:3642: warning: unused variable ‘bytes_to_copy’
/root/test/elastio-snap/src/main.c:3642: warning: unused variable ‘block_mapping’
/root/test/elastio-snap/src/main.c:3640: warning: unused variable ‘cur_block’
/root/test/elastio-snap/src/main.c:3639: warning: unused variable ‘data’
/root/test/elastio-snap/src/main.c: In function ‘snap_handle_write_bio’:
/root/test/elastio-snap/src/main.c:3784: error: expected ‘;’ before ‘{’ token
/root/test/elastio-snap/src/main.c:3810: warning: label ‘error’ defined but not used
/root/test/elastio-snap/src/main.c:3762: warning: unused variable ‘end_block’
/root/test/elastio-snap/src/main.c:3762: warning: unused variable ‘start_block’
/root/test/elastio-snap/src/main.c:3761: warning: unused variable ‘data’
/root/test/elastio-snap/src/main.c: In function ‘tracing_mrf’:
/root/test/elastio-snap/src/main.c:4374: error: void value not ignored as it ought to be
make[5]: *** [/root/test/elastio-snap/src/main.o] Error 1
make[4]: *** [module/root/test/elastio-snap/src] Error 2
make[3]: *** [sub-make] Error 2
make[2]: *** [all] Error 2
make[2]: Leaving directory /usr/src/linux-3.0.76-0.11-obj/x86_64/default' make[1]: *** [default] Error 2 make[1]: Leaving directory /root/test/elastio-snap/src'
make: *** [driver] Error 2

The OS information and kernel version are:

lsb_release -a
LSB Version: core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64:desktop-4.0-amd64:desktop-4.0-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.2-amd64:graphics-3.2-noarch:graphics-4.0-amd64:graphics-4.0-noarch
Distributor ID: SUSE LINUX
Description: SUSE Linux Enterprise Server 11 (x86_64)
Release: 11
Codename: n/a

uname -r
3.0.76-0.11-default

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant