2kgtstang
04-16-03, 11:41 PM
I'm trying my damnedest to build the kernel driver from the source 2880 package using rpmbuild --rebuild. Here is the output I'm getting:
+ make NVdriver
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=2880 -I. -I/lib/modules/2.4.20-9smp/build/include -Wno-cast-qual nv.c
In file included from /lib/modules/2.4.20-9smp/build/include/linux/vmalloc.h:8,
from nv-linux.h:29,
from nv.c:27:
/lib/modules/2.4.20-9smp/build/include/linux/highmem.h: In function `bh_kmap':
/lib/modules/2.4.20-9smp/build/include/linux/highmem.h:20: warning: pointer of type `void *' used in arithmetic
nv.c: In function `nv_kern_mmap':
nv.c:1390: warning: passing arg 1 of `remap_page_range_Rsmp_d8cd9cb2' makes pointer from integer without a cast
nv.c:1390: incompatible type for argument 4 of `remap_page_range_Rsmp_d8cd9cb2'
nv.c:1390: too few arguments to function `remap_page_range_Rsmp_d8cd9cb2'
nv.c:1407: warning: passing arg 1 of `remap_page_range_Rsmp_d8cd9cb2' makes pointer from integer without a cast
nv.c:1407: incompatible type for argument 4 of `remap_page_range_Rsmp_d8cd9cb2'
nv.c:1407: too few arguments to function `remap_page_range_Rsmp_d8cd9cb2'
nv.c:1438: warning: passing arg 1 of `remap_page_range_Rsmp_d8cd9cb2' makes pointer from integer without a cast
nv.c:1438: incompatible type for argument 4 of `remap_page_range_Rsmp_d8cd9cb2'
nv.c:1438: too few arguments to function `remap_page_range_Rsmp_d8cd9cb2'
nv.c: In function `nv_get_phys_address':
nv.c:2265: warning: implicit declaration of function `pte_offset'
nv.c:2265: warning: assignment makes pointer from integer without a cast
make: *** [nv.o] Error 1
It fails building NVdriver, so consequentially the install -m 0444 NVdriver step fails...
Am I missing something? Any help would be greatly appreciated. I'm running kernel 2.4.20-9smp and the appropriate kernel-source.
Thanks in advance!!!
+ make NVdriver
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=2880 -I. -I/lib/modules/2.4.20-9smp/build/include -Wno-cast-qual nv.c
In file included from /lib/modules/2.4.20-9smp/build/include/linux/vmalloc.h:8,
from nv-linux.h:29,
from nv.c:27:
/lib/modules/2.4.20-9smp/build/include/linux/highmem.h: In function `bh_kmap':
/lib/modules/2.4.20-9smp/build/include/linux/highmem.h:20: warning: pointer of type `void *' used in arithmetic
nv.c: In function `nv_kern_mmap':
nv.c:1390: warning: passing arg 1 of `remap_page_range_Rsmp_d8cd9cb2' makes pointer from integer without a cast
nv.c:1390: incompatible type for argument 4 of `remap_page_range_Rsmp_d8cd9cb2'
nv.c:1390: too few arguments to function `remap_page_range_Rsmp_d8cd9cb2'
nv.c:1407: warning: passing arg 1 of `remap_page_range_Rsmp_d8cd9cb2' makes pointer from integer without a cast
nv.c:1407: incompatible type for argument 4 of `remap_page_range_Rsmp_d8cd9cb2'
nv.c:1407: too few arguments to function `remap_page_range_Rsmp_d8cd9cb2'
nv.c:1438: warning: passing arg 1 of `remap_page_range_Rsmp_d8cd9cb2' makes pointer from integer without a cast
nv.c:1438: incompatible type for argument 4 of `remap_page_range_Rsmp_d8cd9cb2'
nv.c:1438: too few arguments to function `remap_page_range_Rsmp_d8cd9cb2'
nv.c: In function `nv_get_phys_address':
nv.c:2265: warning: implicit declaration of function `pte_offset'
nv.c:2265: warning: assignment makes pointer from integer without a cast
make: *** [nv.o] Error 1
It fails building NVdriver, so consequentially the install -m 0444 NVdriver step fails...
Am I missing something? Any help would be greatly appreciated. I'm running kernel 2.4.20-9smp and the appropriate kernel-source.
Thanks in advance!!!