Results 1 to 6 of 6

Thread: Cisco VPN Client - Install problem

  1. #1
    Join Date
    Mar 2008
    Beans
    40

    Cisco VPN Client - Install problem

    I have a problem installing the Cisco VPN client on my 64bit Ubuntu.10.10

    Code:
    kimse@kimselaptop:~/Desktop/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]
    
    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.35-25-generic/build]
    
    * Binaries will be installed in "/usr/local/bin".
    * Modules will be installed in "/lib/modules/2.6.35-25-generic/CiscoVPN".
    * The VPN service will be started AUTOMATICALLY at boot time.
    * Kernel source from "/lib/modules/2.6.35-25-generic/build" will be used to build the module.
    
    Is the above correct [y]y
    
    Making module
    make -C /lib/modules/2.6.35-25-generic/build SUBDIRS=/home/kimse/Desktop/vpnclient modules
    make[1]: Entering directory `/usr/src/linux-headers-2.6.35-25-generic'
      CC [M]  /home/kimse/Desktop/vpnclient/linuxcniapi.o
    /home/kimse/Desktop/vpnclient/linuxcniapi.c:14: fatal error: linux/autoconf.h: No such file or directory
    compilation terminated.
    make[2]: *** [/home/kimse/Desktop/vpnclient/linuxcniapi.o] Error 1
    make[1]: *** [_module_/home/kimse/Desktop/vpnclient] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-25-generic'
    make: *** [default] Error 2
    Failed to make module "cisco_ipsec.ko".

  2. #2
    Join Date
    Mar 2007
    Beans
    9

    Re: Cisco VPN Client - Install problem

    Hi,


    I had the same problem. Here is what I did:

    Code:
    user@localhost:~/vpnclient$ find / -name autoconf.h -print 2>/dev/null
    /usr/src/linux-headers-2.6.35-25-generic/include/generated/autoconf.h
    /usr/src/linux-headers-2.6.35-22-generic/include/generated/autoconf.h
    
    
    user@localhost:~/vpnclient$ grep linux/autoconf *
    frag.c:#include <linux/autoconf.h>
    interceptor.c:#include <linux/autoconf.h>
    IPSecDrvOS_linux.c:#include <linux/autoconf.h>
    linuxcniapi.c:#include <linux/autoconf.h>
    user@localhost:~/vpnclient$
    After that I edited every listed file and changed linux/autoconf.h to generated/autoconf.h (see the output of find command above). For some reason autoconf.h was in different directory. I'm not sure why.

    Installation was successful after that.


    Good Luck,
    PN.

  3. #3
    Join Date
    Dec 2008
    Beans
    369

    Re: Cisco VPN Client - Install problem

    Quote Originally Posted by pn8830 View Post
    After that I edited every listed file and changed linux/autoconf.h to generated/autoconf.h (see the output of find command above).
    Better yet, make a symbolic link, after double-checking that autoconf is installed in the first place

  4. #4
    Join Date
    Mar 2008
    Beans
    40

    Re: Cisco VPN Client - Install problem

    Quote Originally Posted by deconstrained View Post
    Better yet, make a symbolic link, after double-checking that autoconf is installed in the first place
    I followed your advise creating a symbolic link

    like this
    Code:
    kimse@kimselaptop:/usr/src/linux-headers-2.6.35-27-generic/include/linux$ sudo ln -s ../generated/autoconf.h autoconf.h
    Compiling
    Code:
    Making module
    make -C /lib/modules/2.6.35-27-generic/build SUBDIRS=/home/kimse/vpnclient modules
    make[1]: Entering directory `/usr/src/linux-headers-2.6.35-27-generic'
      CC [M]  /home/kimse/vpnclient/linuxcniapi.o
      CC [M]  /home/kimse/vpnclient/frag.o
      CC [M]  /home/kimse/vpnclient/IPSecDrvOS_linux.o
      CC [M]  /home/kimse/vpnclient/interceptor.o
    /home/kimse/vpnclient/interceptor.c: In function ‘interceptor_init’:
    /home/kimse/vpnclient/interceptor.c:132: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
    /home/kimse/vpnclient/interceptor.c:133: error: ‘struct net_device’ has no member named ‘get_stats’
    /home/kimse/vpnclient/interceptor.c:134: error: ‘struct net_device’ has no member named ‘do_ioctl’
    /home/kimse/vpnclient/interceptor.c: In function ‘add_netdev’:
    /home/kimse/vpnclient/interceptor.c:271: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
    /home/kimse/vpnclient/interceptor.c:272: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
    /home/kimse/vpnclient/interceptor.c: In function ‘remove_netdev’:
    /home/kimse/vpnclient/interceptor.c:294: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
    make[2]: *** [/home/kimse/vpnclient/interceptor.o] Error 1
    make[1]: *** [_module_/home/kimse/vpnclient] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-27-generic'
    make: *** [default] Error 2
    Failed to make module "cisco_ipsec.ko"

  5. #5
    Join Date
    Dec 2008
    Beans
    369

    Re: Cisco VPN Client - Install problem

    Come to think of it I've run into this exact same problem before. It's because the kernel sources/libraries changed, and Cisco never bothered to update their client to reflect those changes, so it only compiles with earlier kernels.

    As I recall, I gave up and used 'vpnc', which is a Cisco-compatible VPN client that is open-source (and available in the Ubuntu repos). If your company/organization gave you some PCF files, there's a script you'll need to run to convert them to the format that vpnc can read/understand;

    http://baheyeldin.com/cisco/converti...on-format.html

  6. #6
    Join Date
    Mar 2010
    Beans
    168

    Re: Cisco VPN Client - Install problem

    Quote Originally Posted by deconstrained View Post
    Come to think of it I've run into this exact same problem before. It's because the kernel sources/libraries changed, and Cisco never bothered to update their client to reflect those changes, so it only compiles with earlier kernels.

    As I recall, I gave up and used 'vpnc', which is a Cisco-compatible VPN client that is open-source (and available in the Ubuntu repos). If your company/organization gave you some PCF files, there's a script you'll need to run to convert them to the format that vpnc can read/understand;

    http://baheyeldin.com/cisco/converti...on-format.html
    This is kind of where I am but I cannot get vpnc to work either. I entered all the IP information but then I get an error saying it cannot find the myconf file.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •