LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Distributions (https://www.linuxquestions.org/questions/linux-distributions-5/)
-   -   Gentoo 2006.1 - Cisco vpnclient install problem (no Makefile.modpost)) (https://www.linuxquestions.org/questions/linux-distributions-5/gentoo-2006-1-cisco-vpnclient-install-problem-no-makefile-modpost-534836/)

deadeyes 03-05-2007 03:20 PM

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!

Emerson 03-05-2007 07:44 PM

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.

deadeyes 03-06-2007 03:53 AM

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!

Emerson 03-06-2007 05:41 AM

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.

deadeyes 03-06-2007 06:22 AM

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!

Emerson 03-06-2007 06:26 AM

Try /proc/config.gz, can't say for sure, never used genkernel myself.

deadeyes 03-07-2007 01:56 AM

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!

Emerson 03-07-2007 04:46 AM

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?


All times are GMT -5. The time now is 06:00 PM.