Hi all,

I have two APU1 PC's to use as VPN firewall gateways and prefer to use Openswan with the klips modulein order to have the ipsec0 etc interfaces.

The current kernel is Linux voyage 3.10.11-voyage #1 SMP Fri Dec 6 17:15:44 HKT 2013 x86_64 GNU/Linux and I have the following kernel packages linux-headers-3.10.11-voyage 13.0-1 amd64 Header files related to Linux kernel, specifically, linux-image-3.10.11-voyage 13.0-1 amd64 Linux kernel binary image for version 3.10.11-voyage linux-source-3.10.11-voyage 13.0-1 all Linux kernel source for version 3.10.11-voyage

For Openswan I have installed
openswan 1:2.6.37-3+deb7u1               amd64 Internet Key Exchange daemon
openswan-modules-dkms 1:2.6.37-3+deb7u1 amd64 Internet Key Exchange daemon - DKMS source openswan-modules-source 1:2.6.37-3+deb7u1 all Internet Key Exchange daemon - kernel module source

DKMS fails to find the kernel headers as there is no build folder in /lib/modules/3.10.11-voyage where it looks

I have tried pointing dkms to /usr/src/linux-headers-3.10.11-voyage which is where I believe the kernel headers are installed but this fails

I have also tried to compile the module from the openswan-2.6.42 source using /usr/src/linux-headers-3.10.11-voyage as the kernel source and it fails with the same
error message as follows

root@voyage:/home/install/openswan-2.6.42# make KERNELSRC=/usr/src/linux-headers-3.10.11-voyage module
Building module for a 2.6 kernel
make[1]: Entering directory `/home/install/openswan-2.6.42'
make[2]: Entering directory `/home/install/openswan-2.6.42'
make[2]: `/home/install/openswan-2.6.42/modobj26/Makefile' is up to date.
make[2]: Leaving directory `/home/install/openswan-2.6.42'
make -C /usr/src/linux-headers-3.10.11-voyage BUILDDIR=/home/install/openswan-2.6.42/modobj26 SUBDIRS=/home/install/openswan-2.6.42/modobj26 MODULE_DEF_INCLUDE=/home/install/openswan-2.6.42/packaging/linus/config-all.h MODULE_DEFCONFIG=/home/install/openswan-2.6.42/linux/net/ipsec/defconfig MODULE_EXTRA_INCLUDE= ARCH=x86_64 V= modules
make[2]: Entering directory `/usr/src/linux-headers-3.10.11-voyage'
  CC [M]  /home/install/openswan-2.6.42/modobj26/ipsec_init.o
/bin/bash: scripts/basic/fixdep: No such file or directory
make[3]: *** [/home/install/openswan-2.6.42/modobj26/ipsec_init.o] Error 1
make[2]: *** [_module_/home/install/openswan-2.6.42/modobj26] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-3.10.11-voyage'
make[1]: *** [module26] Error 2
make[1]: Leaving directory `/home/install/openswan-2.6.42'
make: *** [module] Error 2

The cause of the error would appear to be related to this line from above
/bin/bash: scripts/basic/fixdep: No such file or directory

However the file does exist

root@voyage:/usr/src/linux-headers-3.10.11-voyage/scripts/basic# ls /usr/src/linux-headers-3.10.11-voyage/scripts/basic
Makefile  fixdep  fixdep.c  modules.order

Can anyone advise what is required to make this work or if I'm going about it the wrong way?

Many thanks

Kevin


--
Kevin Bedford
Net Ideas Pty Ltd

03 8616 9398
0419 542 700
www.netideas.com.au


_______________________________________________
Voyage-linux mailing list
Voyage-linux@list.voyage.hk
http://list.voyage.hk/mailman/listinfo/voyage-linux

Reply via email to