PDA

View Full Version : modversion.h: No such file or directory


peeples
03-07-03, 05:30 PM
I am using Debian sid. I have installed the Nvidia drivers before for my 2.4.18 kernel. I just downloaded the kernel source for 2.4.20, and built it. Made the soft link in /usr/src for linux to point to the 2.4.20 source. When I built the kernel I did it the "Linux way" (make mrproper, make menuconfig, make dep, make bzImage, make modules, make modules_install, make install) because I don't know how to do it the Debian way. The kernel boots just fine. In fact, the 4191 GLX did just fine with its' make install. However, when I tried to do the make install for the NVIDIA_kernel directory, I get the following:

In file included from nv.c:14:
nv-linux.h:24:31: linux/modversions.h: No such file or directory
make: *** [nv.o] Error 1

I know for a fact that modversions.h is in /usr/src/kernel-source-2.4.20/include/linux

Any ideas how to fix this?

TIA

peeples
03-07-03, 06:50 PM
Well, I got that resolved. Now I get a lot of "unresolved symbols in /lib/modules/2.4.20/kernel/drivers/video/nvidia.o"

I'll do a search on this board for answers...

BekA
03-07-03, 06:59 PM
Hi,

just edit the file nv-linux.h (from the drivers)
and replace #include <linux/modversion.h> by #include "/usr/src/kernel-source-2.4.20/include/linux/modversion.h"

I think it's the easiest way (U could also do a softlink from /usr/src/kernel-source-2.4.20/include/linux/modversion.h to /usr/include/modversion.h:p

BekA
03-07-03, 07:07 PM
are you sure you used the right modversion.h during the compilation of the driviers ?

peeples
03-08-03, 08:20 AM
I went ahead and added a soft link, then I just re-compiled my kernel from scratch, rebooted, and immediately compiled the Nvidia driver. All works fine now.