PDA

View Full Version : Missing modversions.h - Slackware 9.0


kamenk
04-07-03, 10:03 AM
I tried to install the latest drivers on my Slackware 9.0 box (clean install), and it fails because it can't find /lib/modules[blah-blah-]/modversions.h

Now, I have the headers in /lib/modules/[I-forgot-the-damn-path], I'm sure of that, and the kernel source, too. /usr/src/linux is a soft link pointing to /usr/src/linux-2.4.20. I am using the precompiled kernel from the a/ series.

Just did a quick search in this forum and in Google Groups and I can't find anyone with the same problem.

I also noticed that there is no modversions.h file anywhere in my system, including the kernel source tree. Is that stupid file so terribly important and why? Is there any chance I can get the drivers to work?

Some technical details: Slackware 9.0; CPU: Pentium III Coppermine, 256 SD RAM; Graphic card: Riva TNT2 Ultra with 32MB RAM.

bwkaz
04-07-03, 11:35 AM
Install your kernel source.

Then configure it. Find the config file that Slack uses, copy it to /usr/src/linux-<version>/.config, go into /usr/src/linux-<version>, and run make mrproper oldconfig dep.

Then try the driver again.

kamenk
04-07-03, 01:15 PM
Now the module builds, but fails to load. The error mesage says that probably the kernel headers are not the correct ones, but I don't believe that, since I found exactly the same config file used for compiling the kernel I have.

I started the .run file (with the unbelievably long name) with --kernel-include-path=/usr/src/linux-2.4.20/include. I've attached the log file.

Help! ;-((( Maybe I should recompile the kernel? But why isn't it working - I'm sure the headers are correct.

kamenk
04-08-03, 11:58 AM
Problem solved! I now know I shouldn't have used make mrproper, cause it deletes the .config file. I copied the file and did make oldconfig; make dep. The Nvidia installer did everything else, I edited /etc/X11/XF86Config, and life is sweet once again.