tyton icon indicating copy to clipboard operation
tyton copied to clipboard

unable to compile with kernel 5.11.x

Open blshkv opened this issue 3 years ago • 0 comments

Hi, I'm using the latest git (20200604) and getting the following error:

make -j12 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' clean module 
make -C /lib/modules/5.11.10-pentoo/build M=/var/tmp/portage/app-antivirus/tyton-1.2_p20200604/work/tyton-5c19411e181111774c7e2aca2b5c3d6fa6b8fe2e clean
make -C ./notify clean
make -C /lib/modules/5.11.10-pentoo/build M=/var/tmp/portage/app-antivirus/tyton-1.2_p20200604/work/tyton-5c19411e181111774c7e2aca2b5c3d6fa6b8fe2e modules
make[1]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
make[1]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
make[1]: Entering directory '/var/tmp/portage/app-antivirus/tyton-1.2_p20200604/work/tyton-5c19411e181111774c7e2aca2b5c3d6fa6b8fe2e/notify'
make[1]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
make[1]: Entering directory '/usr/src/linux-5.11.10-pentoo'
make[1]: Entering directory '/usr/src/linux-5.11.10-pentoo'
Package libsystemd was not found in the pkg-config search path.
Perhaps you should add the directory containing `libsystemd.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libsystemd', required by 'virtual:world', not found
Package libsystemd-journal was not found in the pkg-config search path.
Perhaps you should add the directory containing `libsystemd-journal.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libsystemd-journal', required by 'virtual:world', not found
rm -f tyton-notify
make[1]: Leaving directory '/var/tmp/portage/app-antivirus/tyton-1.2_p20200604/work/tyton-5c19411e181111774c7e2aca2b5c3d6fa6b8fe2e/notify'
  CLEAN   /var/tmp/portage/app-antivirus/tyton-1.2_p20200604/work/tyton-5c19411e181111774c7e2aca2b5c3d6fa6b8fe2e/Module.symvers
make[1]: Leaving directory '/usr/src/linux-5.11.10-pentoo'
  CC [M]  /var/tmp/portage/app-antivirus/tyton-1.2_p20200604/work/tyton-5c19411e181111774c7e2aca2b5c3d6fa6b8fe2e/src/core.o
  CC [M]  /var/tmp/portage/app-antivirus/tyton-1.2_p20200604/work/tyton-5c19411e181111774c7e2aca2b5c3d6fa6b8fe2e/src/util.o
  CC [M]  /var/tmp/portage/app-antivirus/tyton-1.2_p20200604/work/tyton-5c19411e181111774c7e2aca2b5c3d6fa6b8fe2e/src/proc.o
  CC [M]  /var/tmp/portage/app-antivirus/tyton-1.2_p20200604/work/tyton-5c19411e181111774c7e2aca2b5c3d6fa6b8fe2e/src/module_list.o
  CC [M]  /var/tmp/portage/app-antivirus/tyton-1.2_p20200604/work/tyton-5c19411e181111774c7e2aca2b5c3d6fa6b8fe2e/src/syscall_hooks.o
  CC [M]  /var/tmp/portage/app-antivirus/tyton-1.2_p20200604/work/tyton-5c19411e181111774c7e2aca2b5c3d6fa6b8fe2e/src/network_hooks.o
  CC [M]  /var/tmp/portage/app-antivirus/tyton-1.2_p20200604/work/tyton-5c19411e181111774c7e2aca2b5c3d6fa6b8fe2e/src/netfilter_hooks.o
In file included from ./include/linux/rbtree.h:22,
                 from ./include/linux/mm_types.h:10,
                 from ./include/linux/mmzone.h:21,
                 from ./include/linux/gfp.h:6,
                 from ./include/linux/mm.h:10,
                 from ./include/linux/bvec.h:14,
                 from ./include/linux/skbuff.h:17,
                 from ./include/linux/netfilter.h:6,
                 from /var/tmp/portage/app-antivirus/tyton-1.2_p20200604/work/tyton-5c19411e181111774c7e2aca2b5c3d6fa6b8fe2e/src/netfilter_hooks.c:1:
/var/tmp/portage/app-antivirus/tyton-1.2_p20200604/work/tyton-5c19411e181111774c7e2aca2b5c3d6fa6b8fe2e/src/netfilter_hooks.c: In function ‘analyze_netfilter’:
/var/tmp/portage/app-antivirus/tyton-1.2_p20200604/work/tyton-5c19411e181111774c7e2aca2b5c3d6fa6b8fe2e/src/netfilter_hooks.c:10:48: error: ‘nf_hook_mutex’ undeclared (first use in this function); did you mean ‘nf_hook_entry’?
   10 |  rcu_dereference_protected(e, lockdep_is_held(&nf_hook_mutex))
      |                                                ^~~~~~~~~~~~~
./include/linux/rcupdate.h:339:52: note: in definition of macro ‘RCU_LOCKDEP_WARN’
  339 | #define RCU_LOCKDEP_WARN(c, s) do { } while (0 && (c))
      |                                                    ^
./include/linux/rcupdate.h:556:2: note: in expansion of macro ‘__rcu_dereference_protected’
  556 |  __rcu_dereference_protected((p), (c), __rcu)
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/tyton-1.2_p20200604/work/tyton-5c19411e181111774c7e2aca2b5c3d6fa6b8fe2e/src/netfilter_hooks.c:10:2: note: in expansion of macro ‘rcu_dereference_protected’
   10 |  rcu_dereference_protected(e, lockdep_is_held(&nf_hook_mutex))
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/tyton-1.2_p20200604/work/tyton-5c19411e181111774c7e2aca2b5c3d6fa6b8fe2e/src/netfilter_hooks.c:203:8: note: in expansion of macro ‘nf_entry_dereference’
  203 |    p = nf_entry_dereference(*pp);
      |        ^~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/tyton-1.2_p20200604/work/tyton-5c19411e181111774c7e2aca2b5c3d6fa6b8fe2e/src/netfilter_hooks.c:10:48: note: each undeclared identifier is reported only once for each function it appears in
   10 |  rcu_dereference_protected(e, lockdep_is_held(&nf_hook_mutex))
      |                                                ^~~~~~~~~~~~~
./include/linux/rcupdate.h:339:52: note: in definition of macro ‘RCU_LOCKDEP_WARN’
  339 | #define RCU_LOCKDEP_WARN(c, s) do { } while (0 && (c))
      |                                                    ^
./include/linux/rcupdate.h:556:2: note: in expansion of macro ‘__rcu_dereference_protected’
  556 |  __rcu_dereference_protected((p), (c), __rcu)
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/tyton-1.2_p20200604/work/tyton-5c19411e181111774c7e2aca2b5c3d6fa6b8fe2e/src/netfilter_hooks.c:10:2: note: in expansion of macro ‘rcu_dereference_protected’
   10 |  rcu_dereference_protected(e, lockdep_is_held(&nf_hook_mutex))
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/tyton-1.2_p20200604/work/tyton-5c19411e181111774c7e2aca2b5c3d6fa6b8fe2e/src/netfilter_hooks.c:203:8: note: in expansion of macro ‘nf_entry_dereference’
  203 |    p = nf_entry_dereference(*pp);
      |        ^~~~~~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:279: /var/tmp/portage/app-antivirus/tyton-1.2_p20200604/work/tyton-5c19411e181111774c7e2aca2b5c3d6fa6b8fe2e/src/netfilter_hooks.o] Error 1
make[1]: *** [Makefile:1808: /var/tmp/portage/app-antivirus/tyton-1.2_p20200604/work/tyton-5c19411e181111774c7e2aca2b5c3d6fa6b8fe2e] Error 2
make[1]: Leaving directory '/usr/src/linux-5.11.10-pentoo'
make: *** [Makefile:19: module] Error 2

blshkv avatar Apr 01 '21 04:04 blshkv