modversion.h: No such file or directory
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?
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...
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
are you sure you used the right modversion.h during the compilation of the driviers ?
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.
|All times are GMT -5. The time now is 06:03 PM.|
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Copyright ©1998 - 2014, nV News.