View Single Post
Old 01-18-06, 03:23 PM   #1
blwegrzyn
Registered User
 
Join Date: Jan 2006
Posts: 21
Default problems with compiling on 2.6.16-rc1

When I try to complie it i receive that error:


prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O
2 -fomit-frame-pointer -g -pipe -msoft-float -mpreferred-stack-boundary=2 -m
arch=i686 -mtune=pentium4 -mregparm=3 -I/usr/src/kernels/linux-2.6.16-rc1/in
clude/asm-i386/mach-generic -Iinclude/asm-i386/mach-generic -I/usr/src/kerne
ls/linux-2.6.16-rc1/include/asm-i386/mach-default -Iinclude/asm-i386/mach-de
fault -Wdeclaration-after-statement -Wno-pointer-sign -I/tmp/selfgz7022/NVI
DIA-Linux-x86-1.0-8178-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswit
ch -Wformat -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 -DNVRM -DDYNAMIC_SLI -DNV_MAJOR_VE
RSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=8178 -UDEBUG -U_DEBUG -DNDEBUG
-DNV_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DMODULE
-D"KBUILD_STR(s)=#s" -D"KBUILD_BASEN
AME=KBUILD_STR(nv)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz
7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/.tmp_nv.o /tmp/selfgz7022/NVI
DIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c
In file included from include/linux/list.h:7,
from include/linux/wait.h:23,
from include/asm/semaphore.h:41,
from include/linux/sched.h:20,
from include/linux/module.h:10,
from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/nv-linux.h:47,
from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-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 a
rithmetic
In file included from include/linux/dmapool.h:14,
from include/linux/pci.h:523,
from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/nv-linux.h:71,
from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/nv.c:14:
include/asm/io.h: In function ‚check_signature‚:
include/asm/io.h:258: warning: wrong type argument to increment
In file included from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/nv.c:14:
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv-linux.h:677:2:
warning: #warning "conftest.sh failed, assuming remap_page_range(4)!"
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c: At top level
:
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c:296: warning:
initialization from incompatible pointer type
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c: In function
‚nvos_get_agp_device_by_class‚:
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c:502: warning:
implicit declaration of function ‚pci_find_class‚
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c:502: warning:
assignment makes pointer from integer without a cast
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c:516: warning:
assignment makes pointer from integer without a cast
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c: In function
‚nvidia_init_module‚:
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c:1305: warning
: implicit declaration of function ‚pm_register‚
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c:1305: warning
: assignment makes pointer from integer without a cast
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c:1423: warning
: implicit declaration of function ‚pm_unregister‚
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c: In function
‚nv_kern_mmap‚:
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c:1979: warning
: implicit declaration of function ‚remap_page_range‚
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c: In function
‚nvos_count_devices‚:
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c:3641: warning
: assignment makes pointer from integer without a cast
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c:3647: warning
: assignment makes pointer from integer without a cast
cc -Wp,-MD,/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/.nv-v
m.o.d -nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/4.0.0/include -D__K
ERNEL__ -Iinclude -Iinclude2 -I/usr/src/kernels/linux-2.6.16-rc1/include -in
clude include/linux/autoconf.h -I/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-
pkg1/usr/src/nv -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict
-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointer -g -pipe -msof
t-float -mpreferred-stack-boundary=2 -march=i686 -mtune=pentium4 -mregparm=3
-I/usr/src/kernels/linux-2.6.16-rc1/include/asm-i386/mach-generic -Iinclude/
asm-i386/mach-generic -I/usr/src/kernels/linux-2.6.16-rc1/include/asm-i386/m
ach-default -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement -W
no-pointer-sign -I/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv
-Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -
Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -fno-common -MD -Wsig
n-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMOD
ULE -DNTRM -DNVRM -DDYNAMIC_SLI -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -D
NV_PATCHLEVEL=8178 -UDEBUG -U_DEBUG -DNDEBUG -DNV_MULTIPLE_BRIDGE_AGPGART_PR
ESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_
BASENAME=KBUILD_STR(nv_vm)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tm
p/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/.tmp_nv-vm.o /tmp/sel
fgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv-vm.c
In file included from include/linux/list.h:7,
from include/linux/wait.h:23,
from include/asm/semaphore.h:41,
from include/linux/sched.h:20,
from include/linux/module.h:10,
from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/nv-linux.h:47,
from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-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 a
rithmetic
In file included from include/linux/dmapool.h:14,
from include/linux/pci.h:523,
from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/nv-linux.h:71,
from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/nv-vm.c:14:
include/asm/io.h: In function ‚check_signature‚:
include/asm/io.h:258: warning: wrong type argument to increment
In file included from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/nv-vm.c:14:
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv-linux.h:677:2:
warning: #warning "conftest.sh failed, assuming remap_page_range(4)!"
cc -Wp,-MD,/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/.os-a
gp.o.d -nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/4.0.0/include -D__
KERNEL__ -Iinclude -Iinclude2 -I/usr/src/kernels/linux-2.6.16-rc1/include -i
nclude include/linux/autoconf.h -I/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178
-pkg1/usr/src/nv -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-stric
t-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointer -g -pipe -mso
ft-float -mpreferred-stack-boundary=2 -march=i686 -mtune=pentium4 -mregparm=
3 -I/usr/src/kernels/linux-2.6.16-rc1/include/asm-i386/mach-generic -Iinclud
e/asm-i386/mach-generic -I/usr/src/kernels/linux-2.6.16-rc1/include/asm-i386
/mach-default -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement
-Wno-pointer-sign -I/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/
nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wpare
ntheses -Wpointer-arith -Wno-multichar -Werror -O -fno-common -MD -Wsign-com
pare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -
DNTRM -DNVRM -DDYNAMIC_SLI -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PA
TCHLEVEL=8178 -UDEBUG -U_DEBUG -DNDEBUG -DNV_MULTIPLE_BRIDGE_AGPGART_PRESENT
-DNV_CHANGE_PAGE_ATTR_PRESENT -DMODULE -D"KBUILD_STR(
s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(os_agp)" -D"KBUILD_MODNAME=KBUILD_STR(
nvidia)" -c -o /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/.tm
p_os-agp.o /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/os-agp.
c
In file included from include/linux/list.h:7,
from include/linux/wait.h:23,
from include/asm/semaphore.h:41,
from include/linux/sched.h:20,
from include/linux/module.h:10,
from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/nv-linux.h:47,
from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-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 a
rithmetic
In file included from include/linux/dmapool.h:14,
from include/linux/pci.h:523,
from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/nv-linux.h:71,
from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/os-agp.c:24:
include/asm/io.h: In function ‚check_signature‚:
include/asm/io.h:258: warning: wrong type argument to increment
In file included from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/os-agp.c:24:
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv-linux.h:677:2:
warning: #warning "conftest.sh failed, assuming remap_page_range(4)!"
cc -Wp,-MD,/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/.os-i
nterface.o.d -nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/4.0.0/includ
e -D__KERNEL__ -Iinclude -Iinclude2 -I/usr/src/kernels/linux-2.6.16-rc1/incl
ude -include include/linux/autoconf.h -I/tmp/selfgz7022/NVIDIA-Linux-x86-1.
0-8178-pkg1/usr/src/nv -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno
-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointer -g -pip
e -msoft-float -mpreferred-stack-boundary=2 -march=i686 -mtune=pentium4 -mre
gparm=3 -I/usr/src/kernels/linux-2.6.16-rc1/include/asm-i386/mach-gener
ic -Iinclude/asm-i386/mach-generic -I/usr/src/kernels/linux-2.6.16-rc1/inclu
de/asm-i386/mach-default -Iinclude/asm-i386/mach-default -Wdeclaration-after
-statement -Wno-pointer-sign -I/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pk
g1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscr
ipts -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 -DNVRM -DDYNAMIC_SLI -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION
=0 -DNV_PATCHLEVEL=8178 -UDEBUG -U_DEBUG -DNDEBUG -DNV_MULTIPLE_BRIDGE_AGPGA
RT_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DMODULE -D"KBUILD_STR(s)=#s" -D"KB
UILD_BASENAME=KBUILD_STR(os_interface)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia
)" -c -o /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/.tmp_os-i
nterface.o /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/os-inte
rface.c
In file included from include/linux/list.h:7,
from include/linux/wait.h:23,
from include/asm/semaphore.h:41,
from include/linux/sched.h:20,
from include/linux/module.h:10,
from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/nv-linux.h:47,
from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-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 a
rithmetic
In file included from include/linux/dmapool.h:14,
from include/linux/pci.h:523,
from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/nv-linux.h:71,
from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/os-interface.c:26:
include/asm/io.h: In function ‚check_signature‚:
include/asm/io.h:258: warning: wrong type argument to increment
In file included from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/os-interface.c:26:
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv-linux.h:677:2:
warning: #warning "conftest.sh failed, assuming remap_page_range(4)!"
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/os-interface.c: In
function ‚os_set_mlock_capability‚:
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/os-interface.c:137
5: error: ‚struct task_struct‚ has no member named ‚rlim‚
make[4]: *** [/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/os-i
nterface.o] Error 1
make[3]: *** [_module_/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv] Error 2
make[2]: *** [cdbuilddir] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [mdl] 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.
[root@localhost log]#


any ideas

thx
blwegrzyn is offline   Reply With Quote