kernel-strider icon indicating copy to clipboard operation
kernel-strider copied to clipboard

The plugin handling FS operations fails to build on OpenSUSE 12.1 x64

Open euspectre opened this issue 10 years ago • 1 comments

Original issue 1 created by euspectre on 2012-10-27T16:29:01.000Z:

What steps will reproduce the problem?

  1. Configure KEDR COI with '-DKEDR_INSTALL_DIR=/usr/local', build and install it (other parameters are left at their defaults).
  2. Configure KernelStrider with '-DKEDR_COI_INSTALL_DIR=/usr/local', other parameters - by default.
  3. Execute 'make' for KernelStrider.

What is the expected output? What do you see instead?

The build process fails when the plugin handling file system operations is being built. The relevant portion of the build log is attached.

Versions: KEDR COI: rev. bf0a27c56e8a from its main repository (the newest as of today). KernelStrider: rev. f3eb56a19a42 from its main repository (the newest as of today).

OS: OpenSUSE 12.1 x64.

euspectre avatar Apr 05 '15 13:04 euspectre

Here is the log that got lost during the migration from GoogleCode: In file included from ~/temp/build/plugins/file_system/fs_interception.h:19:0,
from ~/temp/build/plugins/file_system/fs_interception.c:42: /usr/local/include/kedr-coi/interceptors/file_operations_interceptor.h:55:5: warning: ‘struct kedr_coi_factory_intermediate’ declared inside parameter list [enabled by default] /usr/local/include/kedr-coi/interceptors/file_operations_interceptor.h:55:5: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] /usr/local/include/kedr-coi/interceptors/file_operations_interceptor.h:61:5: warning: ‘struct kedr_coi_creation_intermediate’ declared inside parameter list [enabled by default] In file included from ~/temp/build/plugins/file_system/plugin.c:29:0: /usr/local/include/kedr-coi/interceptors/file_operations_interceptor.h:55:5: warning: ‘struct kedr_coi_factory_intermediate’ declared inside parameter list [enabled by default] /usr/local/include/kedr-coi/interceptors/file_operations_interceptor.h:55:5: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] /usr/local/include/kedr-coi/interceptors/file_operations_interceptor.h:61:5: warning: ‘struct kedr_coi_creation_intermediate’ declared inside parameter list [enabled by default] In file included from ~/temp/build/plugins/file_system/fs_interception.h:20:0, from ~/temp/build/plugins/file_system/fs_interception.c:42: /usr/local/include/kedr-coi/interceptors/inode_file_operations_interceptor.h:33:9: warning: ‘struct kedr_coi_factory_intermediate’ declared inside parameter list [enabled by default] In file included from ~/temp/build/plugins/file_system/fs_interception.h:22:0, from ~/temp/build/plugins/file_system/fs_interception.c:42: /usr/local/include/kedr-coi/interceptors/super_operations_interceptor.h:59:5: warning: ‘struct kedr_coi_factory_intermediate’ declared inside parameter list [enabled by default] /usr/local/include/kedr-coi/interceptors/super_operations_interceptor.h:65:5: warning: ‘struct kedr_coi_creation_intermediate’ declared inside parameter list [enabled by default] In file included from ~/temp/build/plugins/file_system/fs_interception.h:23:0, from ~/temp/build/plugins/file_system/fs_interception.c:42: /usr/local/include/kedr-coi/interceptors/inode_operations_interceptor.h:49:5: warning: ‘struct kedr_coi_factory_intermediate’ declared inside parameter list [enabled by default] /usr/local/include/kedr-coi/interceptors/inode_operations_interceptor.h:55:5: warning: ‘struct kedr_coi_creation_intermediate’ declared inside parameter list [enabled by default] In file included from ~/temp/build/plugins/file_system/fs_interception.h:24:0, from ~/temp/build/plugins/file_system/fs_interception.c:42: /usr/local/include/kedr-coi/interceptors/dentry_operations_interceptor.h:59:5: warning: ‘struct kedr_coi_factory_intermediate’ declared inside parameter list [enabled by default] /usr/local/include/kedr-coi/interceptors/dentry_operations_interceptor.h:65:5: warning: ‘struct kedr_coi_creation_intermediate’ declared inside parameter list [enabled by default] In file included from ~/temp/build/plugins/file_system/file_operations_model.c:52:0: /usr/local/include/kedr-coi/interceptors/file_operations_interceptor.h:55:5: warning: ‘struct kedr_coi_factory_intermediate’ declared inside parameter list [enabled by default] /usr/local/include/kedr-coi/interceptors/file_operations_interceptor.h:55:5: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] /usr/local/include/kedr-coi/interceptors/file_operations_interceptor.h:61:5: warning: ‘struct kedr_coi_creation_intermediate’ declared inside parameter list [enabled by default] ~/temp/build/plugins/file_system/fs_interception.c: In function ‘fs_interception_init’: ~/temp/build/plugins/file_system/fs_interception.c:481:9: warning: passing argument 1 of ‘inode_file_operations_interceptor_init’ from incompatible pointer type [enabled by default] In file included from ~/temp/build/plugins/file_system/plugin.c:34:0: ~/temp/build/plugins/file_system/inode_operations_model.h: In function ‘INODE_MODEL_STATE_PRE_ALLOCATED’: ~/temp/build/plugins/file_system/inode_operations_model.h:22:29: error: ‘struct inode’ has no member named ‘i_list’ In file included from ~/temp/build/plugins/file_system/file_operations_model.c:57:0: ~/temp/build/plugins/file_system/inode_operations_model.h: In function ‘INODE_MODEL_STATE_PRE_ALLOCATED’: ~/temp/build/plugins/file_system/inode_operations_model.h:22:29: error: ‘struct inode’ has no member named ‘i_list’ /usr/local/include/kedr-coi/interceptors/inode_file_operations_interceptor.h:28:12: note: expected ‘struct kedr_coi_factory_interceptor * ()(const char *, size_t, const struct kedr_coi_factory_intermediate *, void ()(void ))’ but argument is of type ‘struct kedr_coi_factory_interceptor * ()(const char , size_t, const struct kedr_coi_factory_intermediate *, void ()(void ))’ In file included from ~/temp/kernel-strider/sources/plugins/file_system/miscdev_file_operations_interceptor.h:6:0, from ~/temp/build/plugins/file_system/file_operations_model.c:60: ~/temp/build/plugins/file_system/miscdev_file_operations_interceptor_internal.h: At top level: ~/temp/build/plugins/file_system/miscdev_file_operations_interceptor_internal.h:82:9: warning: ‘struct kedr_coi_factory_intermediate’ declared inside parameter list [enabled by default] In file included from ~/temp/build/plugins/file_system/file_operations_model.c:60:0: ~/temp/kernel-strider/sources/plugins/file_system/miscdev_file_operations_interceptor.h:32:9: warning: ‘struct kedr_coi_factory_intermediate’ declared inside parameter list [enabled by default] ~/temp/kernel-strider/sources/plugins/file_system/miscdev_file_operations_interceptor.h: In function ‘miscdev_file_operations_interceptor_init’: ~/temp/kernel-strider/sources/plugins/file_system/miscdev_file_operations_interceptor.h:36:9: warning: passing argument 1 of ‘miscdev_file_operations_interceptor_internal_init’ from incompatible pointer type [enabled by default] ~/temp/build/plugins/file_system/miscdev_file_operations_interceptor_internal.h:77:12: note: expected ‘struct kedr_coi_factory_interceptor * ()(const char , size_t, const struct kedr_coi_factory_intermediate *, void ()(void ))’ but argument is of type ‘struct kedr_coi_factory_interceptor * ()(const char , size_t, const struct kedr_coi_factory_intermediate *, void ()(void ))’ In file included from ~/temp/kernel-strider/sources/plugins/file_system/vma_operations_interceptor.h:13:0, from ~/temp/build/plugins/file_system/plugin.c:39: ~/temp/build/plugins/file_system/vma_operations_interceptor_internal.h: At top level: ~/temp/build/plugins/file_system/vma_operations_interceptor_internal.h:30:5: warning: ‘struct kedr_coi_factory_intermediate’ declared inside parameter list [enabled by default] ~/temp/build/plugins/file_system/vma_operations_interceptor_internal.h:36:5: warning: ‘struct kedr_coi_creation_intermediate’ declared inside parameter list [enabled by default] In file included from ~/temp/build/plugins/file_system/fs_interception.h:20:0, from ~/temp/build/plugins/file_system/plugin.c:43: /usr/local/include/kedr-coi/interceptors/inode_file_operations_interceptor.h:33:9: warning: ‘struct kedr_coi_factory_intermediate’ declared inside parameter list [enabled by default] In file included from ~/temp/build/plugins/file_system/fs_interception.h:22:0, from ~/temp/build/plugins/file_system/plugin.c:43: /usr/local/include/kedr-coi/interceptors/super_operations_interceptor.h:59:5: warning: ‘struct kedr_coi_factory_intermediate’ declared inside parameter list [enabled by default] /usr/local/include/kedr-coi/interceptors/super_operations_interceptor.h:65:5: warning: ‘struct kedr_coi_creation_intermediate’ declared inside parameter list [enabled by default] In file included from ~/temp/build/plugins/file_system/fs_interception.h:23:0, from ~/temp/build/plugins/file_system/plugin.c:43: /usr/local/include/kedr-coi/interceptors/inode_operations_interceptor.h:49:5: warning: ‘struct kedr_coi_factory_intermediate’ declared inside parameter list [enabled by default] /usr/local/include/kedr-coi/interceptors/inode_operations_interceptor.h:55:5: warning: ‘struct kedr_coi_creation_intermediate’ declared inside parameter list [enabled by default] In file included from ~/temp/build/plugins/file_system/fs_interception.h:24:0, from ~/temp/build/plugins/file_system/plugin.c:43: /usr/local/include/kedr-coi/interceptors/dentry_operations_interceptor.h:59:5: warning: ‘struct kedr_coi_factory_intermediate’ declared inside parameter list [enabled by default] /usr/local/include/kedr-coi/interceptors/dentry_operations_interceptor.h:65:5: warning: ‘struct kedr_coi_creation_intermediate’ declared inside parameter list [enabled by default] In file included from ~/temp/build/plugins/file_system/plugin.c:45:0: ~/temp/build/plugins/file_system/cdev_file_operations_interceptor.h:34:9: warning: ‘struct kedr_coi_factory_intermediate’ declared inside parameter list [enabled by default] In file included from ~/temp/kernel-strider/sources/plugins/file_system/miscdev_file_operations_interceptor.h:6:0, from ~/temp/build/plugins/file_system/plugin.c:46: ~/temp/build/plugins/file_system/miscdev_file_operations_interceptor_internal.h:82:9: warning: ‘struct kedr_coi_factory_intermediate’ declared inside parameter list [enabled by default] In file included from ~/temp/build/plugins/file_system/plugin.c:46:0: ~/temp/kernel-strider/sources/plugins/file_system/miscdev_file_operations_interceptor.h:32:9: warning: ‘struct kedr_coi_factory_intermediate’ declared inside parameter list [enabled by default] ~/temp/kernel-strider/sources/plugins/file_system/miscdev_file_operations_interceptor.h: In function ‘miscdev_file_operations_interceptor_init’: ~/temp/kernel-strider/sources/plugins/file_system/miscdev_file_operations_interceptor.h:36:9: warning: passing argument 1 of ‘miscdev_file_operations_interceptor_internal_init’ from incompatible pointer type [enabled by default] ~/temp/build/plugins/file_system/miscdev_file_operations_interceptor_internal.h:77:12: note: expected ‘struct kedr_coi_factory_interceptor * ()(const char , size_t, const struct kedr_coi_factory_intermediate *, void ()(void ))’ but argument is of type ‘struct kedr_coi_factory_interceptor * ()(const char , size_t, const struct kedr_coi_factory_intermediate *, void ()(void ))’ ~/temp/build/plugins/file_system/plugin.c: In function ‘get_sb_nodev_repl’: ~/temp/build/plugins/file_system/plugin.c:127:5: error: implicit declaration of function ‘get_sb_nodev’ [-Werror=implicit-function-declaration] ~/temp/build/plugins/file_system/plugin.c: In function ‘get_sb_bdev_repl’: ~/temp/build/plugins/file_system/plugin.c:146:5: error: implicit declaration of function ‘get_sb_bdev’ [-Werror=implicit-function-declaration] ~/temp/build/plugins/file_system/plugin.c: In function ‘get_sb_single_repl’: ~/temp/build/plugins/file_system/plugin.c:165:5: error: implicit declaration of function ‘get_sb_single’ [-Werror=implicit-function-declaration] ~/temp/build/plugins/file_system/plugin.c: At top level: ~/temp/build/plugins/file_system/plugin.c:269:2: error: ‘get_sb_nodev’ undeclared here (not in a function) ~/temp/build/plugins/file_system/plugin.c:270:2: error: ‘get_sb_bdev’ undeclared here (not in a function) ~/temp/build/plugins/file_system/plugin.c:271:2: error: ‘get_sb_single’ undeclared here (not in a function) make[6]: ** [~/temp/build/plugins/file_system/file_operations_model.o] Error 1 make[6]: *** Waiting for unfinished jobs.... ~/temp/build/plugins/file_system/plugin.c: In function ‘cdev_file_operations_interceptor_init_function’: ~/temp/build/plugins/file_system/plugin.c:356:3: warning: passing argument 1 of ‘cdev_file_operations_interceptor_init’ from incompatible pointer type [enabled by default] ~/temp/build/plugins/file_system/cdev_file_operations_interceptor.h:29:12: note: expected ‘struct kedr_coi_factory_interceptor * ()(const char *, size_t, const struct kedr_coi_factory_intermediate *, void ()(void ))’ but argument is of type ‘struct kedr_coi_factory_interceptor * ()(const char , size_t, const struct kedr_coi_factory_intermediate *, void ()(void ))’ ~/temp/build/plugins/file_system/plugin.c: In function ‘miscdev_file_operations_interceptor_init_function’: ~/temp/build/plugins/file_system/plugin.c:361:3: warning: passing argument 1 of ‘miscdev_file_operations_interceptor_init’ from incompatible pointer type [enabled by default] ~/temp/kernel-strider/sources/plugins/file_system/miscdev_file_operations_interceptor.h:27:19: note: expected ‘struct kedr_coi_factory_interceptor * ()(const char , size_t, const struct kedr_coi_factory_intermediate *, void ()(void ))’ but argument is of type ‘struct kedr_coi_factory_interceptor * ()(const char , size_t, const struct kedr_coi_factory_intermediate *, void ()(void *))’ cc1: some warnings being treated as errors

make[6]: *** [~/temp/build/plugins/file_system/plugin.o] Error 1 make[5]: *** [module/temp/build/plugins/file_system] Error 2

euspectre avatar Apr 05 '15 16:04 euspectre