can't compile kernel module
o.k, I'm quite a newbie to Linux, so if I don't express something the right way or have forgotten something VERY obvious, plz don't shoot me down in flames immediately :)
debian:/home/harald/disk3/NVIDIA_kernel-1.0-4191# make install
cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ -DMODULE
-D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=4191 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -I. -I/lib/modules/2.4.18/build/include -Wno-cast-qual nv.c
In file included from nv.c:14:
nv-linux.h:24: linux/modversions.h: No such file or directory
make: *** [nv.o] Error 1
Why does it stop there (/me feels soooo stupid, but :confused: )
I am running a basic installation of Debian woody r0 with an self-compiled 2.4.18 kernel.
Do you have your kernel sources installed in /usr/src/linux?
Nope, haven't (because Debian policy to create a new kernel, is to compile it, stuff it into a .deb package and install it from there, so I put the sources into /usr/local/src/kernel/kernel-source-2.4.18/.) Anyway, I've created a symlink /urs/local/src/linux~ to that directory now. Still cancels with "modversions.h: No such file or directory". Locate tells me, that such a file doesn't exist.
EDIT: ouuuch, of course I created a symlink /usr/src/linux~
how do i attain debian kernel sources?
i'm having a similar problem (unable to 'make install' due to lack of 'linux/modversions.h'). how can i attain the linux kernel sources for debian?
deselect => they're in the "opt devel" section (kernel-source)
Now that you ask, it comes to me the GREAT idea, to maybe install the kernel-HEADER-files, too...
|All times are GMT -5. The time now is 02:32 PM.|
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright ©1998 - 2014, nV News.