Installing Cisco VPN client
Posts: 15
New to Mepis and would like some help installing Cisco's 4.6
I have this extracted to /usr/vpnclient. From there I issued the following and received the following error.
What am I doing wrong?
Thanks
==============================================================
./vpn_install
Cisco Systems VPN Client Version 4.6.00 (0045) Linux Installer
Copyright (C) 1998-2004 Cisco Systems, Inc. All Rights Reserved.
By installing this product you agree that you have read the
license.txt file (The VPN Client license) and will comply with
its terms.
Directory where binaries will be installed [/usr/local/bin]
Automatically start the VPN service at boot time [yes]no
In order to build the VPN kernel module, you must have the
kernel headers for the version of the kernel you are running.
Directory containing linux kernel source code [/lib/modules/2.6.7/build]
* Binaries will be installed in "/usr/local/bin".
* Modules will be installed in "/lib/modules/2.6.7/CiscoVPN".
* The VPN service will *NOT* be started automatically at boot time.
* Kernel source from "/lib/modules/2.6.7/build" will be used to build the module.
Is the above correct [y]
Making module
make -C /lib/modules/2.6.7/build SUBDIRS=/usr/vpnclient modules
make[1]: Entering directory `/usr/src/linux-2.6.7'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/usr/src/linux-2.6.7'
make: *** [default] Error 2
Failed to make module "cisco_ipsec.ko".
Thanks for the reply. Could
Posts: 15
Thanks for the reply. Could you explain further. I am using 2.6.7

package manager
Posts: 4864
a search through the package manager shows kernel headers for 2.6; 2.6.9 but not 2.6.7
you can try 2.6 for your type of machine, but I can't guarantee that this will work
I had success in completing
Posts: 15
I had success in completing with header 2.6.10-1
The problem now is when I issue the command to start shown below:
/etc/init.d/vpnclient_init start
Starting /opt/cisco-vpnclient/bin/vpnclient: insmod: error inserting '/lib/modules/2.6.7/CiscoVPN/cisco_ipsec.ko': -1 Invalid module format
Failed (insmod)

so the modules aren't right
Posts: 4864
recompile with other kernel headers and try again
So far I have tried this
Posts: 15
So far I have tried this with SMepis 3.3 kernel 2.6.10.
I ran: apt-get install kernel-source-2.6.10 kernel-headers-2.6.10, then
downloaded the Cisco vpnclient-linux-4.6.02.0030-k9.tar.gz and extracted
to /etc. Next was to cd /etc/vpnclient and run ./vpn_install.
This is where I begin having problems.
Any help appreciated. I really do want to begin using Mepis entirely, but would like the satisfaction of getting this piece of software installed.
==========================================================
Directory where binaries will be installed [/usr/local/bin]
Automatically start the VPN service at boot time [yes]
In order to build the VPN kernel module, you must have the
kernel headers for the version of the kernel you are running.
For RedHat 6.x users these files are installed in /usr/src/linux by default
For RedHat 7.x users these files are installed in /usr/src/linux-2.4 by default
For Suse 7.3 users these files are installed in /usr/src/linux-2.4.10.SuSE by default
Directory containing linux kernel source code []/usr/src/kernel-source-2.6.10
* Binaries will be installed in "/usr/local/bin".
* Modules will be installed in "/lib/modules/2.6.10/CiscoVPN".
* The VPN service will be started AUTOMATICALLY at boot time.
* Kernel source from "/usr/src/kernel-source-2.6.10" will be used to build the module.
Is the above correct [y]
Making module
make -C /usr/src/kernel-source-2.6.10 SUBDIRS=/etc/vpnclient modules
make[1]: Entering directory `/usr/src/kernel-source-2.6.10'
Makefile:484: .config: No such file or directory
CC [M] /etc/vpnclient/linuxcniapi.o
In file included from /etc/vpnclient/linuxcniapi.c:12:
include/linux/config.h:4:28: linux/autoconf.h: No such file or directory
In file included from include/asm/thread_info.h:17,
from include/linux/thread_info.h:21,
from include/linux/spinlock.h:12,
from include/linux/seqlock.h:30,
from include/linux/time.h:7,
from include/linux/skbuff.h:20,
from include/linux/if_ether.h:106,
from include/linux/netdevice.h:29,
from /etc/vpnclient/linuxcniapi.c:17:
include/asm/processor.h:68: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
include/asm/processor.h:68: error: requested alignment is not a constant
In file included from include/linux/list.h:7,
from include/linux/wait.h:23,
from include/asm/semaphore.h:41,
from include/linux/sched.h:18,
from include/linux/mm.h:4,
from include/linux/skbuff.h:26,
from include/linux/if_ether.h:106,
from include/linux/netdevice.h:29,
from /etc/vpnclient/linuxcniapi.c:17:
include/linux/prefetch.h: In function `prefetch_range':
include/linux/prefetch.h:64: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared (first use in this function)
include/linux/prefetch.h:64: error: (Each undeclared identifier is reported only once
include/linux/prefetch.h:64: error: for each function it appears in.)
In file included from include/linux/module.h:23,
from include/linux/device.h:20,
from include/linux/netdevice.h:38,
from /etc/vpnclient/linuxcniapi.c:17:
include/asm/module.h:56:2: #error unknown processor family
In file included from include/asm/hardirq.h:6,
from include/linux/hardirq.h:6,
from include/linux/interrupt.h:11,
from include/linux/netdevice.h:518,
from /etc/vpnclient/linuxcniapi.c:17:
include/linux/irq.h: At top level:
include/linux/irq.h:69: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (notin a function)
include/linux/irq.h:69: error: requested alignment is not a constant
In file included from include/linux/hardirq.h:6,
from include/linux/interrupt.h:11,
from include/linux/netdevice.h:518,
from /etc/vpnclient/linuxcniapi.c:17:
include/asm/hardirq.h:13: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
include/asm/hardirq.h:13: error: requested alignment is not a constant
In file included from include/linux/ip.h:84,
from /etc/vpnclient/linuxcniapi.c:23:
include/net/sock.h:565: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (notin a function)
make[2]: *** [/etc/vpnclient/linuxcniapi.o] Error 1
make[1]: *** [_module_/etc/vpnclient] Error 2
make[1]: Leaving directory `/usr/src/kernel-source-2.6.10'
make: *** [default] Error 2
Failed to make module "cisco_ipsec.ko".

errors
Posts: 4864
`CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
requested alignment is not a constant
are repeated
i don't know how to fix it
is there any mail list for cisco vpn who could help?
try vpnc instead
Posts: 80
Cisco vpnclient proved to be a beast to maintain. vpnc was a breeze to install - 'apt-get install vpnc'. The docs are clear, config is less than six lines. It just takes a couple of minutes to setup and operate.
If you decide to try vpnc, you may also be interested in the resolvconf package. This helps in keeping /etc/resolv.conf in sync with the network connection chosen.
kernel headers
Posts: 4864
you need a kernel source package. it is looking for 2.6.7.