FreifunkMD / jool-docker

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

How to build Jool Kernel-Module? #9

Open Nold360 opened 4 years ago

Nold360 commented 4 years ago

I replicated the used commands from install.sh, but i can't get it to build.

dkms build jool/4.0.5:

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...(bad exit status: 2)
make -j1 KERNELRELEASE=4.19.0-8-amd64 -C /lib/modules/4.19.0-8-amd64/build SUBDIRS=/var/lib/dkms/jool/4.0.5.git.v4.0.5/build/src/mod/nat64 modules && make -C /lib/modules/4.19.0-8-amd64/build SUBDIRS=/var/lib/dkms/jool/4.0.5.git.v4.0.5/build/src/mod/siit modules...(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.19.0-8-amd64 (x86_64)
Consult /var/lib/dkms/jool/4.0.5/build/make.log for more information.
root@gw00:/usr/src# cat /var/lib/dkms/jool/4.0.5/build/make.log
DKMS make.log for jool-4.0.5 for kernel 4.19.0-8-amd64 (x86_64)
Wed 20 May 2020 04:44:59 PM CEST
make: Entering directory '/usr/src/linux-headers-4.19.0-8-amd64'
/usr/src/linux-headers-4.19.0-8-common/scripts/Makefile.build:45: /var/lib/dkms/jool/4.0.5.git.v4.0.5/build/src/mod/nat64/Makefile: No such file or directory                                                     
make[3]: *** No rule to make target '/var/lib/dkms/jool/4.0.5.git.v4.0.5/build/src/mod/nat64/Makefile'.  Stop.                                                                                                    
make[2]: *** [/usr/src/linux-headers-4.19.0-8-common/Makefile:1537: _module_/var/lib/dkms/jool/4.0.5.git.v4.0.5/build/src/mod/nat64] Error 2                                                                      
make[1]: *** [Makefile:146: sub-make] Error 2
make: *** [Makefile:8: all] Error 2
make: Leaving directory '/usr/src/linux-headers-4.19.0-8-amd64'

‎Using the upstream guide, i could compile it just fine: https://github.com/NICMx/Jool/blob/master/docs/en/install.md#compilation-and-installation ‎ But then dkms doesn't seem to be happy & is complaining about diff of modules.

Here is the code i used: https://github.com/FreifunkMD/ansible/blob/migration/roles/jool/tasks/main.yml#L32

//Edit: building using install.sh works. so it must have something todo with that weird version number 4.0.5.git.v4.0.5. I checked out the git branch instead of using tar, but idk why/who generates this version number.

Kwa5ir commented 3 years ago

Hi have u checked the WhitePaper https://www.jool.mx/en/install.html