cisco_ipsec.ko & FLAGS Hardy Heron 64 bit

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

cisco_ipsec.ko & FLAGS Hardy Heron 64 bit

Postby artur » Sun Apr 27, 2008 4:13 pm

I've tried to install Cisco VPN Client on Hardy Heron 64 bit as it here described( used patch and replaced CFLAGS by EXTRA_CFLAGS ) but I had problems
1.) it cannot make module cisco_ipsec.ko
2.) when I replaced CFLAGS by EXTRA_CFLAGS as it advised me there were even more errors( in some places in Makefile there was already EXTRA_CFLAGS)
3.) as I tried "sudo apt-get install ia32-libs" it couldn't find it
artur
Private
Private
 
Posts: 1
Joined: Sun Apr 27, 2008 4:05 pm

Re: cisco_ipsec.ko & FLAGS Hardy Heron 64 bit

Postby tuxx-home.at » Sun Apr 27, 2008 4:17 pm

1.) it cannot make module cisco_ipsec.ko


Can I please see the output of your compilation?

3.) as I tried "sudo apt-get install ia32-libs" it couldn't find it


Well, I'm not much into this Ubuntu stuff, but according to [http://packages.ubuntu.com/search?keywords=ia32-libs&searchon=names&suite=all&section=all] this package exists for your distribution.
User avatar
tuxx-home.at
Supreme Commander
Supreme Commander
 
Posts: 2199
Joined: Mon Jan 01, 2007 12:51 pm
Location: Vassach - Austria - Europe

Re: cisco_ipsec.ko & FLAGS Hardy Heron 64 bit

Postby pzgyuanf » Mon Apr 28, 2008 9:56 am

Hi,
I got the same error, blow is the output from compile:

-------------------
Making module
make -C /lib/modules/2.6.24-16-generic/build SUBDIRS=/home/zippy/MyDownloads/vpn/vpnclient modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-16-generic'
CC [M] /home/zippy/MyDownloads/vpn/vpnclient/linuxcniapi.o
In file included from /home/zippy/MyDownloads/vpn/vpnclient/Cniapi.h:15,
from /home/zippy/MyDownloads/vpn/vpnclient/linuxcniapi.c:31:
/home/zippy/MyDownloads/vpn/vpnclient/GenDefs.h:110:2: warning: #warning 64 bit
In file included from /home/zippy/MyDownloads/vpn/vpnclient/Cniapi.h:15,
from /home/zippy/MyDownloads/vpn/vpnclient/linuxcniapi.c:31:
/home/zippy/MyDownloads/vpn/vpnclient/GenDefs.h:111: error: conflicting types for ‘uintptr_t’
include/linux/types.h:40: error: previous declaration of ‘uintptr_t’ was here
make[2]: *** [/home/zippy/MyDownloads/vpn/vpnclient/linuxcniapi.o] Error 1
make[1]: *** [_module_/home/zippy/MyDownloads/vpn/vpnclient] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-16-generic'
make: *** [default] Error 2
Failed to make module "cisco_ipsec.ko".
-------------------

Any hints?

Thanks!
Pzgyuanf
pzgyuanf
Private
Private
 
Posts: 1
Joined: Mon Apr 28, 2008 9:12 am

Re: cisco_ipsec.ko & FLAGS Hardy Heron 64 bit

Postby tuxx-home.at » Mon Apr 28, 2008 3:28 pm

@artur: I still need to see your compile output.

@pzgyuanf: Are you sure that your VPN client software is patched with the latest patch available at [http://projects.tuxx-home.at/ciscovpn/patches/vpnclient-linux-2.6.24-final.diff]?

Using Cisco VPN client 4.8.01.0640 and my patch there are only comments around line 111 in GenDefs.h which your compiler doesn't like.
To see if your vpnclient has been patched correctly issue the following command:

Code: Select all
cd /path/to/your/vpnclient-directory
grep -3 tuxx-home *


This command should reveal all my changes, f.ex.:

Code: Select all
GenDefs.h-/* uintptr_t has been defined in include/linux/types.h in 2.6.24.
GenDefs.h- * No need to define it here again (will only lead to compile errors)
GenDefs.h- *
GenDefs.h: * by Alexander Griesser <work@tuxx-home.at>, 2008-01-11
GenDefs.h- */
GenDefs.h-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
GenDefs.h-#ifndef _UINTPTR_T_DEFINED
--
interceptor.c-
interceptor.c-/* 2.6.24 handles net_devices a little bit different
interceptor.c- *
interceptor.c: * by Alexander Griesser <work@tuxx-home.at>, 2008-01-11
interceptor.c- */
interceptor.c-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
interceptor.c-static struct net_device* interceptor_dev;
--
interceptor.c-/* 2.6.24 needs to allocate each netdevice before registering it, otherwise
interceptor.c- * the kernel BUG()s.
interceptor.c- *
interceptor.c: * by Alexander Griesser <work@tuxx-home.at>, 2008-01-11
interceptor.c- */
interceptor.c-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
interceptor.c-    if(! (interceptor_dev = alloc_netdev(sizeof(struct net_device), interceptor_name, interceptor_init)))
User avatar
tuxx-home.at
Supreme Commander
Supreme Commander
 
Posts: 2199
Joined: Mon Jan 01, 2007 12:51 pm
Location: Vassach - Austria - Europe

Re: cisco_ipsec.ko & FLAGS Hardy Heron 64 bit

Postby Frankie » Sun Aug 03, 2008 2:53 am

I have the same issue and I didn't find a solution yet.
I did the command grep -3 tuxx-home *
here is the result

# grep -3 tuxx-home *
GenDefs.h-/* uintptr_t has been defined in include/linux/types.h in 2.6.24.
GenDefs.h- * No need to define it here again (will only lead to compile errors)
GenDefs.h- *
GenDefs.h: * by Alexander Griesser <work@tuxx-home.at>, 2008-01-11
GenDefs.h- */
GenDefs.h-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
GenDefs.h-#ifndef _UINTPTR_T_DEFINED
--
interceptor.c- *
interceptor.c- * This function is borrowed from net/core/rtnetlink.c
interceptor.c- *
interceptor.c: * by Alexander Griesser <work@tuxx-home.at>, 2008-01-13
interceptor.c- */
interceptor.c-static struct net *get_net_ns_by_pid(pid_t pid)
interceptor.c-{
--
interceptor.c- * and therefore should be the namespace for all local interfaces used
interceptor.c- * to connect to your VPN gateway
interceptor.c- *
interceptor.c: * by Alexander Griesser <work@tuxx-home.at>, 2008-01-13
interceptor.c- */
interceptor.c- struct net *initnet = get_net_ns_by_pid((pid_t)1);
interceptor.c-#endif
--
interceptor.c.orig- *
interceptor.c.orig- * This function is borrowed from net/core/rtnetlink.c
interceptor.c.orig- *
interceptor.c.orig: * by Alexander Griesser <work@tuxx-home.at>, 2008-01-13
interceptor.c.orig- */
interceptor.c.orig-static struct net *get_net_ns_by_pid(pid_t pid)
interceptor.c.orig-{
--
interceptor.c.orig- * and therefore should be the namespace for all local interfaces used
interceptor.c.orig- * to connect to your VPN gateway
interceptor.c.orig- *
interceptor.c.orig: * by Alexander Griesser <work@tuxx-home.at>, 2008-01-13
interceptor.c.orig- */
interceptor.c.orig- struct net *initnet = get_net_ns_by_pid((pid_t)1);
interceptor.c.orig-#endif
--
interceptor.c.rej-
interceptor.c.rej-+ /* 2.6.24 handles net_devices a little bit different
interceptor.c.rej-+ *
interceptor.c.rej:+ * by Alexander Griesser <work@tuxx-home.at>, 2008-01-11
interceptor.c.rej-+ */
interceptor.c.rej-+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
interceptor.c.rej-+ static struct net_device* interceptor_dev;
--
interceptor.c.rej-+ /* 2.6.24 needs to allocate each netdevice before registering it, otherwise
interceptor.c.rej-+ * the kernel BUG()s.
interceptor.c.rej-+ *
interceptor.c.rej:+ * by Alexander Griesser <work@tuxx-home.at>, 2008-01-11
interceptor.c.rej-+ */
interceptor.c.rej-+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
interceptor.c.rej-+ if(! (interceptor_dev = alloc_netdev(sizeof(struct net_device), interceptor_name, interceptor_init)))
Frankie
Private
Private
 
Posts: 1
Joined: Sun Aug 03, 2008 2:50 am

Re: cisco_ipsec.ko & FLAGS Hardy Heron 64 bit

Postby tuxx-home.at » Wed Dec 24, 2008 11:23 am

I don't know if this topic is still relevant, but there are a few new patches for 64bit systems:

[http://projects.tuxx-home.at/ciscovpn/patches/]

and new client versions

[http://projects.tuxx-home.at/ciscovpn/clients]

Maybe that helps?
User avatar
tuxx-home.at
Supreme Commander
Supreme Commander
 
Posts: 2199
Joined: Mon Jan 01, 2007 12:51 pm
Location: Vassach - Austria - Europe


Return to Cisco VPN Client on Linux systems

Who is online

Users browsing this forum: No registered users and 5 guests

cron