LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices

Reply
 
Search this Thread
Old 03-05-2007, 03:20 PM   #1
deadeyes
Member
 
Registered: Aug 2006
Posts: 605

Rep: Reputation: 78
Gentoo 2006.1 - Cisco vpnclient install problem (no Makefile.modpost))


Hi all,

I just installed Gentoo for the first time on another computer.
Problem is that I need to install the Cisco VPN Client to get on the internet. But to install I needed the kernel sources.

What I did was "emerge -Fp vanilla-sources" so I get the URLs. I downloaded from one of the mirrors and placed the patch and the kernel source in /usr/portage/distfiles.
After that I did "emerge vanilla-sources".
Then it got installed.
After that I had the sources installed in /usr/src/linux (symlink to the actual directory which is linux-2.6.17.6 or something like that).

Then I started the vpn installer.
It detected the kernelsources good.

But then I get this error which stops the compilation:
Code:
Cisco Systems VPN Client Version 4.8.00 (0490) Linux Installer
Copyright (C) 1998-2005 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 [no]yes

Directory containing runlevel directories (rcX.d): []/etc/init.d

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

* Binaries will be installed in "/usr/local/bin".
* Modules will be installed in "/lib/modules/2.6.17-gentoo-r7/CiscoVPN".
* The VPN service will be started AUTOMATICALLY at boot time.
* Kernel source from "/usr/src/linux" will be used to build the module.
* Runlevels will be set in "/etc/init.d".

Is the above correct [y]

Making module
make -C /usr/src/linux SUBDIRS=/home/gvm/Desktop/vpnclient modules
make[1]: Entering directory `/usr/src/linux-2.6.17.6'
Makefile:441: .config: No such file or directory

  WARNING: Symbol version dump /usr/src/linux-2.6.17.6/Module.symvers
             is missing; modules will have no dependencies and modversions.

	       Building modules, stage 2.
	       /usr/src/linux-2.6.17.6/scripts/Makefile.modpost:38: .config: No such file or directory
	       make[2]: *** No rule to make target `.config'.  Stop.
	       make[1]: *** [modules] Error 2
	       make[1]: Leaving directory `/usr/src/linux-2.6.17.6'
	       make: *** [default] Error 2
	       Failed to make module "cisco_ipsec.ko".
Can someone help me with this?
Or can give me some advice?
Keep in mind that I cant get on the internet directly from that computer.(I need to download packages from another computer and copy them with scp).

And I can't use the vpnc or what is it of linux. It does not work on our network.

THanks in advance...
Kind regards!
 
Old 03-05-2007, 07:44 PM   #2
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 3,177

Rep: Reputation: Disabled
Makefile:441: .config: No such file or directory

This means you did not use these sources for your current kernel, the .config file is missing.
 
Old 03-06-2007, 03:53 AM   #3
deadeyes
Member
 
Registered: Aug 2006
Posts: 605

Original Poster
Rep: Reputation: 78
Quote:
Originally Posted by Emerson
Makefile:441: .config: No such file or directory

This means you did not use these sources for your current kernel, the .config file is missing.
EDIT: I should actually build the kernel before I can use these sources for my Cisco VPN Client install? Or I just should do the "make menuconfig"?

I used the tar.bz2 ones that emerge told me to use.
And I also used uname -r. Those matched.
Could it give problems for compiling if I accidentally installed the gentoo-sources (with emerge) but accidentally placed the vanilla files in /usr/portage/distfiles? (I downloaded from an ftp who is not in the list).

Thanks for your reply!

Last edited by deadeyes; 03-06-2007 at 04:08 AM.
 
Old 03-06-2007, 05:41 AM   #4
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 3,177

Rep: Reputation: Disabled
I think it wants to parse your .config file to make sure you have all necessary options enabled in kernel. make menuconfig will produce one, so install may work (or may not), afterwards it has to work with your real kernel ... it won't if there is version mismatch or a necessary feature is missing.
 
Old 03-06-2007, 06:22 AM   #5
deadeyes
Member
 
Registered: Aug 2006
Posts: 605

Original Poster
Rep: Reputation: 78
Quote:
Originally Posted by Emerson
I think it wants to parse your .config file to make sure you have all necessary options enabled in kernel. make menuconfig will produce one, so install may work (or may not), afterwards it has to work with your real kernel ... it won't if there is version mismatch or a necessary feature is missing.
Should I really do the whole make menuconfig?
Or is there some file that holds the settings from the current kernel/or a basic config (I used the live/install cd without internet connection)?

I know in RedHat you have such a files. But I don't know if that's the case in Gentoo and how you call these files.

Thank you for your quick response!
 
Old 03-06-2007, 06:26 AM   #6
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 3,177

Rep: Reputation: Disabled
Try /proc/config.gz, can't say for sure, never used genkernel myself.
 
Old 03-07-2007, 01:56 AM   #7
deadeyes
Member
 
Registered: Aug 2006
Posts: 605

Original Poster
Rep: Reputation: 78
Quote:
Originally Posted by Emerson
Try /proc/config.gz, can't say for sure, never used genkernel myself.
I don't use the genkernel but vanilla kernel with patches.(those are the packages that I installed)

Can't I just use precompiled kernel sources (I probably only need the headers to compile the VPN CLient)? Or should I really recompile the kernel?

In /proc/config.gz is the actual configuration of the kernel, am I right? But how can I load this into make menuconfig?
Tried with make menuconfig filename-of-copy-of-config.gz.

I tried to compile but now I get a bunch of errors. So probably there is still something missing. So I need the kernel headers <<OR>> I need to recompile the kernel. Is this really necessary?

Greetings!

Last edited by deadeyes; 03-07-2007 at 02:06 AM.
 
Old 03-07-2007, 04:46 AM   #8
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 3,177

Rep: Reputation: Disabled
Can't I just use precompiled kernel sources (I probably only need the headers to compile the VPN CLient)?

Yes, you can. Just make sure it is exactly same version. Headers do not suffice. config.gz is obviously a gzip archive, did you unpack it?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Problem with Cisco vpnclient and RHEL 4.0 exitsfunnel Linux - Networking 2 11-27-2005 06:26 PM
Cisco vpnclient - kernel 2.6.10-1.760_FC3 ph4nt0m Linux - Software 1 02-20-2005 11:03 PM
cisco vpnclient does not work with 2.6.3+ larley Linux - Software 0 08-14-2004 02:56 AM
cisco vpnclient - can't read profile karimd Linux - Networking 1 08-13-2004 04:05 PM
Cisco VPNClient on Mandrake 9.0 a53man Linux - Networking 3 01-15-2003 03:25 AM


All times are GMT -5. The time now is 02:58 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration