64-bit 4.8.02 on Ubuntu 10.04 (Linux 2.6.32-21)

Installation, configuration and troubleshooting of the Cisco VPN Client on Linux systems

64-bit 4.8.02 on Ubuntu 10.04 (Linux 2.6.32-21)

Postby irwinr » Sat May 01, 2010 4:16 pm

Hey all,

I'm running Ubuntu 10.04 64-bit and decided to try and install the 64-bit Cisco VPN client. I downloaded: http://projects.tuxx-home.at/ciscovpn/clients/linux/4.8.02/vpnclient-linux-x86_64-4.8.02.0030-k9.tar.gz

Extracted and ran sudo ./vpn_install:

I received this error:
Code: Select all
Making module
make -C /lib/modules/2.6.32-21-generic/build SUBDIRS=/home/jeremy/shared/Downloads/vpnclient modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-21-generic'
scripts/Makefile.build:49: *** CFLAGS was changed in "/home/jeremy/shared/Downloads/vpnclient/Makefile". Fix it to use EXTRA_CFLAGS.  Stop.
make[1]: *** [_module_/home/jeremy/shared/Downloads/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".


Then I modified the Makefile and changed it from CFLAGS to EXTRA_CFLAGS like the compiler wanted, and tried again:

Code: Select all
Making module
make -C /lib/modules/2.6.32-21-generic/build SUBDIRS=/home/jeremy/shared/Downloads/vpnclient modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-21-generic'
  CC [M]  /home/jeremy/shared/Downloads/vpnclient/linuxcniapi.o
/home/jeremy/shared/Downloads/vpnclient/linuxcniapi.c: In function ‘CniInjectReceive’:
/home/jeremy/shared/Downloads/vpnclient/linuxcniapi.c:341: warning: cast from pointer to integer of different size
/home/jeremy/shared/Downloads/vpnclient/linuxcniapi.c:342: warning: cast from pointer to integer of different size
/home/jeremy/shared/Downloads/vpnclient/linuxcniapi.c: In function ‘CniInjectSend’:
/home/jeremy/shared/Downloads/vpnclient/linuxcniapi.c:481: warning: cast from pointer to integer of different size
/home/jeremy/shared/Downloads/vpnclient/linuxcniapi.c:482: warning: cast from pointer to integer of different size
/home/jeremy/shared/Downloads/vpnclient/linuxcniapi.c:491: warning: cast to pointer from integer of different size
/home/jeremy/shared/Downloads/vpnclient/linuxcniapi.c:491: warning: cast from pointer to integer of different size
  CC [M]  /home/jeremy/shared/Downloads/vpnclient/frag.o
/home/jeremy/shared/Downloads/vpnclient/frag.c: In function ‘queue_fragment’:
/home/jeremy/shared/Downloads/vpnclient/frag.c:50: warning: cast to pointer from integer of different size
/home/jeremy/shared/Downloads/vpnclient/frag.c:50: warning: cast to pointer from integer of different size
/home/jeremy/shared/Downloads/vpnclient/frag.c:50: warning: cast to pointer from integer of different size
/home/jeremy/shared/Downloads/vpnclient/frag.c:50: warning: cast to pointer from integer of different size
/home/jeremy/shared/Downloads/vpnclient/frag.c:52: warning: cast to pointer from integer of different size
/home/jeremy/shared/Downloads/vpnclient/frag.c:52: warning: cast to pointer from integer of different size
/home/jeremy/shared/Downloads/vpnclient/frag.c:52: warning: cast to pointer from integer of different size
/home/jeremy/shared/Downloads/vpnclient/frag.c:52: warning: cast to pointer from integer of different size
/home/jeremy/shared/Downloads/vpnclient/frag.c:70: warning: cast to pointer from integer of different size
/home/jeremy/shared/Downloads/vpnclient/frag.c:70: warning: cast to pointer from integer of different size
/home/jeremy/shared/Downloads/vpnclient/frag.c:70: warning: cast to pointer from integer of different size
/home/jeremy/shared/Downloads/vpnclient/frag.c:70: warning: cast to pointer from integer of different size
/home/jeremy/shared/Downloads/vpnclient/frag.c:73: warning: cast to pointer from integer of different size
/home/jeremy/shared/Downloads/vpnclient/frag.c:73: warning: cast to pointer from integer of different size
/home/jeremy/shared/Downloads/vpnclient/frag.c:73: warning: cast to pointer from integer of different size
/home/jeremy/shared/Downloads/vpnclient/frag.c:73: warning: cast to pointer from integer of different size
/home/jeremy/shared/Downloads/vpnclient/frag.c: In function ‘have_all_fragments’:
/home/jeremy/shared/Downloads/vpnclient/frag.c:126: warning: cast to pointer from integer of different size
/home/jeremy/shared/Downloads/vpnclient/frag.c:126: warning: cast to pointer from integer of different size
/home/jeremy/shared/Downloads/vpnclient/frag.c:126: warning: cast to pointer from integer of different size
/home/jeremy/shared/Downloads/vpnclient/frag.c:126: warning: cast to pointer from integer of different size
/home/jeremy/shared/Downloads/vpnclient/frag.c:134: warning: cast to pointer from integer of different size
/home/jeremy/shared/Downloads/vpnclient/frag.c:134: warning: cast to pointer from integer of different size
/home/jeremy/shared/Downloads/vpnclient/frag.c:134: warning: cast to pointer from integer of different size
/home/jeremy/shared/Downloads/vpnclient/frag.c:134: warning: cast to pointer from integer of different size
/home/jeremy/shared/Downloads/vpnclient/frag.c:141: warning: cast to pointer from integer of different size
/home/jeremy/shared/Downloads/vpnclient/frag.c:141: warning: cast to pointer from integer of different size
/home/jeremy/shared/Downloads/vpnclient/frag.c:141: warning: cast to pointer from integer of different size
/home/jeremy/shared/Downloads/vpnclient/frag.c:141: warning: cast to pointer from integer of different size
/home/jeremy/shared/Downloads/vpnclient/frag.c:142: warning: cast to pointer from integer of different size
/home/jeremy/shared/Downloads/vpnclient/frag.c:146: warning: cast to pointer from integer of different size
/home/jeremy/shared/Downloads/vpnclient/frag.c:146: warning: cast to pointer from integer of different size
/home/jeremy/shared/Downloads/vpnclient/frag.c:146: warning: cast to pointer from integer of different size
/home/jeremy/shared/Downloads/vpnclient/frag.c:146: warning: cast to pointer from integer of different size
/home/jeremy/shared/Downloads/vpnclient/frag.c: In function ‘need_reorder_frag’:
/home/jeremy/shared/Downloads/vpnclient/frag.c:198: warning: cast to pointer from integer of different size
  CC [M]  /home/jeremy/shared/Downloads/vpnclient/IPSecDrvOS_linux.o
  CC [M]  /home/jeremy/shared/Downloads/vpnclient/interceptor.o
/home/jeremy/shared/Downloads/vpnclient/interceptor.c: In function ‘interceptor_init’:
/home/jeremy/shared/Downloads/vpnclient/interceptor.c:132: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/home/jeremy/shared/Downloads/vpnclient/interceptor.c:133: error: ‘struct net_device’ has no member named ‘get_stats’
/home/jeremy/shared/Downloads/vpnclient/interceptor.c:134: error: ‘struct net_device’ has no member named ‘do_ioctl’
/home/jeremy/shared/Downloads/vpnclient/interceptor.c: In function ‘add_netdev’:
/home/jeremy/shared/Downloads/vpnclient/interceptor.c:271: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/home/jeremy/shared/Downloads/vpnclient/interceptor.c:272: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/home/jeremy/shared/Downloads/vpnclient/interceptor.c: In function ‘remove_netdev’:
/home/jeremy/shared/Downloads/vpnclient/interceptor.c:294: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/home/jeremy/shared/Downloads/vpnclient/interceptor.c: In function ‘recv_ip_packet_handler’:
/home/jeremy/shared/Downloads/vpnclient/interceptor.c:646: warning: assignment makes integer from pointer without a cast
/home/jeremy/shared/Downloads/vpnclient/interceptor.c:667: warning: passing argument 2 of ‘CniNewFragment’ makes pointer from integer without a cast
/home/jeremy/shared/Downloads/vpnclient/Cniapi.h:383: note: expected ‘CHAR *’ but argument is of type ‘sk_buff_data_t’
/home/jeremy/shared/Downloads/vpnclient/interceptor.c: In function ‘do_cni_send’:
/home/jeremy/shared/Downloads/vpnclient/interceptor.c:785: error: invalid operands to binary - (have ‘sk_buff_data_t’ and ‘unsigned char *’)
make[2]: *** [/home/jeremy/shared/Downloads/vpnclient/interceptor.o] Error 1
make[1]: *** [_module_/home/jeremy/shared/Downloads/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".


Does anyone know how to compile this thing on Ubuntu 10.04?

Thanks,
-Jeremy
irwinr
Private
Private
 
Posts: 1
Joined: Sat May 01, 2010 4:07 pm

Re: 64-bit 4.8.02 on Ubuntu 10.04 (Linux 2.6.32-21)

Postby ybbon66 » Mon Jul 19, 2010 4:16 pm

I am getting exactly the same error. I would post it but my 64-bit partition is currently dual booted not mounted (just about to change that). I have the patch, edited Makefile, etc.

The client works fine on the same laptop with 32-bit Ubuntu 10.04 2.6.32-23, not sure of the 64-bit right now as I'm not booted into it but it is the latest update.

I've uninstalled the vpnclient directory and started again but same error. I'd be interested in any suggestions too.

[EDIT]

Solved! Problem was the versions I had installed from.

Get the gz from this site (http://projects.tuxx-home.at/ciscovpn/c ... ux/4.8.02/)

Code: Select all
bash> tar zxf vpnclient-linux-x86_64-4.8.02.0030-k9.tar.gz
bash> cd vpnclient/
bash> patch < ../cisco_skbuff_offset.patch
bash> patch < ../vpnclient-linux-2.6.31-final.diff
bash> sed -i 's/^CFLAGS/EXTRA_CFLAGS/' Makefile
bash> 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.32-23-generic/build]

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

Is the above correct [y]

Making module
make -C /lib/modules/2.6.32-23-generic/build SUBDIRS=/home/nobrien/Downloads/vpnclient modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-23-generic'
  CC [M]  /home/nobrien/Downloads/vpnclient/linuxcniapi.o
  CC [M]  /home/nobrien/Downloads/vpnclient/frag.o
  CC [M]  /home/nobrien/Downloads/vpnclient/IPSecDrvOS_linux.o
  CC [M]  /home/nobrien/Downloads/vpnclient/interceptor.o
/home/nobrien/Downloads/vpnclient/interceptor.c: In function ‘interceptor_init’:
/home/nobrien/Downloads/vpnclient/interceptor.c:140: warning: assignment discards qualifiers from pointer target type
  CC [M]  /home/nobrien/Downloads/vpnclient/linuxkernelapi.o
  LD [M]  /home/nobrien/Downloads/vpnclient/cisco_ipsec.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: could not find /home/nobrien/Downloads/vpnclient/.libdriver64.so.cmd for /home/nobrien/Downloads/vpnclient/libdriver64.so
  CC      /home/nobrien/Downloads/vpnclient/cisco_ipsec.mod.o
  LD [M]  /home/nobrien/Downloads/vpnclient/cisco_ipsec.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-23-generic'
Create module directory "/lib/modules/2.6.32-23-generic/CiscoVPN".
Copying module to directory "/lib/modules/2.6.32-23-generic/CiscoVPN".
Already have group 'bin'

Creating start/stop script "/etc/init.d/vpnclient_init".
    /etc/init.d/vpnclient_init
Enabling start/stop script for run level 3,4 and 5.
Creating global config /etc/opt/cisco-vpnclient

Installing license.txt (VPN Client license) in "/opt/cisco-vpnclient/":
    /opt/cisco-vpnclient/license.txt

Installing bundled user profiles in "/etc/opt/cisco-vpnclient/Profiles/":
* New Profiles     : sample

Copying binaries to directory "/opt/cisco-vpnclient/bin".
Adding symlinks to "/usr/local/bin".
    /opt/cisco-vpnclient/bin/vpnclient
    /opt/cisco-vpnclient/bin/cisco_cert_mgr
    /opt/cisco-vpnclient/bin/ipseclog
Copying setuid binaries to directory "/opt/cisco-vpnclient/bin".
    /opt/cisco-vpnclient/bin/cvpnd
Copying libraries to directory "/opt/cisco-vpnclient/lib".
    /opt/cisco-vpnclient/lib/libvpnapi.so
Copying header files to directory "/opt/cisco-vpnclient/include".
    /opt/cisco-vpnclient/include/vpnapi.h

Setting permissions.
    /opt/cisco-vpnclient/bin/cvpnd (setuid root)
    /opt/cisco-vpnclient (group bin readable)
    /etc/opt/cisco-vpnclient (group bin readable)
    /etc/opt/cisco-vpnclient/Profiles (group bin readable)
    /etc/opt/cisco-vpnclient/Certificates (group bin readable)
* You may wish to change these permissions to restrict access to root.
* You must run "/etc/init.d/vpnclient_init start" before using the client.
* This script will be run AUTOMATICALLY every time you reboot your computer.


Essentially, get the right files! I haven't started this yet but it should be fine

[Edit 2]
Well not quite, the client wouldn't start but it was a library issue. Follow the instructions here: http://blog.mattwoodward.com/cisco-anyc ... bit-ubuntu and that worked. All up and running now.
ybbon66
Private
Private
 
Posts: 1
Joined: Mon Jul 19, 2010 3:05 pm

Re: 64-bit 4.8.02 on Ubuntu 10.04 (Linux 2.6.32-21)

Postby chrislovecnm » Sun Aug 29, 2010 2:54 am

Guys you might want to try: http://www.lamnk.com/blog/vpn/how-to-in ... la-64-bit/

I can get the module to compile, but I ma having issues with 2.6.34 on a smp system ...
chrislovecnm
Private
Private
 
Posts: 2
Joined: Sun Aug 29, 2010 2:25 am
Location: Colorado

Re: 64-bit 4.8.02 on Ubuntu 10.04 (Linux 2.6.32-21)

Postby S.Dave » Tue Mar 01, 2011 10:59 pm

Thank you so much !
S.Dave
Private
Private
 
Posts: 4
Joined: Tue Mar 01, 2011 10:44 pm

Re: 64-bit 4.8.02 on Ubuntu 10.04 (Linux 2.6.32-21)

Postby milkywayfarer » Thu Apr 28, 2011 1:10 am

The one looking here, pay attention for this thread viewtopic.php?f=15&t=1293 -- it helps me, and may be useful for you.
milkywayfarer
Private
Private
 
Posts: 2
Joined: Thu Apr 28, 2011 12:52 am


Return to Cisco VPN Client on Linux systems

Who is online

Users browsing this forum: No registered users and 1 guest