FreifunkMD / jool-docker

jool as docker container
MIT License
2 stars 2 forks source link

Building 3.x kernel module failes on newer kernels #4

Closed Jasper-Ben closed 5 years ago

Jasper-Ben commented 5 years ago

Trying to install to 3.x kernel module fails due to incompatibility with newer Linux kernels:

/var/lib/dkms/jool/3.5.7/build/mod/stateful/bib/db.c: In function ‘log_bib’:
/var/lib/dkms/jool/3.5.7/build/mod/stateful/bib/db.c:501:2: error: implicit declaration of function ‘do_gettimeofday’; did you mean ‘do_settimeofday64’? [-Werror=implicit-function-declaration]
  501 |  do_gettimeofday(&tval);
      |  ^~~~~~~~~~~~~~~
      |  do_settimeofday64
/var/lib/dkms/jool/3.5.7/build/mod/stateful/pool4/rfc6056.c: In function ‘rfc6056_f’:
/var/lib/dkms/jool/3.5.7/build/mod/stateful/pool4/rfc6056.c:100:6: error: ‘struct shash_desc’ has no member named ‘flags’
  100 |  desc->flags = 0;
      |      ^~
/var/lib/dkms/jool/3.5.7/build/mod/stateful/pool4/empty.c: In function ‘contains_addr’:
/var/lib/dkms/jool/3.5.7/build/mod/stateful/pool4/empty.c:20:3: error: implicit declaration of function ‘for_primary_ifa’ [-Werror=implicit-function-declaration]
   20 |   for_primary_ifa(in_dev) {
      |   ^~~~~~~~~~~~~~~
/var/lib/dkms/jool/3.5.7/build/mod/stateful/pool4/empty.c:20:26: error: expected ‘;’ before ‘{’ token
   20 |   for_primary_ifa(in_dev) {
      |                          ^~
      |                          ;
/var/lib/dkms/jool/3.5.7/build/mod/stateful/bib/db.c:502:2: error: implicit declaration of function ‘time_to_tm’; did you mean ‘time64_to_tm’? [-Werror=implicit-function-declaration]
  502 |  time_to_tm(tval.tv_sec, 0, &t);
      |  ^~~~~~~~~~
      |  time64_to_tm

Semi-related links: https://github.com/NICMx/Jool/issues/283 https://github.com/openwrt/packages/pull/7176

Jasper-Ben commented 5 years ago

Please use new jool version 4.0.5 in master branch.