Re: [gentoo-user] Unable to calculate Linux Kernel version [SOLVED - SORT OF][New Thread]

2005-10-07 Thread Bogo Mipps
On Fri, 07 Oct 2005 13:20, Glenn Enright wrote:
 On Thu, 06 Oct 2005 22:27, Bogo Mipps wrote:
   *getfilevar VARIABLE CONFIGFILE
   * Could not find a usable .config in the kernel source directory.
   * Please ensure that /usr/src/linux points to a configured set of Linux
  sources.
   * If you are using KBUILD_OUTPUT, please set the environment var so that
   * it points to the necessary object directory so that it might find
  .config.
 
  Why would the .config that's in the directory not be usable?  I just did
  the make oldconfig  make as you suggested - which ran without errors
  ...

 Bah! try
   cd /usr/src/linux
   make menuconfig
 exit out of that and save in the process. Try the emerge again. Stupid
 software ;)

No, still the same error.  However I thought I'd try the following:

export KBUILD_OUTPUT=/usr/src/linux-2.6.12-gentoo-r10

- and then try the emerge svgalib again.  This time it emerged no problem.

Not very satisfactory, other than achieving the emerge.  Why/how am I using 
KBUILD_OUTPUT? (see above) Mystery to me.  Now I guess I get this every time 
an ebuild uses /usr/portage/eclass/linux-info.class - and it looks from 
bugzilla that more and more are moving over to it. 

And why only me?  Only clue I have is from gentoo forum where someone found a 
miscompiled coreutils [/bin/echo] was producing same error as I got above. He 
worked through the bash file and found that was the problem.  I recompiled 
coreutils in case (I'd had a bad memory stick earlier this year) but that 
didn't help.  Maybe eventually when everything on my box is 
upgraded/recompiled I'll get back to normal.

Thanks.

Bogo   

-- 
Sent via KMail 1.8.1,  o/s Linux-2.6.12-gentoo-r10
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Unable to calculate Linux Kernel version [SOLVED, SORT OF][New Thread]

2005-10-07 Thread Bogo Mipps
On Fri, 07 Oct 2005 04:29, Rumen Yotov wrote:
 Just two suggestions: 1.re-emerge the kernel-source  try again or
 2.try newer/older version of svgalib. Check the USE-flags  deps.
 PS: assume you checked/run revdep-rebuild before and searched Bugzilla.

Did 1.  No help.  On 2. I succeeded with earlier version (didn't seem to be 
using linux-info.eclass)  Always run revdep-rebuild after every emerge. 
Searched Bugzilla - no exact same problem, but evident that linux-info.eclass 
will be used more and more so unless I get it sorted I'll always have to use 
the solution as per other post on this thread.

Many thanks anyway. 

Bogo 


-- 
Sent via KMail 1.8.1,  o/s Linux-2.6.12-gentoo-r10
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Unable to calculate Linux Kernel version [New Thread]

2005-10-06 Thread Bogo Mipps
On Thu, 06 Oct 2005 17:50, Rumen Yotov wrote:

 Check to make sure that /usr/src/linux link point to your
 current/working kernel. svgalib depends on kernel link to build.

Sorry this was covered in the earlier thread, should have covered it again.

Linked as follows:

rugosa src # pwd
/usr/src

rugosa src # ls -alh
total 14M
drwxr-xr-x  15 root   root4.0K Oct  3 14:22 .
drwxr-xr-x  16 root   root4.0K Sep 20 19:58 ..
-rw-r--r--   1 root   root 29K May 19 11:19 .config
-rw-r--r--   1 root   root   0 Sep  1 10:41 .keep
lrwxrwxrwx   1 root   root  23 Oct  3 14:22 linux - 
linux-2.6.12-gentoo-r10
drwxr-xr-x  18 root   root4.0K Jun 15 16:17 linux-2.6.11-gentoo-r11
drwxr-xr-x  19 root   root4.0K Sep 16 22:06 linux-2.6.11-gentoo-r4
drwxr-xr-x  19 root   root4.0K Oct  6 11:11 linux-2.6.12-gentoo-r10
drwxr-xr-x  18 root   root4.0K Jul  9 14:35 linux-2.6.12-gentoo-r4
drwxr-xr-x  18 root   root4.0K Jul 19 21:38 linux-2.6.12-gentoo-r6

rugosa linux # pwd
/usr/src/linux
rugosa linux # ls -alh
total 21M
drwxr-xr-x  19 root root  4.0K Oct  6 11:11 .
drwxr-xr-x  15 root root  4.0K Oct  3 14:22 ..
-rw-r--r--   1 root root   471 Oct  3 14:48 ..tmp_kallsyms1.o.cmd
-rw-r--r--   1 root root   471 Oct  3 14:48 ..tmp_kallsyms2.o.cmd
-rw-r--r--   1 root root   635 Oct  3 14:48 ..tmp_vmlinux1.cmd
-rw-r--r--   1 root root   651 Oct  3 14:48 ..tmp_vmlinux2.cmd
-rw-r--r--   1 root root   32K Oct  3 14:39 .config
-rw-r--r--   1 root root  5.2K Oct  3 14:39 .config.cmd
-rw-r--r--   1 root root   29K Oct  3 14:24 .config.old
-rw-r--r--   1 root root 1006K Oct  3 14:48 .tmp_System.map
-rw-r--r--   1 root root  1.2M Oct  3 14:48 .tmp_kallsyms1.S
-rw-r--r--   1 root root  200K Oct  3 14:48 .tmp_kallsyms1.o
-rw-r--r--   1 root root  1.2M Oct  3 14:48 .tmp_kallsyms2.S
-rw-r--r--   1 root root  200K Oct  3 14:48 .tmp_kallsyms2.o
drwxr-xr-x   2 root root  4.0K Oct  3 14:48 .tmp_versions
-rwxr-xr-x   1 root root  5.0M Oct  3 14:48 .tmp_vmlinux1
-rwxr-xr-x   1 root root  5.2M Oct  3 14:48 .tmp_vmlinux2
-rw-r--r--   1 root root 2 Oct  3 14:48 .version
-rw-r--r--   1 root root   639 Oct  3 14:48 .vmlinux.cmd
-rw-r--r--   1 root root   19K Sep  3 20:34 COPYING
-rw-r--r--   1 root root   88K Sep  3 20:34 CREDITS
drwxr-xr-x  50 root root  4.0K Sep  3 20:34 Documentation
-rw-r--r--   1 root root   57K Sep  3 20:34 MAINTAINERS
-rw-r--r--   1 root root   44K Sep  3 20:34 Makefile
-rw-r--r--   1 root root  107K Oct  3 14:48 Module.symvers
-rw-r--r--   1 root root   14K Sep  3 20:34 README
-rw-r--r--   1 root root  3.0K Sep  3 20:34 REPORTING-BUGS
-rw-r--r--   1 root root 1006K Oct  3 14:48 System.map
drwxr-xr-x  25 root root  4.0K Sep  3 20:34 arch
drwxr-xr-x   2 root root  4.0K Oct  3 14:43 crypto
drwxr-xr-x  50 root root  4.0K Oct  3 14:45 drivers
drwxr-xr-x  56 root root  4.0K Oct  3 14:43 fs
drwxr-xr-x  38 root root  4.0K Oct  3 14:40 include
drwxr-xr-x   2 root root  4.0K Oct  3 14:48 init
drwxr-xr-x   2 root root  4.0K Oct  3 14:43 ipc
drwxr-xr-x   4 root root  4.0K Oct  3 14:41 kernel
drwxr-xr-x   5 root root  4.0K Oct  3 14:48 lib
drwxr-xr-x   2 root root  4.0K Oct  3 14:41 mm
drwxr-xr-x  32 root root  4.0K Oct  3 14:48 net
-rw-r--r--   1 root root52 Sep  3 20:34 patches.txt
drwxr-xr-x   9 root root  4.0K Oct  3 14:40 scripts
drwxr-xr-x   4 root root  4.0K Oct  3 14:43 security
drwxr-xr-x  16 root root  4.0K Oct  3 14:46 sound
drwxr-xr-x   2 root root  4.0K Oct  3 14:40 usr
-rwxr-xr-x   1 root root  5.2M Oct  3 14:48 vmlinux
rugosa linux #  

Bogo


-- 
Sent via KMail 1.8.1,  o/s Linux-2.6.12-gentoo-r10
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Unable to calculate Linux Kernel version [New Thread]

2005-10-06 Thread Glenn Enright
Try this...

ls -l /usr/src/linux
uname -r

these should give you the same version. If not you need to adjust the linux 
symlink to reflect the kernel version you are running. Then

cd /usr/src/linux
cp /boot/config-$(uname -r) ./
make oldconfig  make

Now you should be able to do the emerges you wanted to. The point is to have 
your source tree in working condition, and findable, as opposed to clean.

If you run different kernel versions often, try adding a few lines 
to /etc/conf.d/ like

# -- quick hack to ease work of updating kernels and make emerges consistent
#
ebegin Refreshing kernel source link to running kernel.
rm -f /usr/src/linux
if ! ln -s /usr/src/linux-$(uname -r) /usr/src/linux
then
ewarnBugger ... could not update. Please manually create the
ewarnsymbolic link '/usr/src/linux' to the running kernel 
source.
ewend 1
fi
# --

-- 

I think we are in Rats' Alley where the dead men lost their bones.
-- T.S. Eliot
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Unable to calculate Linux Kernel version [New Thread]

2005-10-06 Thread Glenn Enright
On Thu, 06 Oct 2005 06:42, Glenn Enright wrote:
 Try this...

   ls -l /usr/src/linux
   uname -r

 these should give you the same version. If not you need to adjust the linux
 symlink to reflect the kernel version you are running. Then

   cd /usr/src/linux
   cp /boot/config-$(uname -r) ./
   make oldconfig  make

 Now you should be able to do the emerges you wanted to. The point is to
 have your source tree in working condition, and findable, as opposed to
 clean.

 If you run different kernel versions often, try adding a few lines
 to /etc/conf.d/ like
scuse :-o  ^^^-- /etc/conf.d/local.start


 # -- quick hack to ease work of updating kernels and make emerges
 consistent #
 ebegin Refreshing kernel source link to running kernel.
 rm -f /usr/src/linux
 if ! ln -s /usr/src/linux-$(uname -r) /usr/src/linux
 then
 ewarnBugger ... could not update. Please manually create the
 ewarnsymbolic link '/usr/src/linux' to the running kernel
 source.
 ewend 1
 fi
 # --

 --

 I think we are in Rats' Alley where the dead men lost their bones.
   -- T.S. Eliot

-- 

IBM's original motto:
Cogito ergo vendo; vendo ergo sum.
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Unable to calculate Linux Kernel version [New Thread]

2005-10-06 Thread Bogo Mipps
On Thu, 06 Oct 2005 20:42, Glenn Enright wrote:
 On Thu, 06 Oct 2005 06:42, Glenn Enright wrote:
  Try this...
 
  ls -l /usr/src/linux
  uname -r
 
  these should give you the same version.


rugosa / # ls -l /usr/src/linux
lrwxrwxrwx  1 root root 23 Oct  3 14:22 /usr/src/linux - 
linux-2.6.12-gentoo-r10

rugosa / # uname -r
2.6.12-gentoo-r10
rugosa / #

This looks ok?  Yes?

So where to from there?  No point in the If not?

TIA

Bogo   


-- 
Sent via KMail 1.8.1,  o/s Linux-2.6.12-gentoo-r10
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Unable to calculate Linux Kernel version [New Thread]

2005-10-06 Thread Glenn Enright
On Thu, 06 Oct 2005 08:04, Bogo Mipps wrote:
 On Thu, 06 Oct 2005 20:42, Glenn Enright wrote:
  On Thu, 06 Oct 2005 06:42, Glenn Enright wrote:
   Try this...
  
 ls -l /usr/src/linux
 uname -r
  
   these should give you the same version.

 rugosa / # ls -l /usr/src/linux
 lrwxrwxrwx  1 root root 23 Oct  3 14:22 /usr/src/linux -
 linux-2.6.12-gentoo-r10

 rugosa / # uname -r
 2.6.12-gentoo-r10
 rugosa / #

 This looks ok?  Yes?

 So where to from there?  No point in the If not?

You still need to make sure the sources are 'bedded in' as it were, so perform 
the stuff described in the second part of my post as well.

-- 

The scum also rises.
-- Dr. Hunter S. Thompson
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Unable to calculate Linux Kernel version [New Thread]

2005-10-06 Thread Rumen Yotov
On Thu, 6 Oct 2005 21:04:54 +1300
Bogo Mipps [EMAIL PROTECTED] wrote:

 On Thu, 06 Oct 2005 20:42, Glenn Enright wrote:
  On Thu, 06 Oct 2005 06:42, Glenn Enright wrote:
   Try this...
  
 ls -l /usr/src/linux
 uname -r
  
   these should give you the same version.
 
 
 rugosa / # ls -l /usr/src/linux
 lrwxrwxrwx  1 root root 23 Oct  3 14:22 /usr/src/linux - 
 linux-2.6.12-gentoo-r10
 
 rugosa / # uname -r
 2.6.12-gentoo-r10
 rugosa / #
 
 This looks ok?  Yes?
 
 So where to from there?  No point in the If not?
 
 TIA
 
 Bogo   
 
 
Hi,
Just two suggestions: 1.re-emerge the kernel-source  try again or
2.try newer/older version of svgalib. Check the USE-flags  deps.
PS: assume you checked/run revdep-rebuild before and searched Bugzilla.
HTH.Rumen


pgpLcHzi3rVVX.pgp
Description: PGP signature


Re: [gentoo-user] Unable to calculate Linux Kernel version [New Thread]

2005-10-06 Thread Bogo Mipps
On Thu, 06 Oct 2005 22:54, Glenn Enright wrote:
 You still need to make sure the sources are 'bedded in' as it were, so
 perform the stuff described in the second part of my post as well.

Done, and there is an improvement in the error code at least: 

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

 * getfilevar requires 2 variables, with the second a valid file.
 *getfilevar VARIABLE CONFIGFILE
 * Could not find a usable .config in the kernel source directory.
 * Please ensure that /usr/src/linux points to a configured set of Linux 
sources.
 * If you are using KBUILD_OUTPUT, please set the environment var so that
 * it points to the necessary object directory so that it might find .config.

Why would the .config that's in the directory not be usable?  I just did the 
make oldconfig  make as you suggested - which ran without errors ...

I guess if I could read/understand bash I'd find out from linux-info.eclass 
what it wanted of .config - but that's where I come unstuck.

Bogo   


-- 
Sent via KMail 1.8.1,  o/s Linux-2.6.12-gentoo-r10

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Unable to calculate Linux Kernel version [New Thread]

2005-10-06 Thread Glenn Enright
On Thu, 06 Oct 2005 22:27, Bogo Mipps wrote:
  *getfilevar VARIABLE CONFIGFILE
  * Could not find a usable .config in the kernel source directory.
  * Please ensure that /usr/src/linux points to a configured set of Linux
 sources.
  * If you are using KBUILD_OUTPUT, please set the environment var so that
  * it points to the necessary object directory so that it might find
 .config.

 Why would the .config that's in the directory not be usable?  I just did
 the make oldconfig  make as you suggested - which ran without errors ...

Bah! try
cd /usr/src/linux
make menuconfig
exit out of that and save in the process. Try the emerge again. Stupid 
software ;)
-- 

I suppose you expect me to talk.
Ö  No, Mr. Bond.  I expect you to die.
-- Goldfinger

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Unable to calculate Linux Kernel version [New Thread]

2005-10-05 Thread Bogo Mipps
Hi - have re-compiled as indicated, but it hasn't helped.  Now running 
2.6.12-gentoo-r10 without problems, but still have the previous error on 
*some* ebuilds i.e. svgalib  lm_sensors.  

As established earlier correct links are all in place, the correct .config is 
in the source, directory, as is Makefile - and /include/linux/verion.h 
exists. 

I have googled extensively, including gentoo forums, where similar errors have 
been produced, but nothing suggested solved my problem.  Most were related to 
non-existent .config and/or Makefile.  

Following is the error message:
snip
!!! ERROR: media-libs/svgalib-1.9.21-r1 failed.
!!! Function linux-info_pkg_setup, Line 526, Exitcode 1
!!! Unable to calculate Linux Kernel version
snip

When I look at Line 526 in /usr/portage/eclass/linux-info.eclass I find the 
following:

snip
525linux-info_pkg_setup() {
526get_version || die Unable to calculate Linux Kernel version
527[ -n ${CONFIG_CHECK} ]  check_extra_config;
snip

From here on in - I'm struggling with bash and can't make sense of it:  any 
pointers would be appreciated. 

Bogo


-- 
Sent via KMail 1.8.1,  o/s Linux-2.6.12-gentoo-r10

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Unable to calculate Linux Kernel version [New Thread]

2005-10-05 Thread Rumen Yotov
On Thu, 6 Oct 2005 17:17:59 +1300
Bogo Mipps [EMAIL PROTECTED] wrote:

 Hi - have re-compiled as indicated, but it hasn't helped.  Now
 running 2.6.12-gentoo-r10 without problems, but still have the
 previous error on *some* ebuilds i.e. svgalib  lm_sensors.  
 
 As established earlier correct links are all in place, the
 correct .config is in the source, directory, as is Makefile -
 and /include/linux/verion.h exists. 
 
 I have googled extensively, including gentoo forums, where similar
 errors have been produced, but nothing suggested solved my problem.
 Most were related to non-existent .config and/or Makefile.  
 
 Following is the error message:
 snip
 !!! ERROR: media-libs/svgalib-1.9.21-r1 failed.
 !!! Function linux-info_pkg_setup, Line 526, Exitcode 1
 !!! Unable to calculate Linux Kernel version
 snip
 
 When I look at Line 526 in /usr/portage/eclass/linux-info.eclass I
 find the following:
 
 snip
 525linux-info_pkg_setup() {
 526get_version || die Unable to calculate Linux Kernel version
 527[ -n ${CONFIG_CHECK} ]  check_extra_config;
 snip
 
 From here on in - I'm struggling with bash and can't make sense of
 it:  any 
 pointers would be appreciated. 
 
 Bogo
 
 
Hi,
Check to make sure that /usr/src/linux link point to your
current/working kernel. svgalib depends on kernel link to build.
HTH.Rumen


pgpvd87BcZ5mi.pgp
Description: PGP signature


Re: [gentoo-user] Unable to calculate Linux Kernel version

2005-09-16 Thread Dave Nebinger

/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

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Unable to calculate Linux Kernel version

2005-09-16 Thread Matthias Guede

Bogo Mipps wrote:


Link is in place:

/usr/src/- linux-2.6.11-gentoo-r4

/usr/src/linux-2.6.11-gentoo-r4 exists

.config exists in this directory

modversion.h exists in /usr/src/linux-2.6.11-gentoo-r4/include/


What more can I do? 


There should exists another link:

 /lib/modules/2.6.11-gentoo-r4/build -
/usr/src/linux-2.6.11-gentoo-r4

Maybe this one is missing?

Matthias

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Unable to calculate Linux Kernel version

2005-09-16 Thread Holly Bostick
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
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Unable to calculate Linux Kernel version

2005-09-16 Thread Bogo Mipps
On Fri, 16 Sep 2005 15:53, Ow Mun Heng wrote:
 On Fri, 2005-09-16 at 15:42 +1200, Bogo Mipps wrote:
  Hi
 
  Simple problem, simple answer I'm sure. Not clear to me ex-list or
  google.
 
  Trying to emerge svgalib-1.9.21 get following error:
 
  Could not detect kernel version
  Please ensure that /usr/src/linux points to complete set of kernel
  sources Function linux-info_pkg_setup line 521 Exitcode 1
  Unable to calculate linux kernel version
 
  Link is in place:
 
  /usr/src/- linux-2.6.11-gentoo-r4

 Did you miss type?

 /usr/src/linux - linux-2.6.13-suspend2-r1/

Yep, sorry - ls as follows:

rugosa linux # ls -l /usr/src/linux
lrwxrwxrwx 1 root root 22 Jul 5 21:58 /usr/src/linux - linux-2.6.11-gentoo-r4

Bogo

-- 
Sent via KMail 1.8.0,  o/s Linux-2.6.11-gentoo-r4

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Unable to calculate Linux Kernel version

2005-09-16 Thread Glenn Enright
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.
-- 

Illegitimacy is something we should talk about in terms of not having it.

George W. Bush
May 20, 1996
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Unable to calculate Linux Kernel version

2005-09-16 Thread Holly Bostick
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



Re: [gentoo-user] Unable to calculate Linux Kernel version

2005-09-16 Thread Glenn Enright
On Fri, 16 Sep 2005 12:17, Holly Bostick wrote:

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

 Holly

Point taken. As always your posts are detailed and helpful :)
-- 

PIZZA!!
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Unable to calculate Linux Kernel version

2005-09-16 Thread Bogo Mipps
On Fri, 16 Sep 2005 22:12, Matthias Guede wrote:
 There should exists another link:

/lib/modules/2.6.11-gentoo-r4/build -
   /usr/src/linux-2.6.11-gentoo-r4

 Maybe this one is missing?

There are two in /lib/modules/2.6.11-gentoo-r4 - listing as follows:

rugosa 2.6.11-gentoo-r4 # ls -alh
total 48K
drwxr-xr-x  3 root root 4.0K Sep 17 09:02 .
drwxr-xr-x  3 root root 4.0K Apr  3 08:12 ..
lrwxrwxrwx  1 root root   31 Apr  3 08:12 build 
- /usr/src/linux-2.6.11-gentoo-r4
drwxr-xr-x  6 root root 4.0K Aug 27 15:31 kernel
-rw-r--r--  1 root root 1.9K Sep 17 09:02 modules.alias
-rw-r--r--  1 root root   69 Sep 17 09:02 modules.ccwmap
-rw-r--r--  1 root root 2.6K Sep 17 09:02 modules.dep
-rw-r--r--  1 root root   73 Sep 17 09:02 modules.ieee1394map
-rw-r--r--  1 root root  132 Sep 17 09:02 modules.inputmap
-rw-r--r--  1 root root   81 Sep 17 09:02 modules.isapnpmap
-rw-r--r--  1 root root 2.4K Sep 17 09:02 modules.pcimap
-rw-r--r--  1 root root 2.3K Sep 17 09:02 modules.symbols
-rw-r--r--  1 root root 1.5K Sep 17 09:02 modules.usbmap
lrwxrwxrwx  1 root root   31 Aug 27 15:31 source 
- /usr/src/linux-2.6.11-gentoo-r4

I just deleted the source link in case that was confusing the issue, but 
same result with svgalib.  AAMOI do you also have source link as well as 
build Matthias?  My build link must have been created when I first 
installed gentoo, the source must have been created when I last recompiled 
i.e. August 27.  Don't know whether that's significant.

Bogo



-- 
Sent via KMail 1.8.0,  o/s Linux-2.6.11-gentoo-r4
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Unable to calculate Linux Kernel version

2005-09-16 Thread Bogo Mipps
On Sat, 17 Sep 2005 00:17, Holly Bostick wrote:
 So, I would ask: Is the source that /usr/src/linux links to configured?
 Has it been compiled?

Thanks Holly for your contribution (always enjoy your analyses of these 
problems - one reason I love this list!)

Yes, it has been configured and compiled - the last time being the link date  
Matthias pointed out was created:  August 27.  I guess I can always 
re-compile, etc. as Dave has pointed out - but I'd rather get to the bottom 
of this one first if I can.

A gentoo forum search was talking about modversion.h being present in the 
compiled version, but I think they must have meant version.h - which I see is 
in the compiled sources - but not in the unconfigured/uncompiled sources. 
Mine in linux-2.6.11-gentoo-r4 contains:

rugosa linux # cat version.h
#define UTS_RELEASE 2.6.11-gentoo-r4
#define LINUX_VERSION_CODE 132619
#define KERNEL_VERSION(a,b,c) (((a)  16) + ((b)  8) + (c))
 
This is dated Apr 3, the original compile date - not the latest Aug 27. I 
guess I'd thought it might have been re-made on re-compile. Don't know 
whether this might mean something?  

Bogo 
 
   
-- 
Sent via KMail 1.8.0,  o/s Linux-2.6.11-gentoo-r4
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Unable to calculate Linux Kernel version

2005-09-15 Thread Bogo Mipps
Hi 

Simple problem, simple answer I'm sure. Not clear to me ex-list or google.

Trying to emerge svgalib-1.9.21 get following error:

Could not detect kernel version
Please ensure that /usr/src/linux points to complete set of kernel sources
Function linux-info_pkg_setup line 521 Exitcode 1
Unable to calculate linux kernel version

Link is in place:

/usr/src/- linux-2.6.11-gentoo-r4

/usr/src/linux-2.6.11-gentoo-r4 exists

.config exists in this directory

modversion.h exists in /usr/src/linux-2.6.11-gentoo-r4/include/


What more can I do? 

Any help appreciated.

Bogo  

  
-- 
Sent via KMail 1.8.0,  o/s Linux-2.6.11-gentoo-r4
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Unable to calculate Linux Kernel version

2005-09-15 Thread Ow Mun Heng
On Fri, 2005-09-16 at 15:42 +1200, Bogo Mipps wrote:
 Hi 
 
 Simple problem, simple answer I'm sure. Not clear to me ex-list or google.
 
 Trying to emerge svgalib-1.9.21 get following error:
 
 Could not detect kernel version
 Please ensure that /usr/src/linux points to complete set of kernel sources
 Function linux-info_pkg_setup line 521 Exitcode 1
 Unable to calculate linux kernel version
 
 Link is in place:
 
 /usr/src/- linux-2.6.11-gentoo-r4

Did you miss type?

/usr/src/linux - linux-2.6.13-suspend2-r1/


-- 
Ow Mun Heng
Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM
98% Microsoft(tm) Free!! 
Neuromancer 11:53:14 up 3 days, 27 min, 8 users, load average: 1.96,
1.28, 0.94 


-- 
gentoo-user@gentoo.org mailing list