Any success compiling the Cisco Client on 3.x kernels

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

Any success compiling the Cisco Client on 3.x kernels

Postby knobi » Mon Sep 05, 2011 5:09 pm

Hi,

topic says all. I try to compile under Linux-3.0 but fail miserably .... Lots of missing includes :-(


Cheers
Martin
knobi
Private
Private
 
Posts: 4
Joined: Mon Apr 18, 2011 5:11 pm

Re: Any success compiling the Cisco Client on 3.x kernels

Postby arunkai » Mon Sep 26, 2011 10:26 am

if it is still an issue you could try applying following patch to driver_build.sh. basically, the build script seems to support only 2.5.X & 2.6.X kernels.
Code: Select all
# diff -bcw  ../vpnclient.before.3.0/ driver_build.sh
*** ../vpnclient.before.3.0//driver_build.sh    2011-09-26 08:36:16.071962410 +0530
--- driver_build.sh     2011-09-26 09:02:41.303934242 +0530
***************
*** 46,51 ****
--- 46,54 ----
  fi
 
  case `uname -r` in
+ 3.[0].*)
+     make "KERNEL_SOURCES=${KSRCDIR}"
+     ;;
  2.[56].*)
      make "KERNEL_SOURCES=${KSRCDIR}"
      ;;
arunkai
Private
Private
 
Posts: 4
Joined: Sat Apr 02, 2011 8:53 pm

Re: Any success compiling the Cisco Client on 3.x kernels

Postby mariuszs » Thu Oct 20, 2011 3:25 pm

Thanks a lot, this patch fix header error. This is patch for kernel 3.1 (fedora16)
Code: Select all
# diff -bcw  ../vpnclient.before.3.0/ driver_build.sh
*** ../vpnclient.before.3.0//driver_build.sh    2011-09-26 08:36:16.071962410 +0530
--- driver_build.sh     2011-09-26 09:02:41.303934242 +0530
***************
*** 46,51 ****
--- 46,54 ----
  fi
 
  case `uname -r` in
+ 3.[01].*)
+     make "KERNEL_SOURCES=${KSRCDIR}"
+     ;;
  2.[56].*)
      make "KERNEL_SOURCES=${KSRCDIR}"
      ;;


There is other error, look like this:

Code: Select all
Making module
make -C /lib/modules/3.1.0-0.rc10.git0.1.fc16.i686.PAE/build SUBDIRS=/home/msm/vpn/vpnclient modules
make[1]: Wejście do katalogu `/usr/src/kernels/3.1.0-0.rc10.git0.1.fc16.i686.PAE'
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: could not find /home/msm/vpn/vpnclient/.libdriver.so.cmd for /home/msm/vpn/vpnclient/libdriver.so
make[1]: Opuszczenie katalogu `/usr/src/kernels/3.1.0-0.rc10.git0.1.fc16.i686.PAE'
Failed to make module "cisco_ipsec".


after cleaning:

Code: Select all
Making module
make -C /lib/modules/3.1.0-0.rc10.git0.1.fc16.i686.PAE/build SUBDIRS=/home/msm/vpn/vpnclient modules
make[1]: Wejście do katalogu `/usr/src/kernels/3.1.0-0.rc10.git0.1.fc16.i686.PAE'
  CC [M]  /home/msm/vpn/vpnclient/linuxcniapi.o
  CC [M]  /home/msm/vpn/vpnclient/frag.o
  CC [M]  /home/msm/vpn/vpnclient/IPSecDrvOS_linux.o
  CC [M]  /home/msm/vpn/vpnclient/interceptor.o
/home/msm/vpn/vpnclient/interceptor.c: In function ‘interceptor_init’:
/home/msm/vpn/vpnclient/interceptor.c:140:21: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
  CC [M]  /home/msm/vpn/vpnclient/linuxkernelapi.o
  LD [M]  /home/msm/vpn/vpnclient/cisco_ipsec.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: could not find /home/msm/vpn/vpnclient/.libdriver.so.cmd for /home/msm/vpn/vpnclient/libdriver.so
  CC      /home/msm/vpn/vpnclient/cisco_ipsec.mod.o
  LD [M]  /home/msm/vpn/vpnclient/cisco_ipsec.ko
make[1]: Opuszczenie katalogu `/usr/src/kernels/3.1.0-0.rc10.git0.1.fc16.i686.PAE'
Failed to make module "cisco_ipsec".
mariuszs
Sergeant
Sergeant
 
Posts: 18
Joined: Wed May 20, 2009 6:59 am

Re: Any success compiling the Cisco Client on 3.x kernels

Postby mariuszs » Mon Oct 31, 2011 10:46 pm

OK, complilation is fine, there is more files to change...

Code: Select all
---
driver_build.sh |    6 +++++-
vpn_install     |    3 +++
vpnclient_init  |    7 +++++++
3 files changed, 15 insertions(+), 1 deletions(-)

diff --git driver_build.sh driver_build.sh
index 21f311e..17e9064 100755
--- driver_build.sh
+++ driver_build.sh
@@ -26,6 +26,7 @@ ce"
}

CC=cc
+#CC=gcc34
LD=ld

KSRCDIR=$1
@@ -46,6 +47,9 @@ else
fi

case `uname -r` in
+3.[01].*)
+    make "KERNEL_SOURCES=${KSRCDIR}"
+    ;;
2.[56].*)
     make "KERNEL_SOURCES=${KSRCDIR}"
     ;;
@@ -58,7 +62,7 @@ case `uname -r` in
if [ `uname -m` = "x86_64" ]; then
   $LD -r -o cisco_ipsec linuxkernelapi.o frag.o linuxcniapi.o IPSecDrvOS_linux.o interceptor.o libdriver64.so
else 
-  $LD -r -o cisco_ipsec linuxkernelapi.o frag.o linuxcniapi.o IPSecDrvOS_linux.o interceptor.o libdriver.so
+  $LD  -r -o cisco_ipsec linuxkernelapi.o frag.o linuxcniapi.o IPSecDrvOS_linux.o interceptor.o libdriver.so
fi
     ;;
esac
diff --git vpn_install vpn_install
index 30e37e5..35a41fc 100755
--- vpn_install
+++ vpn_install
@@ -317,6 +317,9 @@ fi
# Make module
#
case `uname -r` in
+3.[01].*)
+    MODULE_NAME=cisco_ipsec.ko
+    ;;
2.[56].*)
     MODULE_NAME=cisco_ipsec.ko
     ;;
diff --git vpnclient_init vpnclient_init
index a877243..5185398 100755
--- vpnclient_init
+++ vpnclient_init
@@ -17,6 +17,9 @@ VPNCLIENT="/opt/cisco-vpnclient/bin/vpnclient"
VPNDEV="cipsec0"
VPNMOD=cisco_ipsec
case `uname -r` in
+3.[01].*)
+    VPNMOD_FILE="${VPNMOD}.ko"
+    ;;
2.[56].*)
     VPNMOD_FILE="${VPNMOD}.ko"
     ;;
@@ -61,6 +64,10 @@ case "$1" in
      exit 1
   fi
   case "`uname -r`" in
+        3.1.*)
+                ;;
+   3.0.*)
+                 ;;
   2.6.*)
      ;;
   2.5.*)
--
1.7.7.1


https://github.com/ruphert/CiscoVpnClient-Patches
mariuszs
Sergeant
Sergeant
 
Posts: 18
Joined: Wed May 20, 2009 6:59 am

Re: Any success compiling the Cisco Client on 3.x kernels

Postby mariuszs » Tue Jan 24, 2012 9:58 pm

Cisco VPN Client is not working anymore under Kernel 3.2.

Code: Select all
Jan 24 20:44:51  kernel: [   88.936979] BUG: unable to handle kernel paging request at f7f69cb0
Jan 24 20:44:51  kernel: [   88.937027] IP: [<f8e05f8c>] add_netdev+0xac/0xe0 [cisco_ipsec]
Jan 24 20:44:51  kernel: [   88.937084] *pdpt = 0000000000c6c001 *pde = 0000000031c31067 *pte = 800000013d6d2161
Jan 24 20:44:51  kernel: [   88.937140] Oops: 0003 [#1] SMP
Jan 24 20:44:51  kernel: [   88.937168] Modules linked in: fuse ppdev parport_pc lp parport ip6table_filter ip6_tables ebtable_nat ebtables ipt_MASQUERADE iptable_nat nf_nat x
t_CHECKSUM iptable_mangle tun bridge cisco_ipsec(P) 8021q garp stp llc fcoe lockd libfcoe libfc scsi_transport_fc scsi_tgt rfcomm bnep nf_conntrack_netbios_ns nf_conntrack_broadcast nf
_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack binfmt_misc snd_hda_codec_analog snd_hda_intel snd_hda_codec arc4 snd_hwdep iwlwifi snd_seq snd_seq_device snd_pcm btusb bluetooth
uvcvideo videodev media snd_timer snd hp_wmi mac80211 cfg80211 iTCO_wdt sparse_keymap soundcore rfkill joydev snd_page_alloc hp_accel iTCO_vendor_support microcode serio_raw sky2 lis3l
v02d input_polldev sunrpc virtio_net kvm_intel kvm uinput wmi video radeon ttm drm_kms_helper drm i2c_algo_bit i2c_core [last unloaded: scsi_wait_scan]
Jan 24 20:44:51  kernel: [   88.937855]
Jan 24 20:44:51  kernel: [   88.937868] Pid: 2249, comm: cvpnd Tainted: P          IO 3.2.1-3.fc16.i686.PAE #1 Hewlett-Packard HP Compaq 6830s/30E9
Jan 24 20:44:51  kernel: [   88.937943] EIP: 0060:[<f8e05f8c>] EFLAGS: 00010246 CPU: 1
Jan 24 20:44:51  kernel: [   88.937959] EIP is at add_netdev+0xac/0xe0 [cisco_ipsec]
Jan 24 20:44:51  kernel: [   88.937959] EAX: 00000000 EBX: f1777800 ECX: 00000000 EDX: f7f69ca0
Jan 24 20:44:51  kernel: [   88.937959] ESI: 00000000 EDI: eea21ea4 EBP: eea21e28 ESP: eea21e10
Jan 24 20:44:51  kernel: [   88.937959]  DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
Jan 24 20:44:51  kernel: [   88.937959] Process cvpnd (pid: 2249, ti=eea20000 task=edab8000 task.ti=eea20000)
Jan 24 20:44:51  kernel: [   88.937959] Stack:
Jan 24 20:44:51  kernel: [   88.937959]  eea21e18 c04c613d ee44f000 eea21ea4 eea21e28 f1777800 eea21e58 f8e0630f
Jan 24 20:44:51  kernel: [   88.937959]  f8e48620 00000000 00000370 eea21ea4 eea21e58 c0846b4f c0d40f40 ee44f000
Jan 24 20:44:51  kernel: [   88.937959]  000089f1 eea21ea4 eea21e7c c084bf89 f8e06130 eea21e74 c093a9d8 fffffff2
Jan 24 20:44:51  kernel: [   88.937959] Call Trace:
Jan 24 20:44:51  kernel: [   88.937959]  [<c04c613d>] ? synchronize_rcu_expedited+0xd/0x10
Jan 24 20:44:51  kernel: [   88.937959]  [<f8e0630f>] interceptor_ioctl+0x1df/0x2c0 [cisco_ipsec]
Jan 24 20:44:51  kernel: [   88.937959]  [<c0846b4f>] ? __dev_get_by_name+0x7f/0xa0
Jan 24 20:44:51  kernel: [   88.937959]  [<c084bf89>] dev_ifsioc+0x359/0x380
Jan 24 20:44:51  kernel: [   88.937959]  [<f8e06130>] ? handle_netdev_event+0x50/0x50 [cisco_ipsec]
Jan 24 20:44:51  kernel: [   88.937959]  [<c093a9d8>] ? mutex_lock+0x18/0x40
Jan 24 20:44:51  kernel: [   88.937959]  [<c084c39d>] dev_ioctl+0x3ed/0x500
Jan 24 20:44:51  kernel: [   88.937959]  [<c061316b>] ? file_has_perm+0xcb/0xe0
Jan 24 20:44:51  kernel: [   88.937959]  [<c0836c50>] ? move_addr_to_user+0x90/0x90
Jan 24 20:44:51  kernel: [   88.937959]  [<c0836cda>] sock_ioctl+0x8a/0x290
Jan 24 20:44:51  kernel: [   88.937959]  [<c0836c50>] ? move_addr_to_user+0x90/0x90
Jan 24 20:44:51  kernel: [   88.937959]  [<c054fc76>] do_vfs_ioctl+0x86/0x5a0
Jan 24 20:44:51  kernel: [   88.937959]  [<c06135e4>] ? selinux_file_ioctl+0x54/0x110
Jan 24 20:44:51  kernel: [   88.937959]  [<c05501ff>] sys_ioctl+0x6f/0x80
Jan 24 20:44:51  kernel: [   88.937959]  [<c0942c9f>] sysenter_do_call+0x12/0x28
Jan 24 20:44:51  kernel: [   88.937959] Code: c9 2c 31 c0 89 99 20 86 e4 f8 8b 93 fc 00 00 00 89 91 38 86 e4 f8 8b 93 e0 00 00 00 8b 52 10 89 91 2c 86 e4 f8 8b 93 e0 00 00 00 <c7> 42 10 20 66 e0 f8 8b 15 ac 89 e4 f8 89 91 28 86 e4 f8 8b 15
Jan 24 20:44:51  kernel: [   88.937959] EIP: [<f8e05f8c>] add_netdev+0xac/0xe0 [cisco_ipsec] SS:ESP 0068:eea21e10
Jan 24 20:44:51  kernel: [   88.937959] CR2: 00000000f7f69cb0
Jan 24 20:44:51  kernel: [   88.937959] ---[ end trace a7919e7f17c0a727 ]---
mariuszs
Sergeant
Sergeant
 
Posts: 18
Joined: Wed May 20, 2009 6:59 am


Return to Cisco VPN Client on Linux systems

Who is online

Users browsing this forum: No registered users and 5 guests

cron