nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   can't compile kernel module (http://www.nvnews.net/vbulletin/showthread.php?t=5510)

THE LoW 12-23-02 02:40 PM

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 :)

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 07:42 PM

Do you have your kernel sources installed in /usr/src/linux?

--andy

THE LoW 12-24-02 01: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 02:50 AM

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?

thanks.

THE LoW 12-24-02 03: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


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.