openwrt / packages

Community maintained packages for OpenWrt. Documentation for submitting pull requests is in CONTRIBUTING.md
GNU General Public License v2.0
4.01k stars 3.49k forks source link

jool: compilation breaks with 4.14 #5631

Closed Borromini closed 6 years ago

Borromini commented 6 years ago

Maintainer: @danrl Environment: OpenWrt master, x86/64 with kernel 4.14

Description: Compiling jool breaks on OpenWrt master with kernel 4.14.

/var/data/code/lede/master/build_dir/target-i386_pentium4_musl/linux-x86_generic/jool-997a81bb5f5e9d82aa122fd37b7c890e44a245dd/mod/stateful/nf_hook.c: In function 'jool_init':
/var/data/code/lede/master/build_dir/target-i386_pentium4_musl/linux-x86_generic/jool-997a81bb5f5e9d82aa122fd37b7c890e44a245dd/mod/stateful/nf_hook.c:155:10: error: implicit
declaration of function 'nf_register_hooks' [-Werror=implicit-function-declaration]
  error = nf_register_hooks(nfho, ARRAY_SIZE(nfho));
          ^
/var/data/code/lede/master/build_dir/target-i386_pentium4_musl/linux-x86_generic/jool-997a81bb5f5e9d82aa122fd37b7c890e44a245dd/mod/stateful/nf_hook.c: In function 'jool_exit':
/var/data/code/lede/master/build_dir/target-i386_pentium4_musl/linux-x86_generic/jool-997a81bb5f5e9d82aa122fd37b7c890e44a245dd/mod/stateful/nf_hook.c:187:2: error: implicit declaration of function 'nf_unregister_hooks' [-Werror=implicit-function-declaration]
  nf_unregister_hooks(nfho, ARRAY_SIZE(nfho));
  ^
danrl commented 6 years ago

@NICMx @ydahhrk Do we have new dependencies when using Kernel 4.x?

ydahhrk commented 6 years ago

I see that you already fixed the problem, but just to clarify:

@danrl Support for kernels 4.13 and 4.14 was added only recently in Jool 3.5.6.

danrl commented 6 years ago

Seems to be fixed in #5654