Gentoo Archives: gentoo-user

From: Glenn Enright <elinar@×××××××.nz>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Unable to calculate Linux Kernel version
Date: Fri, 16 Sep 2005 11:03:37
Message-Id: 200509161104.31149.elinar@ihug.co.nz
In Reply to: Re: [gentoo-user] Unable to calculate Linux Kernel version by Holly Bostick
1 On Fri, 16 Sep 2005 10:18, Holly Bostick wrote:
2 > Dave Nebinger schreef:
3 > >> "/usr/src/ -> linux-2.6.11-gentoo-r4"
4 > >>
5 > >> "/usr/src/linux-2.6.11-gentoo-r4" exists
6 > >
7 > > You need to link /usr/src/linux to /usr/src/linux-2.6.11-gentoo-r4,
8 > > as in:
9 > >
10 > > # cd /usr/src # ln -sf linux-2.6.11-gentoo-r4 linux
11 > >
12 > > Dave
13 >
14 > Or, dicing it down even further:
15 >
16 > /usr/src/linux is not a folder. "linux" is a symlink in the /usr/src/
17 > folder. This symlink, because it is targeted, either
18 > manually or automatically, to the last-installed kernel source-- which is
19 > not necessarily the same as the currently running kernel-- is used by
20 > applications which need to know what version of the kernel to compile
21 > against.
22 >
23 > What your error is saying is that it cannot determine what kernel source
24 > to compile against, because the 'linux' symlink in /usr/src
25 > (/usr/src/linux, thus) does not exist, or is not valid (does not point
26 > to a kernel source).
27 >
28 > In your case, it does not seem to exist.
29 >
30 > Holly
31
32 Also one I came across is if the sources are in vanilla condition (ie youve
33 run 'make mrproper' or similar) then the version hasnt been stamped out yet,
34 which confuses some programs. I had to do a config and then make to get them
35 in acceptable shape. This was way back with 2.6.5 I think.
36 --
37
38 "Illegitimacy is something we should talk about in terms of not having it."
39
40 George W. Bush
41 May 20, 1996
42 --
43 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Unable to calculate Linux Kernel version Holly Bostick <motub@××××××.nl>