Failed to make module "cisco_ipsec.ko" with 2.6.28-8-generic

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

Failed to make module "cisco_ipsec.ko" with 2.6.28-8-generic

Postby elyobelyob » Thu Mar 05, 2009 1:36 pm

Hi, I've been trying to install the latest vpn client (4.8.02/vpnclient-linux-x86_64-4.8.02.0030-k9.tar.gz) and receive the following error on Ubunutu 8.10

elyob@nc10:~/temp/vpnclient$ uname -r
2.6.28-8-generic

I can't see any of the obvious spaces etc, and haven't run the patch as I believe it is no longer needed (?). It's probably something obvious, but I have no idea. I've also removed vpnc for the time being. Thanks

elyob@nc10:~/temp/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.

For RedHat 6.x users these files are installed in /usr/src/linux by default
For RedHat 7.x users these files are installed in /usr/src/linux-2.4 by default
For Suse 7.3 users these files are installed in /usr/src/linux-2.4.10.SuSE by default

Directory containing linux kernel source code []/lib/modules/2.6.28-8-generic

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

Is the above correct [y]y

Making module
make -C /lib/modules/2.6.28-8-generic SUBDIRS=/home/elyob/temp/vpnclient modules
make[1]: Entering directory `/lib/modules/2.6.28-8-generic'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/lib/modules/2.6.28-8-generic'
make: *** [default] Error 2
Failed to make module "cisco_ipsec.ko".
elyobelyob
Private
Private
 
Posts: 2
Joined: Thu Mar 05, 2009 1:32 pm

Re: Failed to make module "cisco_ipsec.ko" with 2.6.28-8-generic

Postby tuxx-home.at » Thu Mar 12, 2009 10:21 am

Are you sure that you have the kernel sources installed? Doesn't seem to be the case, otherwise your kernel would know how to `make modules`.

Depending on your distribution, the following command may work out for you:

Code: Select all
sudo apt-get install linux-source


If the source is already installed, try the following:

Code: Select all
cd /lib/modules/$(uname -r)/build
make modules_prepare
#or
make prepare
User avatar
tuxx-home.at
Supreme Commander
Supreme Commander
 
Posts: 2199
Joined: Mon Jan 01, 2007 12:51 pm
Location: Vassach - Austria - Europe

Re: Failed to make module "cisco_ipsec.ko" with 2.6.28-8-generic

Postby elyobelyob » Thu Mar 12, 2009 7:59 pm

Thanks, I have now installed linux-sources. However still get same problem.

Trying the second part, I also don't have a build folder under /lib/modules/2.6.28-8-generic

I'm running Ubuntu 8.10 ... however have updated my repositories to point to some latest builds.

Nick
elyobelyob
Private
Private
 
Posts: 2
Joined: Thu Mar 05, 2009 1:32 pm

Re: Failed to make module "cisco_ipsec.ko" with 2.6.28-8-generic

Postby ScienceDave » Tue Jun 23, 2009 9:16 pm

Frustrating... I'm using Unbuntu 9.04 and I've been trying to install the Cisco VPN client for Linux (version 4.8.01)

I've been going through several issues similiar to this on this site. I tried adding the kernel source... copy/paste

someuser@WNL22205:~/downloads/ciscoVPN/vpnclient$ sudo apt-get install linux-source
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
linux-source-2.6.28
Suggested packages:
libncurses-dev ncurses-dev kernel-package libqt3-dev
The following NEW packages will be installed:
linux-source linux-source-2.6.28
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 56.9MB of archives.
After this operation, 57.1MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com jaunty-updates/main linux-source-2.6.28 2.6.28-13.44 [56.9MB]
Get:2 http://us.archive.ubuntu.com jaunty-updates/main linux-source 2.6.28.13.17 [3456B]
Fetched 56.9MB in 22min 40s (41.8kB/s)
Selecting previously deselected package linux-source-2.6.28.
(Reading database ... 122903 files and directories currently installed.)
Unpacking linux-source-2.6.28 (from .../linux-source-2.6.28_2.6.28-13.44_all.deb) ...
Selecting previously deselected package linux-source.
Unpacking linux-source (from .../linux-source_2.6.28.13.17_all.deb) ...
Setting up linux-source-2.6.28 (2.6.28-13.44) ...
Setting up linux-source (2.6.28.13.17) ...
someuser@WNL22205:~/downloads/ciscoVPN/vpnclient$ sudo ./vpn_install[sudo] password for someuser:
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.28-13-generic/build]

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

Is the above correct [y]

Making module
make -C /lib/modules/2.6.28-13-generic/build SUBDIRS=/home/someuser/downloads/ciscoVPN/vpnclient modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.28-13-generic'
CC [M] /home/someuser/downloads/ciscoVPN/vpnclient/linuxcniapi.o
In file included from /home/someuser/downloads/ciscoVPN/vpnclient/Cniapi.h:15,
from /home/someuser/downloads/ciscoVPN/vpnclient/linuxcniapi.c:31:
/home/someuser/downloads/ciscoVPN/vpnclient/GenDefs.h:113: error: conflicting types for ‘uintptr_t’
include/linux/types.h:40: error: previous declaration of ‘uintptr_t’ was here
make[2]: *** [/home/someuser/downloads/ciscoVPN/vpnclient/linuxcniapi.o] Error 1
make[1]: *** [_module_/home/someuser/downloads/ciscoVPN/vpnclient] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-13-generic'
make: *** [default] Error 2
Failed to make module "cisco_ipsec.ko".


I also tried to do a "make modules_prepare" and a "make prepare" Here's what I get for that!

sudo make modules_prepare
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/basic/hash
HOSTCC scripts/kconfig/conf.o
scripts/kconfig/conf.c: In function ‘conf_askvalue’:
scripts/kconfig/conf.c:104: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
scripts/kconfig/conf.c: In function ‘conf_choice’:
scripts/kconfig/conf.c:306: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
HOSTCC scripts/kconfig/kxgettext.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -s arch/x86/Kconfig
CHK include/linux/version.h
CHK include/linux/utsrelease.h
UPD include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-x86
make[1]: *** No rule to make target `kernel/bounds.c', needed by `kernel/bounds.s'. Stop.
make: *** [prepare0] Error 2
someuser@WNL22205:/lib/modules/2.6.28-13-generic/build$ sudo make prepare
CHK include/linux/version.h
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-x86
make[1]: *** No rule to make target `kernel/bounds.c', needed by `kernel/bounds.s'. Stop.
make: *** [prepare0] Error 2

Also, I confess....I've been away from Linux/Unix for too long. I've been held prisoner in a microsoft world since 2002.
ScienceDave
Private
Private
 
Posts: 1
Joined: Tue Jun 23, 2009 6:31 pm

Re: Failed to make module "cisco_ipsec.ko" with 2.6.28-8-gen

Postby franknarf » Tue Jan 25, 2011 4:20 pm

I have the same problem as ScienceDave (same output after attempting to install and make prepare), but with 2.6.35-22-generic. Any other ideas? Thanks
franknarf
Private
Private
 
Posts: 1
Joined: Tue Jan 25, 2011 4:16 pm

Re: Failed to make module "cisco_ipsec.ko" with 2.6.28-8-gen

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

Thank for your post !
S.Dave
Private
Private
 
Posts: 4
Joined: Tue Mar 01, 2011 10:44 pm


Return to Cisco VPN Client on Linux systems

Who is online

Users browsing this forum: No registered users and 4 guests

cron