Newsgroup: it.comp.os.linux.iniziare
Titolo: Problema compilazione Driver Nvidia (scusate per la lunghezza)

Salve a tutti visto ke il msg è gia lungo di perse non usero molto parole per chiedervi aiuto,
quindi vi spiego il problema che è da un pò che cerco da risolvere, visto la lentezza dei giochi
e dei programmi che utilizano l'accellerazione Hardware. Cosi ho cercato in giro è ho capito che
avevo bisogno dei driver che nvidia fa scaricare dal suo sito. Ho scaricato i file
(NVIDIA_kernel-1.0-2960.tar.gz e NVIDIA_GLX-1.0-2960.tar.gz) come da istruzione ho poi compilato
come diceva il file Readme ma quanto tento di compilare NVIDIA_kernel-1.0-2960 mi da il seguente
errore e non ho ancora capitò che cosa vuole grazie a chiunque mi risponderà.
Dimenticavo di dirvi che ho Mandrake 9.
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
-D_X86=1 -Di386=1 -DUNIX -DLINUX -DNV4_HW -DNTRM -DRM20 -D_GNU_SOURCE -DRM_HEAPMGR -D_LOOSE_KERNEL_NAMES 
-D__KERNEL__ -DMODULE  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=2960   -I. 
-I/usr/src/linux/include -Wno-cast-qual nv.c
In file included from /usr/include/linux/prefetch.h:13,
                 from /usr/include/linux/list.h:6,
from /usr/include/linux/module.h:11, from nv.c:25:
     /usr/include/asm/processor.h:55: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
     /usr/include/asm/processor.h:55: requested alignment is not a constant 
In file included from /usr/include/linux/module.h:296, from nv.c:25:
/usr/include/linux/version.h:2:2: #error "======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error "   /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error "   the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error "   /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error "   compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error "   -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error "   instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error "   -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error "   Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error "======================================================="
In file included from nv.c:25:
/usr/include/linux/module.h:298: parse error before "UTS_RELEASE"
In file included from nv-linux.h:24, from nv.c:27:
/usr/include/linux/version.h:2:2: #error "======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error "   /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error "   the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error "   /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error "   compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error "   -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error "   instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error "   -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error "   Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error "======================================================="
In file included from nv.c:27:
nv-linux.h:32:40: missing binary operator before '('
nv-linux.h:34:42: missing binary operator before '('
nv-linux.h:36:42: missing binary operator before '('
nv-linux.h:38:42: missing binary operator before '('
nv-linux.h:40:42: missing binary operator before '('
nv-linux.h:44:4: #error This driver does not support 2.6.x or newer kernels!
nv-linux.h:53:28: linux/autoconf.h: No such file or directory
In file included from /usr/include/asm/hardirq.h:6,
                 from /usr/include/linux/interrupt.h:45,
                 from nv.c:42:
		 /usr/include/linux/irq.h:65: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
		 /usr/include/linux/irq.h:65: requested alignment is not a constant
		 In file included from /usr/include/linux/interrupt.h:45,
		                  from nv.c:42:
/usr/include/asm/hardirq.h:16: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/hardirq.h:16: requested alignment is not a constant
In file included from nv.c:42:
/usr/include/linux/interrupt.h:128: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/interrupt.h:128: requested alignment is not a constant
nv.c:180:59: missing binary operator before '('
nv.c:784:59: missing binary operator before '('
nv.c:1098:59: missing binary operator before '('
nv.c:1127:59: missing binary operator before '('
nv.c:1470:59: missing binary operator before '('
nv.c: In function `nv_kern_mmap':
nv.c:1473: warning: implicit declaration of function `pgprot_writecombine'
nv.c:1473: incompatible types in assignment
nv.c:3020:59: missing binary operator before '('
make: *** [nv.o] Error 1
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# n.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
bash: n.h:3:2:: command not found
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
bash: /usr/include/linux/version.h:4:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:5:2: #error ""
bash: /usr/include/linux/version.h:5:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
bash: /usr/include/linux/version.h:6:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
bash: /usr/include/linux/version.h:7:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
bash: /usr/include/linux/version.h:8:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
bash: /usr/include/linux/version.h:9:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
bash: /usr/include/linux/version.h:10:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"
bash: /usr/include/linux/version.h:11:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
bash: /usr/include/linux/version.h:12:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:13:2: #error ""
bash: /usr/include/linux/version.h:13:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
bash: /usr/include/linux/version.h:14:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:15:2: #error ""
bash: /usr/include/linux/version.h:15:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
bash: /usr/include/linux/version.h:16:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:17:2: #error ""
bash: /usr/include/linux/version.h:17:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
bash: /usr/include/linux/version.h:18:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:19:2: #error "   /lib/modules/`uname -r`/build exists and points to"
bash: /usr/include/linux/version.h:19:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:20:2: #error "   the matching kernel source directory"
bash: /usr/include/linux/version.h:20:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:21:2: #error ""
bash: /usr/include/linux/version.h:21:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
bash: /usr/include/linux/version.h:22:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:23:2: #error "   /lib/modules/`uname -r`/build/include/linux/version.h"
bash: /usr/include/linux/version.h:23:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:24:2: #error ""
bash: /usr/include/linux/version.h:24:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
bash: /usr/include/linux/version.h:25:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:26:2: #error "   compiler option to use the correct include files:"
bash: /usr/include/linux/version.h:26:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:27:2: #error ""
bash: /usr/include/linux/version.h:27:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:28:2: #error "   -I/lib/modules/`uname -r`/build/include"
bash: /usr/include/linux/version.h:28:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:29:2: #error ""
bash: /usr/include/linux/version.h:29:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:30:2: #error "   instead of"
bash: /usr/include/linux/version.h:30:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:31:2: #error ""
bash: /usr/include/linux/version.h:31:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:32:2: #error "   -I/usr/include/linux"
bash: /usr/include/linux/version.h:32:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:33:2: #error ""
bash: /usr/include/linux/version.h:33:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:34:2: #error "   Please adjust the Makefile accordingly."
bash: /usr/include/linux/version.h:34:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:35:2: #error "======================================================="
bash: /usr/include/linux/version.h:35:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# In file included from nv.c:25:
bash: In: command not found
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/module.h:298: parse error before "UTS_RELEASE"
bash: /usr/include/linux/module.h:298:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# In file included from nv-linux.h:24,
bash: In: command not found
[root@Fastwebnet NVIDIA_kernel-1.0-2960]#                  from nv.c:27:
bash: from: command not found
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:2:2: #error "======================================================="
bash: /usr/include/linux/version.h:2:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
bash: /usr/include/linux/version.h:3:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
bash: /usr/include/linux/version.h:4:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:5:2: #error ""
bash: /usr/include/linux/version.h:5:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
bash: /usr/include/linux/version.h:6:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
bash: /usr/include/linux/version.h:7:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
bash: /usr/include/linux/version.h:8:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
bash: /usr/include/linux/version.h:9:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
bash: /usr/include/linux/version.h:10:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"
bash: /usr/include/linux/version.h:11:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
bash: /usr/include/linux/version.h:12:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:13:2: #error ""
bash: /usr/include/linux/version.h:13:2:: No such file or directory
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# /usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
[root@Fastwebnet NVIDIA_kernel-1.0-2960]# 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 -D_X86=1 -Di386=1 -DUNIX -DLINUX -DNV4_HW -DNTRM -DRM20 -D_GNU_SOURCE -DRM_HEAPMGR -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=2960   -I. -I/usr/src/linux/include -Wno-cast-qual nv.c
In file included from /usr/include/linux/prefetch.h:13,
	         from /usr/include/linux/list.h:6,
	         from /usr/include/linux/module.h:11,
	         from nv.c:25:
/usr/include/asm/processor.h:55: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/processor.h:55: requested alignment is not a constant
In file included from /usr/include/linux/module.h:296, from nv.c:25:
/usr/include/linux/version.h:2:2: #error "======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error "   /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error "   the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error "   /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error "   compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error "   -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error "   instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error "   -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error "   Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error "======================================================="
In file included from nv.c:25:
/usr/include/linux/module.h:298: parse error before "UTS_RELEASE"
In file included from nv-linux.h:24, from nv.c:27:
/usr/include/linux/version.h:2:2: #error "======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error "   /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error "   the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error "   /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error "   compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error "   -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error "   instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error "   -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error "   Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error "======================================================="
In file included from nv.c:27:
nv-linux.h:32:40: missing binary operator before '('
nv-linux.h:34:42: missing binary operator before '('
nv-linux.h:36:42: missing binary operator before '('
nv-linux.h:38:42: missing binary operator before '('
nv-linux.h:40:42: missing binary operator before '('
nv-linux.h:44:4: #error This driver does not support 2.6.x or newer kernels!
nv-linux.h:53:28: linux/autoconf.h: No such file or directory
In file included from /usr/include/asm/hardirq.h:6, from /usr/include/linux/interrupt.h:45, from nv.c:42:
/usr/include/linux/irq.h:65: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/irq.h:65: requested alignment is not a constant
In file included from /usr/include/linux/interrupt.h:45, from nv.c:42:
/usr/include/asm/hardirq.h:16: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/hardirq.h:16: requested alignment is not a constant
In file included from nv.c:42:
/usr/include/linux/interrupt.h:128: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/interrupt.h:128: requested alignment is not a constant
nv.c:180:59: missing binary operator before '('
nv.c:784:59: missing binary operator before '('
nv.c:1098:59: missing binary operator before '('
nv.c:1127:59: missing binary operator before '('
nv.c:1470:59: missing binary operator before '('
nv.c: In function `nv_kern_mmap':
nv.c:1473: warning: implicit declaration of function `pgprot_writecombine'
nv.c:1473: incompatible types in assignment
nv.c:3020:59: missing binary operator before '('
make: *** [nv.o] Error 1
By Divine

 errore e non ho ancora capitò che cosa vuole 
Probabilmente, non hai installato alcune cose che gli servono,
tipo i sorgenti e gli headers del kernel.
Comunque, ti consiglio di scaricare i file NVIDIA.src.rpm
con cui puoi creare degli rpm che si installano e gestiscono meglio.
Vedi anche un mio Post di questa mattina su come compilare src.rpm
dal titolo "Re: problema driver nvidia".
ciao, Andrea