Glenn Enright schreef:
> On Fri, 16 Sep 2005 10:18, Holly Bostick wrote:
> 
>> Dave Nebinger schreef:
>> 
>>>> "/usr/src/    -> linux-2.6.11-gentoo-r4"
>>>> 
>>>> "/usr/src/linux-2.6.11-gentoo-r4" exists
>>> 
>>> You need to link /usr/src/linux to 
>>> /usr/src/linux-2.6.11-gentoo-r4, as in:
>>> 
>>> # cd /usr/src # ln -sf linux-2.6.11-gentoo-r4 linux
>>> 
>>> Dave
>> 
>> Or, dicing it down even further:
>> 
>> /usr/src/linux is not a folder. "linux" is a symlink in the 
>> /usr/src/ folder. This symlink, because it is targeted, either 
>> manually or automatically, to the last-installed kernel source-- 
>> which is not necessarily the same as the currently running kernel--
>>  is used by applications which need to know what version of the 
>> kernel to compile against.
>> 
>> What your error is saying is that it cannot determine what kernel 
>> source to compile against, because the 'linux' symlink in /usr/src
>>  (/usr/src/linux, thus) does not exist, or is not valid (does not 
>> point to a kernel source).
>> 
>> In your case, it does not seem to exist.
>> 
>> Holly
> 
> 
> Also one I came across is if the sources are in vanilla condition (ie
>  youve run 'make mrproper' or similar) then the version hasnt been 
> stamped out yet, which confuses some programs. I had to do a config 
> and then make to get them in acceptable shape. This was way back with
>  2.6.5 I think.

Yes, that's the other thing I was thinking, since Bogo has now shown the
symlink does exist; some applications won't compile against unconfigured
and/or uncompiled kernel source. So I went to look at my
log from my recent (successful) emerge of svgalib, but it didn't say
much of anything to indicate where the problem might actually be in this
case:

 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.12-gentoo-r10

So a successful compile doesn't really hold any clues as to why the
version number the link points to cannot be determined, if the
/usr/src/linux link is found, leaving only "stuff [I] happen to know
because it happened to me once or twice" kinda answers.

So, I would ask: Is the source that /usr/src/linux links to configured?
Has it been compiled?

Holly
-- 
gentoo-user@gentoo.org mailing list

Reply via email to