LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 03-01-2005, 11:12 PM   #1
atulhi
Member
 
Registered: Nov 2004
Posts: 35

Rep: Reputation: 15
Problems while making the module in Mandrake 10.1


Hi

I am trying to install a VPN client software on my home PC. After extracting the gz file, I do the following:-

[root@atul vpnclient]# ./vpn_install
Cisco Systems VPN Client Version 4.0.4 (A) Linux Installer
Copyright (C) 1998-2001 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.

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 de
fault

Directory containing linux kernel source code [] /usr/src

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

Is the above correct [y]

Making module
make -C /usr/src SUBDIRS=/home/atul/Desktop/VPN/vpnclient modules
make[1]: Entering directory `/usr/src'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/usr/src'
make: *** [default] Error 2
Failed to make module "cisco_ipsec.ko".


After this I run the following command:-

******************************
[root@atul vpnclient]# cd /usr/src
[root@atul src]# ls
RPM/
**********************

Am I missing some setup or some files ? I am newbie to Linux and would appreciate if someone can help
 
Old 03-02-2005, 12:29 AM   #2
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Re: Problems while making the module in Mandrake 10.1

Quote:
Originally posted by atulhi


Directory containing linux kernel source code [] /usr/src

Am I missing some setup or some files ? I am newbie to Linux and would appreciate if someone can help
You need to place your Mandrake installation DVD/CD in the drive and type

urpmi kernel-source

This will create a /usr/src/linux symlink to the new directory containing the kernel source tree which you are missing.

Then when you answer the above question specify /usr/src/linux
 
Old 03-03-2005, 03:45 PM   #3
atulhi
Member
 
Registered: Nov 2004
Posts: 35

Original Poster
Rep: Reputation: 15
Unhappy

hi oppose,

thanks for the reply and I tried your suggestions.

Acutally I had installed Mandrake10.1 by burning 3 CDs from a mirror site. I inserted the CDs (one by one and each time typed in the command), every time it says no kernel on the prompt


************************************
[root@atul root]# urpmi kernel -source
Unknown option: o
Unknown option: u
Unknown option: r
Unknown option: c
Unknown option: e
no package named kernel
************************************
 
Old 03-03-2005, 05:54 PM   #4
TxLonghorn
Member
 
Registered: Feb 2004
Location: Austin Texas
Distribution: Mandrake 9.2
Posts: 702

Rep: Reputation: 231Reputation: 231Reputation: 231
the kernel-source is on the download
see http://www.mandrakelinux.com/en/10.1/features/14.php3
kernel-source-2.6 2.6.8.1-10mdk : The source code for the Linux kernel
type kernel-source
not kernel -source
 
Old 03-03-2005, 09:04 PM   #5
atulhi
Member
 
Registered: Nov 2004
Posts: 35

Original Poster
Rep: Reputation: 15
Unhappy

hi

i tried urpmi kernel-source and it asked me to install a bunch of rpm files which i did and now my /usr/src/ directory has a link linux

*******************
[root@atul vpnclient]# cd /usr/src
[root@atul src]# ls
linux@ linux-2.4.27-0.pre2.1mdk/ RPM/
************************

But even now I am getting some kind of error. Following is what I am doing

*********************************************************************************************
[root@atul src]# cd /home/atul/Desktop/VPN/vpnclient
[root@atul vpnclient]# ./vpn_install
Cisco Systems VPN Client Version 4.0.4 (A) Linux Installer
Copyright (C) 1998-2001 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.

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 [/usr/src/linux]

* Binaries will be installed in "/usr/local/bin".
* Modules will be installed in "/lib/modules/2.6.8.1-12mdk/CiscoVPN".
* The VPN service will *NOT* be started automatically at boot time.
* Kernel source from "/usr/src/linux" will be used to build the module.

Is the above correct [y]

Making module
make -C /usr/src/linux SUBDIRS=/home/atul/Desktop/VPN/vpnclient modules
make[1]: Entering directory `/usr/src/linux-2.4.27-0.pre2.1mdk'
make -C /home/atul/Desktop/VPN/vpnclient CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.27-0.pre2.1mdk/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.27-0.pre2.1mdk/include/linux/modversions.h" MAKING_MODULES=1 modules
make[2]: Entering directory `/home/atul/Desktop/VPN/vpnclient'
make[2]: *** No rule to make target `modules'. Stop.
make[2]: Leaving directory `/home/atul/Desktop/VPN/vpnclient'
make[1]: *** [_mod_/home/atul/Desktop/VPN/vpnclient] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.27-0.pre2.1mdk'
make: *** [default] Error 2
Failed to make module "cisco_ipsec.ko".
[*************************************************************8


Still the problem exists...need some more inputs
 
Old 03-04-2005, 02:09 AM   #6
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Unfortunately this is an error in the Cisco script itself.

The script is attempting to make a module (driver) for the currently installed kernel.

It calls the make routing with "make modules".

However the Makefile which Cisco provided has no entry labeled "modules".

You may want to try to view the actual script and see if maybe there is a minor error in it.

e.g. module is defined but not modules and changing module to modules will fix the error.

The entries or labels are usually suffixed by a colon.

I.e.

modules:

etc.
 
Old 03-04-2005, 11:41 AM   #7
atulhi
Member
 
Registered: Nov 2004
Posts: 35

Original Poster
Rep: Reputation: 15
Smile

Hi Folks

I downloaded kernel-source-2.6 2.6.8.1-10mdk.rpm and installed it. That create a new symlink on the /usr/src/ directory and now I was able to work through the installation. I think the kernel-source that I installed earlier was not the right one and now it works.


Thanks a lot for your directions/suggestions.
 
Old 03-05-2005, 04:51 AM   #8
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
That will do it too.

Great!
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error making a module e13438 Linux - Networking 2 11-24-2005 12:52 PM
module making linuxhippy Slackware 3 03-26-2005 02:01 PM
Problems with mouse in Mandrake 9.1, modprobe: can't locate module serial jarkor Linux - Hardware 3 07-14-2003 12:04 PM
problems with mouse in Mandrake 9.1, modprobe: can't locate module serial jarkor Linux - Newbie 0 07-10-2003 09:49 PM
3c900 making problem with 3c59x module? realos Linux - General 1 11-08-2002 06:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 08:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration