With kernel 2.6.24 you will need a patch to install Cisco VPN Client

 

UPDATE: A new client for linux (4.8.02.0030) is out. You no longer need the patch for 2.6.24+ kernel on 32 bit systems. However a patch for 64 bit systems is still required. Please click on the link right below to see the howto for 64bit.

UPDATE: 64 bit systems are a bit more complicated, please see how to install Cisco VPN on Hardy Heron 8.04 64 bit

UPDATE: with 2.6.25 kernel this patch is still required (luckily)

OK it’s not breaking news anymore, but in case you confront these errrors:

make -C /lib/modules/2.6.24-ARCH/build SUBDIRS=/usr/src/vpnclient modules
make[1]: Entering directory `/usr/src/linux-2.6.24-ARCH’
CC [M] /usr/src/vpnclient/linuxcniapi.o
In file included from /usr/src/vpnclient/Cniapi.h:15,
from /usr/src/vpnclient/linuxcniapi.c:31:
/usr/src/vpnclient/GenDefs.h:113: error: conflicting types for ‘uintptr_t’
include/linux/types.h:40: error: previous declaration of ‘uintptr_t’ was here
make[2]: *** [/usr/src/vpnclient/linuxcniapi.o] Error 1
make[1]: *** [_module_/usr/src/vpnclient] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.24-ARCH’
make: *** [default] Error 2

Then you probably need a patch:

cd /path/to/the/vpnclient/folder
wget http://projects.tuxx-home.at/ciscovpn/patches/vpnclient-linux-2.6.24-final.diff
patch < ./vpnclient-linux-2.6.24-final.diff

This is due to a change in 2.6.4 kernel that the “init_net” symbol is now again exported using EXPORT_SYMBOL() instead of EXPORT_SYMBOL_GPL()

Related posts:

  • http://www.flavioribeiro.com Flávio Ribeiro

    u saved my fuckin life

  • Thien Nguyen

    Just want to say thanks. This helps out a lot!

  • Paul Henderson

    This patch is also required with 2.6.26 kernel.
    Thanks a lot.

  • Frazier

    I have tried using this method with ubuntu 9.04 and i am hainv some problems to say the least; i know its a beta but any help would be great.

    Kernel: 2.6.28-11-generic
    VPN Package :
    vpnclient-linux-x86_64-4.8.01.0640-k9.tar
    Patch :vpnclient-linux-2.6.24-final.diff

    Does anyone have a moded diff for 2.6.28

  • Frazier

    I found an updated version of the cisco VPN and it installed with out any patch or problems.

    Kernel: 2.6.28-11-generic

    Goto google and search for this file:
    vpnclient-linux-x86_64-4.8.02.0030-k9.tar.gz

    The file should not be bigger then:
    2.0 MB (2056671 bytes)

  • doctorcisco

    For Ubuntu Jaunty 64-bit:

    1) Download vpnclient-linux-x86_64-4.8.02.0030-k9.tar.gz
    2) apt-get install linux-source-2.6.28
    3) tar xvfz vpnclient-linux-x86_64-4.8.02.0030-k9.tar.gz
    4) cd vpnclient
    5) wget http://projects.tuxx-home.at/ciscovpn/patches/v…
    6) patch Makefile vpnclient-linux-4.8.02-64bit.patch
    7) ./vpn_install

    FYI, this is kernel 2.6.28-11

  • Mario

    Gracias estaba buscando como installar el VPN y gracias a tu post ya pude. Excelente.

  • javatechie

    so can you please suggest what you copied and what you pasted and in which file. I am a newbie to Linux. :(

    Thanks for the help.

  • Craig

    Thanks for putting this up on the web and making the patch available. I’m now connected to the university’s network with no problems.

  • Pingback: Installing Cisco VPN Client on Ubuntu 9.04 « Geek playground

  • ashaman

    Works also with 2.6.30

  • ashaman

    Works also with 2.6.30

  • http://www.supervpn.net/ Super VPN Services

    Great share mate.I had this problem and patch works perfect.