Networking Forums

Networking Forums > Computer Networking > Linux Networking > Problem under FC4 with Cisco VPN Client

Reply
Thread Tools Display Modes

Problem under FC4 with Cisco VPN Client

 
 
scmoseman@gmail.com
Guest
Posts: n/a

 
      02-18-2006, 07:54 PM

Necessary kernel and kernel-devel packages installed.

# uname -a
Linux fedora 2.6.15-1.1831_FC4 xxxx i686 athlon i386 GNU/Linux

# rpm -q kernel | tail -1
kernel-2.6.15-1.1831_FC4

# rpm -q kernel-devel | tail -1
kernel-devel-2.6.15-1.1831_FC4

All of the binaries compiled okay. I get to the service start-up.

# /etc/init.d/vpnclient_init start
Starting /opt/cisco-vpnclient/bin/vpnclient: insmod: error inserting
'/lib/modules/2.6.15-1.1831_FC4/CiscoVPN/cisco_ipsec.ko': -1 Invalid
module format
Failed (insmod)

How do I start the troubleshooting process for the module issue?

# file /lib/modules/2.6.15-1.1831_FC4/CiscoVPN/cisco_ipsec.ko
/lib/modules/2.6.15-1.1831_FC4/CiscoVPN/cisco_ipsec.ko: ELF 32-bit LSB
relocatable, Intel 80386, version 1 (SYSV), not stripped

I saw something about running "file" on the module, but I'm not sure
what information I'm suppose to be trying to find in the output.

Any help on this?

Thanks,
Scott Moseman
http://www.Highflow.com/

 
Reply With Quote
 
 
 
 
MrC
Guest
Posts: n/a

 
      02-19-2006, 04:03 AM
(E-Mail Removed) wrote:

>
> Necessary kernel and kernel-devel packages installed.
>
> # uname -a
> Linux fedora 2.6.15-1.1831_FC4 xxxx i686 athlon i386 GNU/Linux
>
> # rpm -q kernel | tail -1
> kernel-2.6.15-1.1831_FC4
>
> # rpm -q kernel-devel | tail -1
> kernel-devel-2.6.15-1.1831_FC4
>
> All of the binaries compiled okay. I get to the service start-up.
>
> # /etc/init.d/vpnclient_init start
> Starting /opt/cisco-vpnclient/bin/vpnclient: insmod: error inserting
> '/lib/modules/2.6.15-1.1831_FC4/CiscoVPN/cisco_ipsec.ko': -1 Invalid
> module format
> Failed (insmod)
>
> How do I start the troubleshooting process for the module issue?
>
> # file /lib/modules/2.6.15-1.1831_FC4/CiscoVPN/cisco_ipsec.ko
> /lib/modules/2.6.15-1.1831_FC4/CiscoVPN/cisco_ipsec.ko: ELF 32-bit LSB
> relocatable, Intel 80386, version 1 (SYSV), not stripped
>
> I saw something about running "file" on the module, but I'm not sure
> what information I'm suppose to be trying to find in the output.
>
> Any help on this?
>
> Thanks,
> Scott Moseman
> http://www.Highflow.com/


When you ran the Cisco "vpn_install" script to build your
cisco vpn module, are you sure you were running the
2.6.15-1.1831_FC4 kernel? Apparently you did that ok
because it installed it in
/modules/2.6.15-1.1831_FC4/CiscoVPN/

One problem that nailed me is that I ran vpn_install
on a earlier kernel, then later updated my
kernel source then reran the vpn_install. But what I
didn't notice is that because I didn't delete all the
old *.o files, GCC compiler just relinked the o files
and made the cisco module. I couldn't run this module
with the new kernel because the "vermagic" label in
the kernel was still the one from the previous kernel.

You can run modinfo and check the vermagic, this is mine:

modinfo /lib/modules/2.6.14-mos/CiscoVPN/cisco_ipsec.ko
filename: /lib/modules/2.6.14-mos/CiscoVPN/cisco_ipsec.ko
license: Proprietary
vermagic: 2.6.14-mos SMP K8 REGPARM gcc-4.0
depends: ^^^^^^^^^^

The "2.6.14-mos" should match the `uname -r` and on my
box which is working with cisco vpn it does:

uname -r
2.6.14-mos

If you try to install a module and the vermagic refers to
a different kernel, then it will refuse to load it and
say "invalid module format"

The solution is to make sure you clean out all the old
object files and then recompile the cisco vpn module
while running the kernel you're going to use it with.

Mark
 
Reply With Quote
 
Scott Moseman
Guest
Posts: n/a

 
      02-19-2006, 02:34 PM
Thanks for the information, Mark. Here's my output.

# modinfo /lib/modules/2.6.15-1.1831_FC4/CiscoVPN/cisco_ipsec.ko
filename: /lib/modules/2.6.15-1.1831_FC4/CiscoVPN/cisco_ipsec.ko
license: Proprietary
vermagic: 2.6.15-1.1831_FC4 586 REGPARM 4KSTACKS gcc-4.0
depends:

# uname -r
2.6.15-1.1831_FC4

# /etc/init.d/vpnclient_init start
Starting /opt/cisco-vpnclient/bin/vpnclient: insmod: error inserting
'/lib/modules/2.6.15-1.1831_FC4/CiscoVPN/cisco_ipsec.ko': -1 Invalid
module format
Failed (insmod)

It would seem like that's not the problem, but it makes sense.
Although I did tail my messages log, and check this out.

# tail -1 /var/log/messages
Feb 19 08:02:42 fedora kernel: cisco_ipsec: version magic
'2.6.15-1.1831_FC4 586 REGPARM 4KSTACKS gcc-4.0' should be
'2.6.15-1.1831_FC4 686 REGPARM 4KSTACKS gcc-4.0'

I had installed the i586 version of kernel-devel, but it appears that
maybe it wants the i686 version (I'm not sure of the difference). So I
removed the i586 version and installed the i686 version of kernel-devel
and it's working great now.

Thanks for your help Mark, it's truly appreciated.

Thanks,
Scott Moseman
http://www.Highflow.com/

 
Reply With Quote
 
MrC
Guest
Posts: n/a

 
      02-20-2006, 02:22 AM
Scott Moseman wrote:

> Thanks for the information, Mark. Here's my output.
>
> # modinfo /lib/modules/2.6.15-1.1831_FC4/CiscoVPN/cisco_ipsec.ko
> filename: /lib/modules/2.6.15-1.1831_FC4/CiscoVPN/cisco_ipsec.ko
> license: Proprietary
> vermagic: 2.6.15-1.1831_FC4 586 REGPARM 4KSTACKS gcc-4.0
> depends:
>
> # uname -r
> 2.6.15-1.1831_FC4
>
> # /etc/init.d/vpnclient_init start
> Starting /opt/cisco-vpnclient/bin/vpnclient: insmod: error inserting
> '/lib/modules/2.6.15-1.1831_FC4/CiscoVPN/cisco_ipsec.ko': -1 Invalid
> module format
> Failed (insmod)
>
> It would seem like that's not the problem, but it makes sense.
> Although I did tail my messages log, and check this out.
>
> # tail -1 /var/log/messages
> Feb 19 08:02:42 fedora kernel: cisco_ipsec: version magic
> '2.6.15-1.1831_FC4 586 REGPARM 4KSTACKS gcc-4.0' should be
> '2.6.15-1.1831_FC4 686 REGPARM 4KSTACKS gcc-4.0'
>
> I had installed the i586 version of kernel-devel, but it appears that
> maybe it wants the i686 version (I'm not sure of the difference). So I
> removed the i586 version and installed the i686 version of kernel-devel
> and it's working great now.
>
> Thanks for your help Mark, it's truly appreciated.
>
> Thanks,
> Scott Moseman
> http://www.Highflow.com/


Are you using the latest cisco vpn?, I think the
latest is: vpnclient-linux-4.8.00.0490-k9.tar.gz
or version 4.8.00 (0490)
Mark
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cisco vpn client Stephen Linux Networking 0 03-22-2005 02:20 AM
Trouble Installing Linux/Cisco VPN Client Has anyone had trouble compiling the linux cisco vpn client? Here is the output of the install script: # uname -rviosm Linux 2.4.22-1.2188.nptl #1 Wed Apr 21 20:19:18 EDT 2004 x86_64 x86_64 GNU/Linux JSH Linux Networking 4 07-02-2004 01:48 PM
VPN Client from Cisco conection problem blipp Broadband Hardware 2 05-24-2004 03:19 AM
L2TPD/Cisco VPN client problem Bas Linux Networking 0 10-02-2003 02:38 PM
Q: Non-Cisco wireless client adapters on Cisco AP350 WLAN ? Martin Bilgrav Wireless Internet 3 06-30-2003 03:06 AM



1 2 3 4 5 6 7 8 9 10 11