PDA

View Full Version : can't compile kernel module


THE LoW
12-23-02, 01:40 PM
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 :)

my problem:
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.

Andy Mecham
12-23-02, 06:42 PM
Do you have your kernel sources installed in /usr/src/linux?

--andy

THE LoW
12-24-02, 12:51 AM
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~

onemanpanel
12-24-02, 01:50 AM
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?

thanks.

THE LoW
12-24-02, 02:23 AM
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...
/me blushes