Re: [SLUG] Need Help with NVIDIA Drivers

From: Jason Copenhaver (jcopenha@typedef.org)
Date: Mon Jan 28 2002 - 22:00:09 EST


as my /usr/include/linux/modversions.h file says

#error Modules should never use kernel-headers system headers,
#error but rather headers from an appropriate kernel-source package.
#error Change -I/usr/src/linux/include (or similar) to
#error -I/lib/modules/$(uname -r)/build/include
#error to build against the currently-running kernel.

you are trying to build a module.. so you need to compile with the headers
that are used with your kernel.. you might need to install mandrakes
kenrel source package to get these files.

On Mon, 28 Jan 2002, Russ Wright wrote:

> Hello All
>
> I cannot get the NVIDIA kernel drivers to compile on my workstation.
> I have Mandrake 8.1 running kernel 2.4.8-34.1mdk
>
> Here is the output:
> [root@rwright NVIDIA_kernel-1.0-2313]# make install
> rm -f nv.o os-interface.o os-registry.o Module-linux nv_compiler.h NVdriver
> cc -c -Wall -Wno-unknown-pragmas -Wno-multichar -O -D__KERNEL__ -DMODULE
> -D_LOOSE_KERNEL_NAMES -D_X86_=1 -Di386=1 -DUNIX -DLINUX -DNV4_HW -DNTRM
> -DRM20 -D_GNU_SOURCE -DRM_HEAPMGR -D_LOOSE_KERNEL_NAMES
> -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=2313 -I.
> -I/usr/include/linux nv.c
> In file included from nv.c:22:
> /usr/include/linux/modversions.h:1:2: #error Modules should never use
> kernel-headers system headers,
> /usr/include/linux/modversions.h:2:2: #error but headers from an appropriate
> kernel-source
> make: *** [nv.o] Error 1
>
>
> I've checked that the path /usr/include/linux is the correct path to the
> kernel headers. I don't know what else to do.
>
> Any help would be appreciated..
>
> Regards
> Russ W
>
>

-- 
"Without documentation you can never know what the code was meant to do,
only what it does"
	-- Rik van Riel (#kernelnewbies)



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:58:12 EDT