LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 997|回复: 4

2.6.19内核安装Nvidia Riva TNT2 Pro时的问题

[复制链接]
发表于 2006-12-9 11:06:32 | 显示全部楼层 |阅读模式
内核已重新编译,根据网上的文章配置内核时没有选支持Nvidia Riva功能。

编译好后重启进入系统,下载官方驱动NVIDIA-Linux-x86-1.0-7174-pkg1.run,看了一下说明,这是支持TNT 2的最后一款驱动,有人说过可以支持2.6内核。

直接#sh  NVIDIA-Linux-x86-1.0-7174-pkg1.run,提示no precompile kernel interface,网上也找不到,按提示开始自动build module,编译到100%出错,没有错误原因提示。

我看了看nvidia-installer.log,没有看出什么端倪,不知问题在哪。

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sat Dec  9 10:31:17 2006

option status:
  license pre-accepted    : false
  update                  : false
  force update            : false
  expert                  : false
  uninstall               : false
  driver info             : false
  no precompiled interface: false
  no ncurses color        : false
  query latest driver ver : false
  OpenGL header files     : false
  no questions            : false
  silent                  : false
  no backup               : false
  kernel module only      : false
  sanity                  : false
  add this kernel         : false
  no runlevel check       : false
  no network              : false
  no ABI note             : false
  no RPMs                 : false
  force tls               : (not specified)
  force compat32 tls      : (not specified)
  X install prefix        : /usr/X11R6
  OpenGL install prefix   : /usr
  compat32 install prefix : (not specified)
  installer install prefix: /usr
  utility install prefix  : /usr
  kernel name             : (not specified)
  kernel include path     : (not specified)
  kernel source path      : (not specified)
  kernel output path      : (not specified)
  kernel install path     : (not specified)
  proc mount point        : /proc
  ui                      : (not specified)
  tmpdir                  : /tmp
  ftp mirror              : ftp://download.nvidia.com
  RPM file list           : (not specified)

Using: nvidia-installer ncurses user interface
-> License accepted.
-> No precompiled kernel interface was found to match your kernel; would you li
   ke the installer to attempt to download a kernel interface for your kernel f
   rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: No)
-> No precompiled kernel interface was found to match your kernel; this means
   that the installer will need to compile a new kernel interface.
-> Kernel source path: '/lib/modules/2.6.19/source'
-> Performing CC test with CC="cc".
-> Performing rivafb check.
-> Cleaning kernel module build directory.
   executing: 'cd ./usr/src/nv; make clean'...
   rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv.o nv-vm.o os-
   agp.o os-interface.o os-registry.o nvidia.mod.o
   rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
   rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
   rm -f -rf .tmp_versions
-> Building kernel module:
   executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.19/source S
   YSOUT=/lib/modules/2.6.19/build'...
   
   NVIDIA: calling KBUILD...
   make CC=cc KBUILD_OUTPUT=/lib/modules/2.6.19/build KBUILD_VERBOSE=1 -C /lib/
   modules/2.6.19/source SUBDIRS=/tmp/selfgz1648/NVIDIA-Linux-x86-1.0-7174-pkg1
   /usr/src/nv modules
   make -C /lib/modules/2.6.19/build \
           KBUILD_SRC=/usr/src/linux-2.6.19 \
           KBUILD_EXTMOD="/tmp/selfgz1648/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv" -
   f /usr/src/linux-2.6.19/Makefile modules
   test -e include/linux/autoconf.h -a -e include/config/auto.conf || (                \
           echo;                                                                \
           echo "  ERROR: Kernel configuration is invalid.";                \
           echo "         include/linux/autoconf.h or include/config/auto.conf are mis
   sing.";        \
           echo "         Run 'make oldconfig && make prepare' on kernel src to fix it
   .";        \
           echo;                                                                \
           /bin/false)
   mkdir -p /tmp/selfgz1648/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/.tmp_vers
   ions
   rm -f /tmp/selfgz1648/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/.tmp_version
   s/*
   make -f /usr/src/linux-2.6.19/scripts/Makefile.build obj=/tmp/selfgz1648/NVI
   DIA-Linux-x86-1.0-7174-pkg1/usr/src/nv
   echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /tmp/selfgz1648/NVI
   DIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv_compiler.h
     cc -Wp,-MD,/tmp/selfgz1648/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/.nv.o
   .d  -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.2/include -D__KERNEL_
   _ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.19/include -include include/linu
   x/autoconf.h  -I/tmp/selfgz1648/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv -W
   all -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-com
   mon -Os -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i686 -mtune=p
   entium3 -ffreestanding -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG
   _AS_CFI_SIGNAL_FRAME=1 -I/usr/src/linux-2.6.19/include/asm-i386/mach-default
   -Iinclude/asm-i386/mach-default -fomit-frame-pointer -fno-stack-protector -W
   declaration-after-statement -Wno-pointer-sign  -I/tmp/selfgz1648/NVIDIA-Linu
   x-x86-1.0-7174-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wfor
   mat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -
   O
   -fno-common -MD -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAM
   ES -D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERN
   EL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=7174
   -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -UDEBUG -U_DEBUG -DNDEBUG -DN
   V_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_PCI_DIS
   ABLE_DEVICE_PRESENT -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_
   STR(nv)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz1648/NVIDIA
   -Linux-x86-1.0-7174-pkg1/usr/src/nv/.tmp_nv.o /tmp/selfgz1648/NVIDIA-Linux-x
   86-1.0-7174-pkg1/usr/src/nv/nv.c
   In file included from /tmp/selfgz1648/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
   /nv/nv.c:14:
   /tmp/selfgz1648/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv-linux.h:17:26:
   error: linux/config.h: 没有那个文件或目录
   In file included from include/linux/list.h:8,
                    from include/linux/wait.h:22,
                    from include/asm/semaphore.h:41,
                    from include/linux/sched.h:59,
                    from include/linux/module.h:9,
                    from /tmp/selfgz1648/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
   /nv/nv-linux.h:46,
                    from /tmp/selfgz1648/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
   /nv/nv.c:14:
   include/linux/prefetch.h: In function 'prefetch_range':
   include/linux/prefetch.h:62: warning: pointer of type 'void *' used in arith
   metic
   /tmp/selfgz1648/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv-linux.h:241:5:
   warning: "NV_ENABLE_MEM_TRACKING" is not defined
   /tmp/selfgz1648/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv-linux.h:269:5:
   warning: "NV_ENABLE_MEM_TRACKING" is not defined
   /tmp/selfgz1648/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv-linux.h:691:2:
   warning: #warning "conftest.sh failed, assuming remap_page_range(4)!"
   /tmp/selfgz1648/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c: At top level
   :
   /tmp/selfgz1648/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:201: warning:
   initialization from incompatible pointer type
   /tmp/selfgz1648/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:223:5: warnin
   g: "NV_ENABLE_MEM_TRACKING" is not defined
   /tmp/selfgz1648/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c: In function
   'nvos_get_agp_device_by_class':
   /tmp/selfgz1648/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:404: warning:
   implicit declaration of function 'pci_find_class'
   /tmp/selfgz1648/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:404: warning:
   assignment makes pointer from integer without a cast
   /tmp/selfgz1648/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:418: warning:
   assignment makes pointer from integer without a cast
   /tmp/selfgz1648/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:1167:5: warni
   ng: "NV_ENABLE_MEM_TRACKING" is not defined
   /tmp/selfgz1648/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c: In function
   'nv_kern_open':
   /tmp/selfgz1648/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:1365: warning
   : passing argument 2 of 'request_irq' from incompatible pointer type
   /tmp/selfgz1648/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c: In function
   'nv_kern_mmap':
   /tmp/selfgz1648/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:1541: warning
   : implicit declaration of function 'remap_page_range'
   /tmp/selfgz1648/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c: In function
   'nvos_count_devices':
   /tmp/selfgz1648/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:3232: warning
   : assignment makes pointer from integer without a cast
   /tmp/selfgz1648/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:3237: warning
   : assignment makes pointer from integer without a cast
   make[4]: *** [/tmp/selfgz1648/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.o
   ] 错误 1
   make[3]: *** [_module_/tmp/selfgz1648/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
   /nv] 错误 2
   make[2]: *** [modules] 错误 2
   NVIDIA: left KBUILD.
   nvidia.ko failed to build!
   make[1]: *** [module] 错误 1
   make: *** [module] 错误 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed.  Please see the file
       '/var/log/nvidia-installer.log' for details.  You may find suggestions
       on fixing installation problems in the README available on the Linux
       driver download page at www.nvidia.com.

有谁能知道吗?
发表于 2006-12-9 19:44:34 | 显示全部楼层
In file included from /tmp/selfgz1648/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
/nv/nv.c:14:
/tmp/selfgz1648/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv-linux.h:17:26:
error: linux/config.h: 没有那个文件或目录

没有装对应的内核源码???
回复 支持 反对

使用道具 举报

发表于 2006-12-10 18:28:11 | 显示全部楼层
我也是用tnt2的,驱动也没有装好,郁闷~
要是楼主安装成功了,麻烦教一下,谢谢
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-10 22:24:47 | 显示全部楼层
Post by troyme
In file included from /tmp/selfgz1648/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
/nv/nv.c:14:
/tmp/selfgz1648/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv-linux.h:17:26:
error: linux/config.h: 没有那个文件或目录

没有装对应的内核源码???


新内核好像不这样命名了,把对应文件拷过来之后,错误信息如下:

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sun Dec 10 15:29:34 2006

option status:
  license pre-accepted    : false
  update                  : false
  force update            : false
  expert                  : false
  uninstall               : false
  driver info             : false
  no precompiled interface: false
  no ncurses color        : false
  query latest driver ver : false
  OpenGL header files     : false
  no questions            : false
  silent                  : false
  no backup               : false
  kernel module only      : false
  sanity                  : false
  add this kernel         : false
  no runlevel check       : false
  no network              : false
  no ABI note             : false
  no RPMs                 : false
  force tls               : (not specified)
  force compat32 tls      : (not specified)
  X install prefix        : /usr/X11R6
  OpenGL install prefix   : /usr
  compat32 install prefix : (not specified)
  installer install prefix: /usr
  utility install prefix  : /usr
  kernel name             : (not specified)
  kernel include path     : (not specified)
  kernel source path      : (not specified)
  kernel output path      : (not specified)
  kernel install path     : (not specified)
  proc mount point        : /proc
  ui                      : (not specified)
  tmpdir                  : /tmp
  ftp mirror              : ftp://download.nvidia.com
  RPM file list           : (not specified)

Using: nvidia-installer ncurses user interface
-> License accepted.
-> No precompiled kernel interface was found to match your kernel; would you li
   ke the installer to attempt to download a kernel interface for your kernel f
   rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: No)
-> No precompiled kernel interface was found to match your kernel; this means
   that the installer will need to compile a new kernel interface.
-> Kernel source path: '/lib/modules/2.6.19/source'
-> Performing CC test with CC="cc".
-> Performing rivafb check.
-> Cleaning kernel module build directory.
   executing: 'cd ./usr/src/nv; make clean'...
   rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv.o nv-vm.o os-
   agp.o os-interface.o os-registry.o nvidia.mod.o
   rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
   rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
   rm -f -rf .tmp_versions
-> Building kernel module:
   executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.19/source S
   YSOUT=/lib/modules/2.6.19/build'...
   
   NVIDIA: calling KBUILD...
   make CC=cc KBUILD_OUTPUT=/lib/modules/2.6.19/build KBUILD_VERBOSE=1 -C /lib/
   modules/2.6.19/source SUBDIRS=/tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1
   /usr/src/nv modules
   make -C /lib/modules/2.6.19/build \
           KBUILD_SRC=/usr/src/linux-2.6.19 \
           KBUILD_EXTMOD="/tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv" -
   f /usr/src/linux-2.6.19/Makefile modules
   test -e include/linux/autoconf.h -a -e include/config/auto.conf || (                \
           echo;                                                                \
           echo "  ERROR: Kernel configuration is invalid.";                \
           echo "         include/linux/autoconf.h or include/config/auto.conf are mis
   sing.";        \
           echo "         Run 'make oldconfig && make prepare' on kernel src to fix it
   .";        \
           echo;                                                                \
           /bin/false)
   mkdir -p /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/.tmp_vers
   ions
   rm -f /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/.tmp_version
   s/*
   make -f /usr/src/linux-2.6.19/scripts/Makefile.build obj=/tmp/selfgz9236/NVI
   DIA-Linux-x86-1.0-7174-pkg1/usr/src/nv
   echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /tmp/selfgz9236/NVI
   DIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv_compiler.h
     cc -Wp,-MD,/tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/.nv.o
   .d  -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.2/include -D__KERNEL_
   _ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.19/include -include include/linu
   x/autoconf.h  -I/tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv -W
   all -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-com
   mon -O2 -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i686 -mtune=p
   entium3 -ffreestanding -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG
   _AS_CFI_SIGNAL_FRAME=1 -I/usr/src/linux-2.6.19/include/asm-i386/mach-default
   -Iinclude/asm-i386/mach-default -fomit-frame-pointer -fno-stack-protector -W
   declaration-after-statement -Wno-pointer-sign  -I/tmp/selfgz9236/NVIDIA-Linu
   x-x86-1.0-7174-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wfor
   mat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -
   O
   -fno-common -MD -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAM
   ES -D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERN
   EL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=7174
   -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -UDEBUG -U_DEBUG -DNDEBUG -DN
   V_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_PCI_DIS
   ABLE_DEVICE_PRESENT -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_
   STR(nv)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz9236/NVIDIA
   -Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.o /tmp/selfgz9236/NVIDIA-Linux-x86-1.
   0-7174-pkg1/usr/src/nv/nv.c
   In file included from include/linux/list.h:8,
                    from include/linux/wait.h:22,
                    from include/asm/semaphore.h:41,
                    from include/linux/sched.h:59,
                    from include/linux/module.h:9,
                    from /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
   /nv/nv-linux.h:46,
                    from /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
   /nv/nv.c:14:
   include/linux/prefetch.h: In function 'prefetch_range':
   include/linux/prefetch.h:62: warning: pointer of type 'void *' used in arith
   metic
   In file included from /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
   /nv/nv.c:14:
   /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv-linux.h:241:5:
   warning: "NV_ENABLE_MEM_TRACKING" is not defined
   /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv-linux.h:269:5:
   warning: "NV_ENABLE_MEM_TRACKING" is not defined
   /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv-linux.h:691:2:
   warning: #warning "conftest.sh failed, assuming remap_page_range(4)!"
   /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c: At top level
   :
   /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:201: warning:
   initialization from incompatible pointer type
   /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:223:5: warnin
   g: "NV_ENABLE_MEM_TRACKING" is not defined
   /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c: In function
   'nvos_get_agp_device_by_class':
   /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:404: warning:
   implicit declaration of function 'pci_find_class'
   /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:404: warning:
   assignment makes pointer from integer without a cast
   /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:418: warning:
   assignment makes pointer from integer without a cast
   /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:1167:5: warni
   ng: "NV_ENABLE_MEM_TRACKING" is not defined
   /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c: In function
   'nv_kern_open':
   /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:1365: warning
   : passing argument 2 of 'request_irq' from incompatible pointer type
   /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c: In function
   'nv_kern_mmap':
   /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:1541: warning
   : implicit declaration of function 'remap_page_range'
   /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c: In function
   'nvos_count_devices':
   /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:3232: warning
   : assignment makes pointer from integer without a cast
   /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:3237: warning
   : assignment makes pointer from integer without a cast
     cc -Wp,-MD,/tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/.nv-v
   m.o.d  -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.2/include -D__KERN
   EL__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.19/include -include include/l
   inux/autoconf.h  -I/tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv
   -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-c
   ommon -O2 -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i686 -mtune
   =pentium3 -ffreestanding -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONF
   IG_AS_CFI_SIGNAL_FRAME=1 -I/usr/src/linux-2.6.19/include/asm-i386/mach-defau
   lt -Iinclude/asm-i386/mach-default -fomit-frame-po
   inter -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign  
   -I/tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv -Wall -Wimplicit
   -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-ar
   ith -Wno-multichar -Werror -O -fno-common -MD -Wsign-compare -Wno-cast-qual
   -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE
   -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_
   VERSION=0 -DNV_PATCHLEVEL=7174 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X8
   6 -UDEBUG -U_DEBUG -DNDEBUG -DNV_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_CHANGE
   _PAGE_ATTR_PRESENT -DNV_PCI_DISABLE_DEVICE_PRESENT -DMODULE -D"KBUILD_STR(s)
   =#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_vm)"  -D"KBUILD_MODNAME=KBUILD_STR(nvi
   dia)" -c -o /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv-vm.
   o /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv-vm.c
   In file included from include/linux/list.h:8,
                    from include/linux/wait.h:22,
                    from include/asm/semaphore.h:41,
                    from include/linux/sched.h:59,
                    from include/linux/module.h:9,
                    from /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
   /nv/nv-linux.h:46,
                    from /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
   /nv/nv-vm.c:14:
   include/linux/prefetch.h: In function 'prefetch_range':
   include/linux/prefetch.h:62: warning: pointer of type 'void *' used in arith
   metic
   In file included from /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
   /nv/nv-vm.c:14:
   /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv-linux.h:241:5:
   warning: "NV_ENABLE_MEM_TRACKING" is not defined
   /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv-linux.h:269:5:
   warning: "NV_ENABLE_MEM_TRACKING" is not defined
   /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv-linux.h:691:2:
   warning: #warning "conftest.sh failed, assuming remap_page_range(4)!"
     cc -Wp,-MD,/tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/.os-a
   gp.o.d  -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.2/include -D__KER
   NEL__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.19/include -include include/
   linux/autoconf.h  -I/tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/n
   v -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno
   -common -O2 -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i686 -mtu
   ne=pentium3 -ffreestanding -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCO
   NFIG_AS_CFI_SIGNAL_FRAME=1 -I/usr/src/linux-2.6.19/include/asm-i386/mach-def
   ault -Iinclude/asm-i386/mach-default -fomit-frame-pointer -fno-stack-protect
   or -Wdeclaration-after-statement -Wno-pointer-sign  -I/tmp/selfgz9236/NVIDIA
   -Linux-x86-1.0-7174-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch
   -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Wer
   ror -O -fno-common -MD -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KER
   NEL_NAMES -D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -
   D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINO
   R_VERSION=0 -DNV_PATCHLEVEL=7174 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_
   X86 -UDEBUG -U_DEBUG -DNDEBUG -DNV_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_CHAN
   GE_PAGE_ATTR_PRESENT -DNV_PCI_DISABLE_DEVICE_PRESENT -DMODULE -D"KBUILD_STR(
   s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(os_agp)"  -D"KBUILD_MODNAME=KBUILD_STR(
   nvidia)" -c -o /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/os-
   agp.o /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/os-agp.c
   In file included from include/linux/list.h:8,
                    from include/linux/wait.h:22,
                    from include/asm/semaphore.h:41,
                    from include/linux/sched.h:59,
                    from include/linux/module.h:9,
                    from /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
   /nv/nv-linux.h:46,
                    from /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
   /nv/os-agp.c:24:
   include/linux/prefetch.h: In function 'prefetch_range':
   include/linux/prefetch.h:62: warning: pointer of type 'void *' used in arith
   metic
   In file included from /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
   /nv/os-agp.c:24:
   /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv-linux.h:241:5:
   warning: "NV_ENABLE_MEM_TRACKING" is not defined
   /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv-linux.h:269:5:
   warning: "NV_ENABLE_MEM_TRACKING" is not defined
   /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv-linux.h:691:2:
   warning: #warning "conftest.sh failed, assuming remap_page_range(4)!"
     cc -Wp,-MD,/tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/.os-i
   nterface.o.d  -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.2/include -
   D__KERNEL__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.19/include -include in
   clude/linux/autoconf.h  -I/tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr
   /src/nv -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasin
   g -fno-common -O2 -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i68
   6 -mtune=pentium3 -ffreestanding -maccumulate-outgoing-args -DCONFIG_AS_CFI=
   1 -DCONFI
   G_AS_CFI_SIGNAL_FRAME=1 -I/usr/src/linux-2.6.19/include/asm-i386/mach-defaul
   t -Iinclude/asm-i386/mach-default -fomit-frame-pointer -fno-stack-protector
   -Wdeclaration-after-statement -Wno-pointer-sign  -I/tmp/selfgz9236/NVIDIA-Li
   nux-x86-1.0-7174-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wf
   ormat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror
   -O -fno-common -MD -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_
   NAMES -D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__K
   ERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=7
   174 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -UDEBUG -U_DEBUG -DNDEBUG
   -DNV_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_PCI_
   DISABLE_DEVICE_PRESENT -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUI
   LD_STR(os_interface)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/self
   gz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/os-interface.o /tmp/selfgz9
   236/NVIDIA-Linux-x86-1.0-7174-pkg1
   /usr/src/nv/os-interface.c
   In file included from include/linux/list.h:8,
                    from include/linux/wait.h:22,
                    from include/asm/semaphore.h:41,
                    from include/linux/sched.h:59,
                    from include/linux/module.h:9,
                    from /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
   /nv/nv-linux.h:46,
                    from /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
   /nv/os-interface.c:26:
   include/linux/prefetch.h: In function 'prefetch_range':
   include/linux/prefetch.h:62: warning: pointer of type 'void *' used in arith
   metic
   In file included from /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
   /nv/os-interface.c:26:
   /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv-linux.h:241:5:
   warning: "NV_ENABLE_MEM_TRACKING" is not defined
   /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv-linux.h:269:5:
   warning: "NV_ENABLE_MEM_TRACKING" is not defined
   /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv-linux.h:691:2:
   warning: #warning "conftest.sh failed, assuming remap_page_range(4)!"
   /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/os-interface.c:667
   :5: warning: "DEBUG" is not defined
   /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/os-interface.c:679
   :5: warning: "DEBUG" is not defined
   /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/os-interface.c: In
   function 'os_set_mlock_capability':
   /tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/os-interface.c:126
   2: error: 'struct task_struct' has no member named 'rlim'
   make[4]: *** [/tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/os-i
   nterface.o] Error 1
   make[3]: *** [_module_/tmp/selfgz9236/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
   /nv] Error 2
   make[2]: *** [modules] Error 2
   NVIDIA: left KBUILD.
   nvidia.ko failed to build!
   make[1]: *** [module] Error 1
   make: *** [module] Error 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed.  Please see the file
       '/var/log/nvidia-installer.log' for details.  You may find suggestions
       on fixing installation problems in the README available on the Linux
       driver download page at www.nvidia.com.


居然是没有相应变量的错误:

error: 'struct task_struct' has no member named 'rlim'

似乎NVidia的老版驱动已经不能适应新内核了,
看来是没希望装上3D支持了,不过内核对色彩刷新率的支持都没有问题。
回复 支持 反对

使用道具 举报

发表于 2006-12-11 08:16:19 | 显示全部楼层
好像还有一种方法,用module-assistant安装的,不过至今我也没调试成功
郁闷
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表