|
提示为:
root:~# cd ./N*2
bash: cd: ./N*2: No such file or directory
root:~# ./N*n --extract-only
Creating directory NVIDIA-Linux-x86-1.0-4496-pkg2
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86 1.0-4496.................................................................
.....................................................................
.......
root:~# cd ./N*2
root:~/NVIDIA-Linux-x86-1.0-4496-pkg2# ls
LICENSE Makefile nvidia-installer pkg-history.txt usr
root:~/NVIDIA-Linux-x86-1.0-4496-pkg2# export IGNORE_CC_MISMATCH=1
root:~/NVIDIA-Linux-x86-1.0-4496-pkg2# make install
cd usr/src/nv; make install
make[1]: Entering directory `/root/NVIDIA-Linux-x86-1.0-4496-pkg2/usr/src/nv'
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > nv_compiler.h
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=4496
-DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -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:12,
from nv-linux.h:28,
from nv.c:14:
/usr/include/asm/processor.h:56: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/processor.h:56: error: requested alignment is not a constant
In file included from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:46,
from nv-linux.h:79,
from nv.c:14:
/usr/include/linux/irq.h:65: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/irq.h:65: error: requested alignment is not a constant
In file included from /usr/include/linux/interrupt.h:46,
from nv-linux.h:79,
from nv.c:14:
/usr/include/asm/hardirq.h:16: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/hardirq.h:16: error: requested alignment is not a constant
In file included from nv-linux.h:79,
from nv.c:14:
/usr/include/linux/interrupt.h:129: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/interrupt.h:129: error: requested alignment is not a constant
In file included from nv.c:14:
nv-linux.h:402:2: #error "Couldn't determine number of arguments expected by remap_page_range!"
nv.c: In function `init_module':
nv.c:759: warning: unused variable `i'
nv.c: In function `cleanup_module':
nv.c:861: warning: unused variable `i'
nv.c: In function `nv_kern_mmap':
nv.c:1349: warning: implicit declaration of function `NV_REMAP_PAGE_RANGE'
make[1]: *** [nv.o] Error 1
make[1]: Leaving directory `/root/NVIDIA-Linux-x86-1.0-4496-pkg2/usr/src/nv'
make: *** [kernel_module_install] Error 2
root:~/NVIDIA-Linux-x86-1.0-4496-pkg2#
头文件没用符号联接。
头文件和内核是一个版本。
不会是源文件错了吧!!! |
|