Error during installation of a cisco vpn client

Asked by Hans Bronk

Hello,

I'm trying to install a cisco vpn client in order to access my remote files.
I extracted the install folder and ran the installer using sudo.

This is what came out.

Cisco Systems VPN Client Version 4.8.00 (0490) Linux Installer
Copyright (C) 1998-2005 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]

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.22-14-generic/build]

* Binaries will be installed in "/usr/local/bin".
* Modules will be installed in "/lib/modules/2.6.22-14-generic/CiscoVPN".
* The VPN service will be started AUTOMATICALLY at boot time.
* Kernel source from "/lib/modules/2.6.22-14-generic/build" will be used to build the module.

Is the above correct [y]

Making module
make -C /lib/modules/2.6.22-14-generic/build SUBDIRS=/home/hans/Desktop/vpnclient modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.22-14-generic'
  CC [M] /home/hans/Desktop/vpnclient/linuxcniapi.o
/home/hans/Desktop/vpnclient/linuxcniapi.c:12:26: error: linux/config.h: No such file or directory
/home/hans/Desktop/vpnclient/linuxcniapi.c: In function ‘CniInjectReceive’:
/home/hans/Desktop/vpnclient/linuxcniapi.c:297: warning: implicit declaration of function ‘skb_set_timestamp’
/home/hans/Desktop/vpnclient/linuxcniapi.c:331: error: ‘struct sk_buff’ has no member named ‘nh’
/home/hans/Desktop/vpnclient/linuxcniapi.c:332: error: ‘struct sk_buff’ has no member named ‘mac’
/home/hans/Desktop/vpnclient/linuxcniapi.c: In function ‘CniInjectSend’:
/home/hans/Desktop/vpnclient/linuxcniapi.c:454: error: ‘struct sk_buff’ has no member named ‘mac’
/home/hans/Desktop/vpnclient/linuxcniapi.c:455: error: ‘struct sk_buff’ has no member named ‘nh’
/home/hans/Desktop/vpnclient/linuxcniapi.c:458: error: ‘struct sk_buff’ has no member named ‘h’
/home/hans/Desktop/vpnclient/linuxcniapi.c:458: error: ‘struct sk_buff’ has no member named ‘nh’
make[2]: *** [/home/hans/Desktop/vpnclient/linuxcniapi.o] Error 1
make[1]: *** [_module_/home/hans/Desktop/vpnclient] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-14-generic'
make: *** [default] Error 2
Failed to make module "cisco_ipsec.ko".

I just recently switched to Ubuntu (7.10) from Vista, so I don't know a lot about it.

Any suggestions?

Regards,

Hans Bronk

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Pete
Solved:
Last query:
Last reply:
Revision history for this message
Best Pete (pete123) said :
#1

It looks like you are missing the kernel headers, try installing the package "linux-headers-2.6.22-14-generic" either through the package manager, or via a terminal with the following:

sudo apt-get install linux-headers-2.6.22-14-generic

Revision history for this message
Hans Bronk (h-c-bronk) said :
#2

Thanks Pete, that solved my question.

Revision history for this message
Badee (badees) said :
#3

Hi I get the same error. I have the updated headers.

* Binaries will be installed in "/usr/local/bin".
* Modules will be installed in "/lib/modules/2.6.22-14-generic/CiscoVPN".
* The VPN service will be started AUTOMATICALLY at boot time.
* Kernel source from "/lib/modules/2.6.22-14-generic/build" will be used to build the module.

Is the above correct [y]

Making module
make -C /lib/modules/2.6.22-14-generic/build SUBDIRS=/home/sasaki/Desktop/vpnclient modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.22-14-generic'
  CC [M] /home/sasaki/Desktop/vpnclient/linuxcniapi.o
/home/sasaki/Desktop/vpnclient/linuxcniapi.c:12:26: error: linux/config.h: No such file or directory
/home/sasaki/Desktop/vpnclient/linuxcniapi.c: In function ‘CniInjectReceive’:
/home/sasaki/Desktop/vpnclient/linuxcniapi.c:297: warning: implicit declaration of function ‘skb_set_timestamp’
/home/sasaki/Desktop/vpnclient/linuxcniapi.c:331: error: ‘struct sk_buff’ has no member named ‘nh’
/home/sasaki/Desktop/vpnclient/linuxcniapi.c:332: error: ‘struct sk_buff’ has no member named ‘mac’
/home/sasaki/Desktop/vpnclient/linuxcniapi.c: In function ‘CniInjectSend’:
/home/sasaki/Desktop/vpnclient/linuxcniapi.c:454: error: ‘struct sk_buff’ has no member named ‘mac’
/home/sasaki/Desktop/vpnclient/linuxcniapi.c:455: error: ‘struct sk_buff’ has no member named ‘nh’
/home/sasaki/Desktop/vpnclient/linuxcniapi.c:458: error: ‘struct sk_buff’ has no member named ‘h’
/home/sasaki/Desktop/vpnclient/linuxcniapi.c:458: error: ‘struct sk_buff’ has no member named ‘nh’
make[2]: *** [/home/sasaki/Desktop/vpnclient/linuxcniapi.o] Error 1
make[1]: *** [_module_/home/sasaki/Desktop/vpnclient] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-14-generic'
make: *** [default] Error 2
Failed to make module "cisco_ipsec.ko".

Revision history for this message
Pete (pete123) said :
#4

Looking at your log you have exactly the same error, can you please verify you are running kernel 2.6.22-14-generic? Type the following command,

uname -a

and give the output here. As far as I can tell though, you just do not have the headers installed, check with the following command

sudo dpkg -l linux-headers*

Revision history for this message
Badee (badees) said :
#5

uname -a

Linux sasaki-laptop 2.6.22-14-generic #1 SMP Tue Dec 18 08:02:57 UTC 2007 i686 GNU/Linux

sudo dpkg -l linux-headers*

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
un linux-headers <none> (no description available)
un linux-headers- <none> (no description available)
ii linux-headers- 2.6.22-14.47 Header files related to Linux kernel version
ii linux-headers- 2.6.22-14.47 Linux kernel headers for version 2.6.22 on x
ii linux-headers- 2.6.22.14.21 Generic Linux kernel headers

I'm running Gutsy Gibson

Revision history for this message
Pete (pete123) said :
#6

It looks like you have two options, patching the version you have so it will build on newer kernels, read this page:

http://tuxx-home.at/archives/2007/05/29/T16_34_26/

Alternatively, you could use a newer version, which should successfully compile without modification. I am not sure where you obtain the Cisco vpn client, so I am unable to help with that, sorry.

Revision history for this message
Patrick Lozzi (captainmorgan) said :
#7

Wow, thank you for that attachment from tuxx-home. That seems to be the only fix currently available.

Cheers. :)

Revision history for this message
Eugen Nicoara (eugen-nicoara) said :
#8

Hello
I'm having exactly the same problem with Ubuntu 10.04 (both Beta 2 and Release Candidate). I've been using Ubuntu and CISCO VPN Client for almost two yeas and I've never had this problem with the previous releases.

Any idea how to solve this?
Thanks!

eugen@nicoara:~/kits/ciscovpnclient/vpnclient$ sudo ./vpn_install
Cisco Systems VPN Client Version 4.8.02 (0030) Linux Installer
Copyright (C) 1998-2006 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.32-21-generic/build]

* Binaries will be installed in "/usr/local/bin".
* Modules will be installed in "/lib/modules/2.6.32-21-generic/CiscoVPN".
* The VPN service will *NOT* be started automatically at boot time.
* Kernel source from "/lib/modules/2.6.32-21-generic/build" will be used to build the module.

Is the above correct [y]

Making module
make -C /lib/modules/2.6.32-21-generic/build SUBDIRS=/home/eugen/kits/ciscovpnclient/vpnclient modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-21-generic'
  CC [M] /home/eugen/kits/ciscovpnclient/vpnclient/linuxcniapi.o
  CC [M] /home/eugen/kits/ciscovpnclient/vpnclient/frag.o
  CC [M] /home/eugen/kits/ciscovpnclient/vpnclient/IPSecDrvOS_linux.o
  CC [M] /home/eugen/kits/ciscovpnclient/vpnclient/interceptor.o
/home/eugen/kits/ciscovpnclient/vpnclient/interceptor.c: In function ‘interceptor_init’:
/home/eugen/kits/ciscovpnclient/vpnclient/interceptor.c:132: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/home/eugen/kits/ciscovpnclient/vpnclient/interceptor.c:133: error: ‘struct net_device’ has no member named ‘get_stats’
/home/eugen/kits/ciscovpnclient/vpnclient/interceptor.c:134: error: ‘struct net_device’ has no member named ‘do_ioctl’
/home/eugen/kits/ciscovpnclient/vpnclient/interceptor.c: In function ‘add_netdev’:
/home/eugen/kits/ciscovpnclient/vpnclient/interceptor.c:271: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/home/eugen/kits/ciscovpnclient/vpnclient/interceptor.c:272: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/home/eugen/kits/ciscovpnclient/vpnclient/interceptor.c: In function ‘remove_netdev’:
/home/eugen/kits/ciscovpnclient/vpnclient/interceptor.c:294: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
make[2]: *** [/home/eugen/kits/ciscovpnclient/vpnclient/interceptor.o] Error 1
make[1]: *** [_module_/home/eugen/kits/ciscovpnclient/vpnclient] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-21-generic'
make: *** [default] Error 2
Failed to make module "cisco_ipsec.ko".
eugen@nicoara:~/kits/ciscovpnclient/vpnclient$ uname -a
Linux nicoara 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010 i686 GNU/Linux
eugen@nicoara:~/kits/ciscovpnclient/vpnclient$ sudo dpkg -l linux-headers*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-=====================================-=====================================-==========================================================================================
un linux-headers <none> (no description available)
un linux-headers-2.6 <none> (no description available)
un linux-headers-2.6-686 <none> (no description available)
un linux-headers-2.6-amd64 <none> (no description available)
ii linux-headers-2.6.32-19 2.6.32-19.28 Header files related to Linux kernel version 2.6.32
ii linux-headers-2.6.32-19-generic 2.6.32-19.28 Linux kernel headers for version 2.6.32 on x86/x86_64
ii linux-headers-2.6.32-21 2.6.32-21.32 Header files related to Linux kernel version 2.6.32
ii linux-headers-2.6.32-21-generic 2.6.32-21.32 Linux kernel headers for version 2.6.32 on x86/x86_64
ii linux-headers-generic 2.6.32.21.22 Generic Linux kernel headers
eugen@nicoara:~/kits/ciscovpnclient/vpnclient$

Revision history for this message
Badee (badees) said :
#9

I had to patch the file so it would compile on the kernel. Every time I updated the kernel I had to recompile. I just installed a vbox and ran windows xp with the windows client.

Revision history for this message
Eugen Nicoara (eugen-nicoara) said :
#10