Cisco VPN client and Fedora 9: cisco_ipsec.ko': -1 Invalid module format
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 7 of 7
  1. #1
    pmotta1967 Guest

    Cisco VPN client and Fedora 9: cisco_ipsec.ko': -1 Invalid module format

    I have a

    Gateway laptop
    Fedora 9
    uname -r 2.6.25-14.fc9.i686
    Cisco VPN client vpnclient-linux-4.8.01.0640.tar

    I was able to compile it by using patch vpnclient-linux-2.6.24-final.diff

    gcc.i386 4.3.0-8 installed
    gcc-c++.i386 4.3.0-8 installed
    libgcc.i386 4.3.0-8 installed

    But when I try to init it:

    [root@localhost vpnclient]# /etc/init.d/vpnclient_init start
    Starting /opt/cisco-vpnclient/bin/vpnclient: insmod: error inserting '/lib/modules/2.6.25-14.fc9.i686/CiscoVPN/cisco_ipsec.ko': -1 Invalid module format
    Failed (insmod)

    Any suggestions?

  2. #2
    Join Date
    Jun 2008
    Location
    Beaverton, OR
    Posts
    4
    Quote Originally Posted by pmotta1967
    I have a

    Gateway laptop
    Fedora 9
    uname -r 2.6.25-14.fc9.i686
    Cisco VPN client vpnclient-linux-4.8.01.0640.tar

    I was able to compile it by using patch vpnclient-linux-2.6.24-final.diff

    gcc.i386 4.3.0-8 installed
    gcc-c++.i386 4.3.0-8 installed
    libgcc.i386 4.3.0-8 installed

    But when I try to init it:

    [root@localhost vpnclient]# /etc/init.d/vpnclient_init start
    Starting /opt/cisco-vpnclient/bin/vpnclient: insmod: error inserting '/lib/modules/2.6.25-14.fc9.i686/CiscoVPN/cisco_ipsec.ko': -1 Invalid module format
    Failed (insmod)

    Any suggestions?
    Did you by any chance compile this for an earlier kernel using the same build directory?

    Check dmesg and see if there is an entry that says:

    "cisco_ipsec: version magic '2.6.25.3-18.fc9.i686 SMP mod_unload 686 4KSTACKS ' should be '2.6.25.4-30.fc9.i686 SMP mod_unload 686 4KSTACKS ' "

    If so then go back to the vpnclient directory where you built the software and do a "make clean" then try the build and the "/etc/init.d/vpnclient_init start " command again. The biuld process Makefile is creating some intermediate files that are kernel specific and you have to "clear" the build directory before you can re-make the module.

    You may have to actually run the ./vpn_uninstall that comes in vpnclient-linux-x86_64-4.8.01.0640-k9.tar.gz but I suspect not.

    This worked for me with F9, the vpnclient-linux-2.6.24-final.diff applied, and the 2.6.25.4-30.fc9.i686 kernel.

    Good luck.

    ~~Richard

  3. #3
    pmotta1967 Guest
    You were right on the money!

    I had a mismatch between

    /usr/src/kernels/2.6.25.3-18.fc9.i686

    and my actual kernel

    uname -r 2.6.25-14.fc9.i686

    So, I downloaded the latest kernel-devel package and update my kernel, so now both would match. I made sure to check that /lib/modules/build would point to the correct /usr/src/kernels.
    I executed make clean, vpn_install and everything worked fine.

    Thank you very much!

  4. #4
    Join Date
    Oct 2004
    Location
    Ottawa, ON, Canada
    Age
    40
    Posts
    31
    I'm also having issues, but I cannot even compile this.

    Here's the error I get:

    Directory containing linux kernel source code []/usr/src/redhat/BUILD/kernel-2.6.25/linux-2.6.25.i686/

    * Binaries will be installed in "/usr/local/bin".
    * Modules will be installed in "/lib/modules/2.6.25.6-55.fc9.i686/CiscoVPN".
    * The VPN service will *NOT* be started automatically at boot time.
    * Kernel source from "/usr/src/redhat/BUILD/kernel-2.6.25/linux-2.6.25.i686/" will be used to build the module.

    Is the above correct [y]

    Making module
    make -C /usr/src/redhat/BUILD/kernel-2.6.25/linux-2.6.25.i686/ SUBDIRS=/home/alyster/cisco/vpnclient modules
    make[1]: Entering directory `/usr/src/redhat/BUILD/kernel-2.6.25/linux-2.6.25.i686'

    ERROR: Kernel configuration is invalid.
    include/linux/autoconf.h or include/config/auto.conf are missing.
    Run 'make oldconfig && make prepare' on kernel src to fix it.


    WARNING: Symbol version dump /usr/src/redhat/BUILD/kernel-2.6.25/linux-2.6.25.i686/Module.symvers
    is missing; modules will have no dependencies and modversions.

    Building modules, stage 2.
    /usr/src/redhat/BUILD/kernel-2.6.25/linux-2.6.25.i686/scripts/Makefile.modpost:43: include/config/auto.conf: No such file or directory
    make[2]: *** No rule to make target `include/config/auto.conf'. Stop.
    make[1]: *** [modules] Error 2
    make[1]: Leaving directory `/usr/src/redhat/BUILD/kernel-2.6.25/linux-2.6.25.i686'
    make: *** [default] Error 2
    Failed to make module "cisco_ipsec.ko".


    And the output of uname -r:

    2.6.25.6-55.fc9.i686

    and:

    rpm -qa | grep -i kernel
    kernel-2.6.25.6-55.fc9.i686
    kerneloops-0.10-11.fc9.i386
    kernel-headers-2.6.25.6-55.fc9.i386

    I used the guide at mjwired to install the kernel source - but I figure I've mucked something up :/

    Any direction would be appreciated.

    Cheers!

  5. #5
    Join Date
    Oct 2004
    Location
    Ottawa, ON, Canada
    Age
    40
    Posts
    31
    Oh wait, I need kernel-devel for the right kernel-headers...

    Let's see if that fixes it

    ....


    It didn't :/
    Last edited by alyster; 19th June 2008 at 02:01 AM.

  6. #6
    Join Date
    Nov 2004
    Location
    Denmark
    Age
    37
    Posts
    56
    Hi
    I have the same problem, trying to install the Cisco VPN client. I also have the following packet installed

    [root@wmli019671 vpnclient]# rpm -qa |grep kernel*
    kernel-devel-2.6.25.6-55.fc9.x86_64
    kernel-xen-2.6.25.3-2.fc9.x86_64
    kerneloops-0.10-11.fc9.x86_64
    kernel-devel-2.6.25.4-30.fc9.x86_64
    kernel-2.6.25.6-55.fc9.x86_64
    kernel-xen-2.6.25.3-1.fc9.x86_64
    kernel-2.6.25.4-30.fc9.x86_64
    kernel-headers-2.6.25.6-55.fc9.x86_64
    [root@wmli019671 vpnclient]# uname -r
    2.6.25.6-55.fc9.x86_64
    [root@wmli019671 vpnclient]#

    I keep getting

    [root@wmli019671 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]no

    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.6-55.fc9.x86_64/build]

    * Binaries will be installed in "/usr/local/bin".
    * Modules will be installed in "/lib/modules/2.6.25.6-55.fc9.x86_64/CiscoVPN".
    * The VPN service will *NOT* be started automatically at boot time.
    * Kernel source from "/lib/modules/2.6.25.6-55.fc9.x86_64/build" will be used to build the module.

    Is the above correct [y]

    Making module
    make -C /lib/modules/2.6.25.6-55.fc9.x86_64/build SUBDIRS=/home/nielsenda/Download/vpnclient modules
    make[1]: Entering directory `/usr/src/kernels/2.6.25.6-55.fc9.x86_64'
    scripts/Makefile.build:46: *** CFLAGS was changed in "/home/nielsenda/Download/vpnclient/Makefile". Fix it to use EXTRA_CFLAGS. Stop.
    make[1]: *** [_module_/home/nielsenda/Download/vpnclient] Error 2
    make[1]: Leaving directory `/usr/src/kernels/2.6.25.6-55.fc9.x86_64'
    make: *** [default] Error 2
    Failed to make module "cisco_ipsec.ko".
    [root@wmli019671 vpnclient]#

    even that I already have patched the vpnclient source dir, with

    [root@wmli019671 Download]# cd vpnclient
    [root@wmli019671 vpnclient]# patch <../vpnclient-linux-2.6.24-final.diff
    patching file GenDefs.h
    Reversed (or previously applied) patch detected! Assume -R? [n] y
    patching file interceptor.c
    Reversed (or previously applied) patch detected! Assume -R? [n] y
    [root@wmli019671 vpnclient]#

    I have looked around with google to find some clues, but without luck.
    Dennis Appelon Nielsen

    Remember
    - Linux is simple. It just takes a genius to understand its simplicity.

  7. #7
    BoogerFace Guest

    fdopen: Invalid arguement

    Greetings,
    I was curious has anyone encountered this error

    Summary:
    dell latitude d610
    fedora 9
    kernel-headers, kernel-devel, uname -r all match
    as root
    ./vpn_install ran without error
    ./vpnclient_init starts without error
    but
    ./vpnclient connect XXX
    fdopen: Invalid argument
    Cannot secure command line arguments

    not sure what that means
    any help would be much appreciated thanks

Similar Threads

  1. Cisco VPN problems Failed to make module "cisco_ipsec.ko"
    By blittle in forum Servers & Networking
    Replies: 4
    Last Post: 17th July 2008, 01:26 AM
  2. modprobe and invalid module format
    By Walzing in forum Using Fedora
    Replies: 1
    Last Post: 21st November 2006, 06:29 PM
  3. Invalid Module Format???
    By binnymitch in forum Using Fedora
    Replies: 6
    Last Post: 12th July 2006, 09:55 PM
  4. Invalid module format for ntfs (fc3)
    By ApuX in forum Using Fedora
    Replies: 6
    Last Post: 11th November 2004, 12:40 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •