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



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