Cisco VPN Client and SuSE11 x86_64 error installing

Hi to all.

For some reason can’t install Cisco VPN client on SuSE 11. I have found that Cisco VPNcli does not support multiprocessor and 64bit Linux! Is that true?

Anyway… Here goes error from shell

P.S.

I have edited and changed Makefile. CFLAGS was changed in “/usr/src/vpnclient/Makefile” to use EXTRA_CFLAGS.

suse:/usr/src/vpnclient # ./vpn_install
Cisco Systems VPN Client Version 4.8.01 (0640) 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.25.16-0.1-default/build]

  • Binaries will be installed in “/usr/local/bin”.
  • Modules will be installed in “/lib/modules/2.6.25.16-0.1-default/CiscoVPN”.
  • The VPN service will be started AUTOMATICALLY at boot time.
  • Kernel source from “/lib/modules/2.6.25.16-0.1-default/build” will be used to build the module.

Is the above correct [y]

Making module
make -C /lib/modules/2.6.25.16-0.1-default/build SUBDIRS=/usr/src/vpnclient modules
make[1]: Entering directory /usr/src/linux-2.6.25.16-0.1-obj/x86_64/default' make -C /usr/src/linux-2.6.25.16-0.1 O=/usr/src/linux-2.6.25.16-0.1-obj/x86_64/default/. modules 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:110:2: warning: #warning 64 bit In file included from /usr/src/vpnclient/Cniapi.h:15, from /usr/src/vpnclient/linuxcniapi.c:31: /usr/src/vpnclient/GenDefs.h:111: error: conflicting types for ‘uintptr_t’ /usr/src/linux-2.6.25.16-0.1/include/linux/types.h:40: error: previous declaration of ‘uintptr_t’ was here /usr/src/vpnclient/linuxcniapi.c: In function ‘CniInjectReceive’: /usr/src/vpnclient/linuxcniapi.c:341: warning: cast from pointer to integer of different size /usr/src/vpnclient/linuxcniapi.c:342: warning: cast from pointer to integer of different size /usr/src/vpnclient/linuxcniapi.c: In function ‘CniInjectSend’: /usr/src/vpnclient/linuxcniapi.c:481: warning: cast from pointer to integer of different size /usr/src/vpnclient/linuxcniapi.c:482: warning: cast from pointer to integer of different size /usr/src/vpnclient/linuxcniapi.c:491: warning: cast to pointer from integer of different size /usr/src/vpnclient/linuxcniapi.c:491: warning: cast from pointer to integer of different size make[4]: *** [/usr/src/vpnclient/linuxcniapi.o] Error 1 make[3]: *** [_module_/usr/src/vpnclient] Error 2 make[2]: *** [sub-make] Error 2 make[1]: *** [all] Error 2 make[1]: Leaving directory /usr/src/linux-2.6.25.16-0.1-obj/x86_64/default’
make: *** [default] Error 2
Failed to make module “cisco_ipsec.ko”.
suse:/usr/src/vpnclient #

Unfortunately for x86_64 architecture you need a patch. More info take a look here :

With kernel 2.6.24 you will need a patch to install Cisco VPN Client | L.A.M.N.K

On Mon, 2008-10-13 at 12:46 +0000, kojo1984 wrote:
> Hi to all.
>
>
> For some reason can’t install Cisco VPN client on SuSE 11. I have found
> that Cisco VPNcli does not support multiprocessor and 64bit Linux! Is
> that true?
>
> …

> :/usr/src/vpnclient # ./vpn_install
> > Cisco Systems VPN Client Version 4.8.01 (0640) Linux Installer
> > Copyright (C) 1998-2006 Cisco Systems, Inc. All Rights Reserved.
> >

4.8.01 requires patching to compile.
I believe 4.8.02 will work just fine though. I suggest
you get that one. If not, you can do some googling to
find the patches to make 4.8.01 go (at my office I
distribute the patched 4.8.01 version… well… up
until the point that 4.8.02 was made available).

Have you tried vpnc? Cisco compatible + there is a networkmanager part for it to :slight_smile:

Works great here for connecting to my jobs cisco vpn.


S | Name                      | Summary                                | Type   
--+---------------------------+----------------------------------------+--------
i | NetworkManager-vpnc       | NetworkManager VPN Support for vpnc    | package
i | NetworkManager-vpnc-gnome | NetworkManager VPN Support for vpnc    | package
  | NetworkManager-vpnc-kde   | KNetworkManager application for use -> | package
  | kvpnc                     | GUI Front-End for openswan and vpnc    | package
i | vpnc                      | Client for Cisco 3000, IOS routers, -> | package

Information for package vpnc:

Repository: openSUSE 11 Retail
Name: vpnc
Version: 0.5.1-30.1
Arch: i586
Vendor: SUSE LINUX Products GmbH, Nuernberg, Germany
Installed: Yes
Status: up-to-date
Installed Size: 196,0 K
Summary: Client for Cisco 3000, IOS routers, PIX / ASA Zecurity Appliances, and Juniper/Netscreen
Description: 
A VPN client compatible with Cisco's EasyVPN equipment.
Supported Authentications: Pre-Shared-Key + XAUTH, Pre-Shared-Key
Supported IKE DH-Groups: dh1 dh2 dh5 Supported Hash Algo (IKE/IPSEC):
md5 sha1 Supported Encryptions (IKE/IPSEC): (null) (1des) 3des aes128
aes192 aes256 Perfect Forward Secrecy: nopfs dh1 dh2 dh5
It runs entirely in userspace and uses the TUN/TAP driver for access.
Authors:







Edit: Use the vpnc in a terminal first time you connect, thatone gives more feedback so you see more whats going on. Nb, have to root to use vpnc in term.

Patched, but I’m still gettin’ an error…
My kernel is 2.6.25.x, but on link you gave me it says “UPDATE: with 2.6.25 kernel this patch is still required (luckily)”…

suse:/usr/src/vpnclient # patch < ./vpnclient-linux-2.6.24-final.diff
patching file GenDefs.h
Hunk #2 succeeded at 115 with fuzz 2 (offset 1 line).
patching file interceptor.c
Hunk #1 succeeded at 40 with fuzz 2 (offset 12 lines).
Hunk #2 succeeded at 60 (offset 12 lines).
Hunk #3 succeeded at 119 (offset 12 lines).
Hunk #4 succeeded at 145 (offset 12 lines).
Hunk #5 succeeded at 374 (offset 12 lines).
Hunk #6 succeeded at 931 (offset 12 lines).
Hunk #7 succeeded at 959 (offset 12 lines).
suse:/usr/src/vpnclient # ./vpn_install
Cisco Systems VPN Client Version 4.8.01 (0640) 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.25.16-0.1-default/build]

  • Binaries will be installed in “/usr/local/bin”.
  • Modules will be installed in “/lib/modules/2.6.25.16-0.1-default/CiscoVPN”.
  • The VPN service will be started AUTOMATICALLY at boot time.
  • Kernel source from “/lib/modules/2.6.25.16-0.1-default/build” will be used to build the module.

Is the above correct [y]

Making module
make -C /lib/modules/2.6.25.16-0.1-default/build SUBDIRS=/usr/src/vpnclient modules
make[1]: Entering directory /usr/src/linux-2.6.25.16-0.1-obj/x86_64/default' make -C /usr/src/linux-2.6.25.16-0.1 O=/usr/src/linux-2.6.25.16-0.1-obj/x86_64/default/. modules 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:110:2: warning: #warning 64 bit In file included from /usr/src/vpnclient/Cniapi.h:15, from /usr/src/vpnclient/linuxcniapi.c:31: /usr/src/vpnclient/GenDefs.h:111: error: conflicting types for ‘uintptr_t’ /usr/src/linux-2.6.25.16-0.1/include/linux/types.h:40: error: previous declaration of ‘uintptr_t’ was here /usr/src/vpnclient/GenDefs.h:214:2: error: #endif without #if /usr/src/vpnclient/linuxcniapi.c: In function ‘CniInjectReceive’: /usr/src/vpnclient/linuxcniapi.c:341: warning: cast from pointer to integer of different size /usr/src/vpnclient/linuxcniapi.c:342: warning: cast from pointer to integer of different size /usr/src/vpnclient/linuxcniapi.c: In function ‘CniInjectSend’: /usr/src/vpnclient/linuxcniapi.c:481: warning: cast from pointer to integer of different size /usr/src/vpnclient/linuxcniapi.c:482: warning: cast from pointer to integer of different size /usr/src/vpnclient/linuxcniapi.c:491: warning: cast to pointer from integer of different size /usr/src/vpnclient/linuxcniapi.c:491: warning: cast from pointer to integer of different size make[4]: *** [/usr/src/vpnclient/linuxcniapi.o] Error 1 make[3]: *** [_module_/usr/src/vpnclient] Error 2 make[2]: *** [sub-make] Error 2 make[1]: *** [all] Error 2 make[1]: Leaving directory /usr/src/linux-2.6.25.16-0.1-obj/x86_64/default’
make: *** [default] Error 2
Failed to make module “cisco_ipsec.ko”.

the same error like before patching…

Have a look at [projects.tuxx-home.at]](http://projects.tuxx-home.at/?id=cisco_vpn_client)

On Mon, 2008-10-13 at 16:16 +0000, Zaitor wrote:
> Have you tried vpnc? Cisco compatible + there is a networkmanager part
> for it to :slight_smile:
>
> Works great here for connecting to my jobs cisco vpn.

Ditto. I agree. If vpnc works with your Cisco setup, use it.
Cisco is pretty clueless about writing kernel drivers for Linux.
Also, if your boss says it’s the only way to avoid split
tunneling… I can show you can do it using Cisco’s proprietary
driver as well.

TNX for your efforts guys. Installed and using VPNC… But I will not give up trying to install Cisco VPN client.

kojo1984 wrote:
> cjcox;1883096 Wrote:
>> On Mon, 2008-10-13 at 16:16 +0000, Zaitor wrote:
>>> Have you tried vpnc? Cisco compatible + there is a networkmanager
>> part
>>> for it to :slight_smile:
>>>
>>> Works great here for connecting to my jobs cisco vpn.
>> Ditto. I agree. If vpnc works with your Cisco setup, use it.
>> Cisco is pretty clueless about writing kernel drivers for Linux.
>> Also, if your boss says it’s the only way to avoid split
>> tunneling… I can show you can do it using Cisco’s proprietary
>> driver as well.
>
> TNX for your efforts guys. Installed and using VPNC… But I will not
> give up trying to install Cisco VPN client.

I will guarantee you that eventually your system will hang if
you use the Cisco VPN client… it’s really that bad.

You might be able to use it for hours on end… even days… then
one day… crash!

Try this:
Index of /ciscovpn/clients/linux/4.8.02

works fine for me

Sorry, this is correct link:
http://projects.tuxx-home.at/ciscovpn/clients/linux/4.8.02/vpnclient-linux-x86_64-4.8.02.0030-k9.tar.gz