NICMx / Jool

SIIT and NAT64 for Linux
GNU General Public License v2.0
320 stars 66 forks source link

Problems compile on centos 7 #265

Closed ruben-herold closed 5 years ago

ruben-herold commented 6 years ago

hi

after update my centos 7 I got:


Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j2 KERNELRELEASE=3.10.0-862.3.2.el7.x86_64 -C /lib/modules/3.10.0-862.3.2.el7.x86_64/build SUBDIRS=/var/lib/dkms/jool/3.5.7/build/mod/stateful modules && make -C /lib/modules/3.10.0-862.3.2.el7.x86_64/build SUBDIRS=/var/lib/dkms/jool/3.5.7/build/mod/stateless modules......(bad exit status: 2)
Error! Bad return status for module build on kernel: 3.10.0-862.3.2.el7.x86_64 (x86_64)
Consult /var/lib/dkms/jool/3.5.7/build/make.log for more information.

The log:

  CC [M]  /var/lib/dkms/jool/3.5.7/build/mod/stateful/../common/nl/nl_handler2.o
  CC [M]  /var/lib/dkms/jool/3.5.7/build/mod/stateful/../common/nl/nl_core2.o
/var/lib/dkms/jool/3.5.7/build/mod/stateful/../common/nl/nl_handler2.c:46:8: error: 'GENL_ID_GENERATE' undeclared here (not in a function)
  .id = GENL_ID_GENERATE,
        ^
/var/lib/dkms/jool/3.5.7/build/mod/stateful/../common/nl/nl_handler2.c: In function 'register_family':
/var/lib/dkms/jool/3.5.7/build/mod/stateful/../common/nl/nl_handler2.c:198:2: error: implicit declaration of function 'genl_register_family_with_ops_groups' [-Werror=implicit-function-declaration]
  error = genl_register_family_with_ops_groups(&jool_family, ops,
  ^
cc1: some warnings being treated as errors
make[1]: *** [/var/lib/dkms/jool/3.5.7/build/mod/stateful/../common/nl/nl_handler2.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [_module_/var/lib/dkms/jool/3.5.7/build/mod/stateful] Error 2
make: Leaving directory `/usr/src/kernels/3.10.0-862.3.2.el7.x86_64'
ydahhrk commented 6 years ago

Oops, forgot to mention this issue in the commit message.

The fix is in 5d1d7116770e6ae823360ef2d22850b4e449e7f2.

ydahhrk commented 5 years ago

Released; closing.