LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 12-11-2008, 02:18 PM   #1
twisted1919
LQ Newbie
 
Registered: Dec 2008
Posts: 17

Rep: Reputation: 1
Small Problems After Upgrade - Need Fix


hi ... this morning i've decided to upgrade from slackware 12.1 to 12.2 .
Everything went ok with upgrade ... in less than 30 min was done .
After that , i went to nvidia site and downloaded the driver for my 7300 GT video card , but when i tried to install i get :
Code:
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
ERROR: The kernel header file
       '/lib/modules/2.6.27.7-smp/build/include/linux/version.h' does not
       exist.  The most likely reason for this is that the kernel source files
       in '/lib/modules/2.6.27.7-smp/build' have not been configured.
ERROR: Installation has failed.  Please see the file
       '/var/log/nvidia-installer.log' for details.  You may find suggestions
       on fixing installation problems in the README available on the Linux
       driver download page at www.nvidia.com.
I made some small modification in kernel source because i needed support for 4 Gb ram memory .

Any suggestions ?
 
Old 12-11-2008, 02:35 PM   #2
GazL
Senior Member
 
Registered: May 2008
Posts: 3,231

Rep: Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828
/lib/modules/2.6.27.7-smp/build is a symlink on my system pointing back to /usr/src/linux-2.6.27.7, so the actual file it will be looking for is /usr/src/linux-2.6.27.7/include/linux/version.h

First thing you might want to do is check where the symlink points on your system and then whether the include files are still there.

What did you actually do when you modified the kernel source?
 
Old 12-11-2008, 03:08 PM   #3
twisted1919
LQ Newbie
 
Registered: Dec 2008
Posts: 17

Original Poster
Rep: Reputation: 1
Code:
root@linux:/lib/modules/2.6.27.7-smp# ls -al
total 2417
drwxr-xr-x 3 root root    632 2008-12-11 23:01 ./
drwxr-xr-x 4 root root    104 2008-12-11 21:00 ../
lrwxrwxrwx 1 root root     23 2008-12-11 16:58 build -> /usr/src/linux-2.6.27.7/
drwxr-xr-x 9 root root    216 2008-12-11 20:17 kernel/
-rw-r--r-- 1 root root 315980 2008-12-11 20:17 modules.alias
-rw-r--r-- 1 root root 278232 2008-12-11 20:17 modules.alias.bin
-rw-r--r-- 1 root root     69 2008-12-11 20:17 modules.ccwmap
-rw-r--r-- 1 root root 303410 2008-12-11 20:17 modules.dep
-rw-r--r-- 1 root root 399840 2008-12-11 20:17 modules.dep.bin
-rw-r--r-- 1 root root    739 2008-12-11 20:17 modules.ieee1394map
-rw-r--r-- 1 root root    451 2008-12-11 20:17 modules.inputmap
-rw-r--r-- 1 root root  18561 2008-12-11 20:17 modules.isapnpmap
-rw-r--r-- 1 root root     74 2008-12-11 20:17 modules.ofmap
-rw-r--r-- 1 root root  66589 2008-12-11 20:17 modules.order
-rw-r--r-- 1 root root 218135 2008-12-11 20:17 modules.pcimap
-rw-r--r-- 1 root root   1303 2008-12-11 20:17 modules.seriomap
-rw-r--r-- 1 root root 122489 2008-12-11 20:17 modules.symbols
-rw-r--r-- 1 root root 166826 2008-12-11 20:17 modules.symbols.bin
-rw-r--r-- 1 root root 541741 2008-12-11 20:17 modules.usbmap
lrwxrwxrwx 1 root root     23 2008-12-11 20:17 source -> /usr/src/linux-2.6.27.7/
So it points the right direction , isn't it ?

Quote:
What did you actually do when you modified the kernel source?
Just
CONFIG_HIGHMEM64G=y
Support for more than 4 gb of ram memory
 
Old 12-11-2008, 03:23 PM   #4
GazL
Senior Member
 
Registered: May 2008
Posts: 3,231

Rep: Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828
Quote:
Originally Posted by twisted1919 View Post

So it points the right direction , isn't it ?
Yep, it point in the right direction so the symlink is ok.

So what do you have in /usr/src/linux-2.6.27.7/include/linux?
I have 911 files, one of which version.h

ls -l |wc -l will give you the number.

Last edited by GazL; 12-11-2008 at 03:26 PM.
 
Old 12-11-2008, 03:51 PM   #5
twisted1919
LQ Newbie
 
Registered: Dec 2008
Posts: 17

Original Poster
Rep: Reputation: 1
i have 908 files but i do have the version.h and kernel.h
Code:
-rw-r--r--  1 root root     97 2008-11-21 06:13 version.h
-rw-r--r--  1 root root  15412 2008-11-21 01:02 kernel.h
 
Old 12-11-2008, 04:00 PM   #6
GazL
Senior Member
 
Registered: May 2008
Posts: 3,231

Rep: Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828
Hmmm, that is weird then. The error message gives the full path to the file it claims is missing and yet, we've shown that it's there.

When you rebuilt your kernel I'm assuming you did all 3 of,

make bzImage
make modules
make modules_install?

If so, then I'm all out of ideas.
 
Old 12-11-2008, 04:17 PM   #7
twisted1919
LQ Newbie
 
Registered: Dec 2008
Posts: 17

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by GazL View Post
Hmmm, that is weird then. The error message gives the full path to the file it claims is missing and yet, we've shown that it's there.

When you rebuilt your kernel I'm assuming you did all 3 of,

make bzImage
make modules
make modules_install?

If so, then I'm all out of ideas.
Yes , of course i did all the steps ...
i'm out of ideas too ... i spent all day searching for answers and than trying the possible solutions...
Now i'm downloading an iso image of slackware 12.2 and i'm thinking to do a fresh install...i't tired of trying :P
Thx for your help
 
Old 12-11-2008, 04:30 PM   #8
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.0
Posts: 3,253

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
Quote:
I made some small modification in kernel source because i needed support for 4 Gb ram memory.
Some thoughts:

1. I cannot compile VirtualBox 2.0.6 if I have my kernel configured for >4GB support.

2. I downloaded the nvidia 177.82 sources and they would not compile. After much head scratching, I discovered that I had to use the CONFIG_LOCALVERSION kernel configuration option. Then the modules all matched the kernel VERMAGIC variable and the nvidia drivers would compile. When you recompile the kernel use the CONFIG_LOCALVERSION option to create a separate set of modules. For example, -smp-1. Remember to update your boot loader.

Something changed from 2.6.24.5 to 2.6.27.7 that is creating problems with some software compiling.

Note: If you perform a make mrproper, the command will delete the include/linux/version.h file. You'll need to run make bzImage once to recreate the file. You then can perform a make clean and that won't delete the version.h file.

Last edited by Woodsman; 12-11-2008 at 04:58 PM.
 
Old 12-11-2008, 04:47 PM   #9
GazL
Senior Member
 
Registered: May 2008
Posts: 3,231

Rep: Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828
Quote:
Originally Posted by twisted1919 View Post
Yes , of course i did all the steps ...
Thx for your help
I expected as much... I was just clutching at straws really there...
Sorry I wasn't of more use.

if you get to the bottom of this, please pop back and post what it was, its got me very curious.

I'm just sitting here watching .8 compile. Slow going on a p3-800.
 
Old 12-12-2008, 01:34 AM   #10
twisted1919
LQ Newbie
 
Registered: Dec 2008
Posts: 17

Original Poster
Rep: Reputation: 1
Talking

hey i've decided to try recompile the last kernel once again before reinstalling slackware 12.2.
Code:
Note: If you perform a make mrproper, the command will delete the include/linux/version.h file. You'll need to run make bzImage once to recreate the file. You then can perform a make clean and that won't delete the version.h file.
You may have a point here , i did run "make mrproper" and that might be the issue
@GazL - thanks for your pacience , i'll let you know if it will work when i'm not doing "make mrproper"...
If this fails , than i will install a fresh copy of 12.2 , because i lost my pacience


LE:
Code:
-> Installing both new and classic TLS OpenGL libraries.
-> Searching for conflicting X files:
-> done.
-> Searching for conflicting OpenGL files:
-> done.
-> Installing 'NVIDIA Accelerated Graphics Driver for Linux-x86' (177.82):
   executing: '/sbin/ldconfig'...
   executing: '/sbin/depmod -aq'...
-> done.
-> Driver file installation is complete.
-> Running post-install sanity check:
-> done.
-> Post-install sanity check passed.
-> Shared memory test passed.
-> Running runtime sanity check:
-> done.
-> Runtime sanity check passed.
-> Would you like to run the nvidia-xconfig utility to automatically update you
   r X configuration file so that the NVIDIA X driver will be used when you res
   tart X?  Any pre-existing X configuration file will be backed up. (Answer: Y
   es)
-> Your X configuration file has been successfully updated.  Installation of
   the NVIDIA Accelerated Graphics Driver for Linux-x86 (version: 177.82) is
   now complete.
So the trick was , as Woodsman said , not to do "make mrproper" , after compile my kernel once again , i didn't do "make mrproper" and just went for nvidia driver , and as you can see it works like a charm

So this is a good trick to remember

Last edited by twisted1919; 12-12-2008 at 01:55 AM.
 
Old 12-12-2008, 03:16 AM   #11
GazL
Senior Member
 
Registered: May 2008
Posts: 3,231

Rep: Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828
Quote:
Originally Posted by twisted1919 View Post

So the trick was , as Woodsman said , not to do "make mrproper" , after compile my kernel once again ,
So this is a good trick to remember
Indeed, that's a fine detail I wasn't aware of myself, but I only ever do a mrproper before a bzImage anyway, so I wouldn't have hit it. I'll file this away in the grey-cells though. It's useful to know.

The only thing that doesn't seem to fit though is that we'd clearly shown that you did indeed still have a version.h in the include dir where the error message claimed it was looking for it!

Perhaps it was just that, a 'claim', and the error message was misleading.

Anyway, glad you got it sorted, but I'm still feeling a little curious. I get the feeling this one is going to remain in the "weird shit that just seems to happen" category.
 
Old 12-12-2008, 06:18 AM   #12
twisted1919
LQ Newbie
 
Registered: Dec 2008
Posts: 17

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by GazL View Post
I get the feeling this one is going to remain in the "weird shit that just seems to happen" category.
Good one
 
Old 12-12-2008, 03:19 PM   #13
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.0
Posts: 3,253

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
I won't take much credit here. I stumbled upon this 'make prepare' solution yesterday.

Seems to me the 2.6.27.7 kernel or something related is now different. Perhaps previously the 'make clean' or 'make mrproper' commands did not remove certain critical files that other software needed to build and now with 2.6.27.7 that is the case. I say this because I had a similar problem with updating the 177.82 nvidia driver and kernel module. Something ain't just right . . . .
 
Old 12-12-2008, 07:56 PM   #14
7pack
Member
 
Registered: Jul 2008
Location: la
Distribution: Slackware 12.2, Ubuntu
Posts: 85

Rep: Reputation: 15
You guys are mostly talking way above my head here...but I thought I would throw my two cents in. I wiped my 'play' Slackware hard drive today and installed 12.2 from DVD. Installation was fine....then I tried to install Nvidia drivers. They will not compile....got the same message as first poster. Will keep an eye here for an fix....make that a "simple fix."
 
Old 12-12-2008, 08:10 PM   #15
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.0
Posts: 3,253

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
Quote:
They will not compile....got the same message as first poster. Will keep an eye here for an fix....make that a "simple fix
If you performed a fresh install of 12.2 then the kernel build directory is in a clean state. Try the following:

cd /usr/src/linux
make prepare
cd /location/of/nvidia/buildscripts
sh nvidia-kernel.SlackBuild
sh nvidia-driver.Slackbuild

There is only speculation at this point but seems something has changed with respect to 12.2 or the 2.6.27.7 kernel. A few folks, including me, have discovered that running 'make prepare' in the kernel build directory allows these certain build scripts to run.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
botched upgrade: is this a good fix? yocompia Slackware 2 04-06-2007 03:18 PM
Help with bug fix to upgrade to kernel 2.6.14 BobNutfield Fedora 5 01-15-2006 04:46 PM
Router/Gateway - Small Fix/Need Help... dolvmin Linux - Networking 1 11-03-2005 05:06 PM
Thunderbird RPM fix and upgrade louisb Linux - Enterprise 4 04-11-2005 10:03 PM
KDE 3.2 bug -> fix or upgrade? LJT Linux - Software 2 10-14-2004 02:59 AM


All times are GMT -5. The time now is 01:43 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration