raduen
11-12-2003, 03:41 PM
I'm a Newbie....
I did try everything on this forum , i'm still getting errors.
last thing i did was NVIDIA_kernel-1.0-4191 compile or make...
NVIDIA_kernel-1.0-4191# make install
/usr/bin/gcc-2.95 -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=4191 -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/asm/semaphore.h:42,
from /usr/src/linux/include/linux/fs.h:205,
from /usr/src/linux/include/linux/capability.h:17,
from /usr/src/linux/include/linux/binfmts.h:5,
from /usr/src/linux/include/linux/sched.h:9,
from /usr/src/linux/include/linux/mm.h:4,
from /usr/src/linux/include/linux/slab.h:14,
from nv-linux.h:63,
from nv.c:14:
/usr/src/linux/include/linux/rwsem.h: In function `down_read_trylock':
/usr/src/linux/include/linux/rwsem.h:57: warning: implicit declaration of function `__down_read_trylock'
/usr/src/linux/include/linux/rwsem.h: In function `down_write_trylock':
/usr/src/linux/include/linux/rwsem.h:79: warning: implicit declaration of function `__down_write_trylock'
In file included from /usr/src/linux/include/linux/mm.h:4,
from /usr/src/linux/include/linux/slab.h:14,
from nv-linux.h:63,
from nv.c:14:
/usr/src/linux/include/linux/sched.h: At top level:
/usr/src/linux/include/linux/sched.h:280: parse error before `extern'
/usr/src/linux/include/linux/sched.h:280: warning: no semicolon at end of struct or union
In file included from /usr/src/linux/include/linux/mm.h:4,
from /usr/src/linux/include/linux/slab.h:14,
from nv-linux.h:63,
from nv.c:14:
/usr/src/linux/include/linux/sched.h: In function `mmdrop':
/usr/src/linux/include/linux/sched.h:837: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/sched.h: At top level:
/usr/src/linux/include/linux/sched.h:875: conflicting types for `kernel_thread'
/usr/include/asm/processor.h:436: previous declaration of `kernel_thread'
/usr/src/linux/include/linux/sched.h:1067: warning: This file contains more `{'s than `}'s.
In file included from /usr/src/linux/include/linux/slab.h:14,
from nv-linux.h:63,
from nv.c:14:
/usr/src/linux/include/linux/mm.h: In function `__vma_unlink':
/usr/src/linux/include/linux/mm.h:582: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/mm.h:583: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/mm.h:584: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/slab.h: At top level:
/usr/src/linux/include/linux/mm.h:711: warning: This file contains more `{'s than `}'s.
In file included from nv-linux.h:63,
from nv.c:14:
/usr/src/linux/include/linux/slab.h:81: warning: This file contains more `{'s than `}'s.
In file included from nv.c:14:
nv-linux.h:382: warning: This file contains more `{'s than `}'s.
nv.c: In function `nv_get_phys_address':
nv.c:2233: invalid use of undefined type `struct mm_struct'
nv.c:2235: dereferencing pointer to incomplete type
nv.c:2218: warning: `pg_dir' might be used uninitialized in this function
make: *** [nv.o] Error 1
I allso tried a newer version file: NVIDIA_kernel-1.0-4363
this is the uotput:
/usr/bin/gcc-2.95 -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=4363 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -I. -I/usr/src/linux/include -Wno-cast-qual nv.c
In file included from nv.c:14:
nv-linux.h:167: #error "Couldn't determine number of arguments expected by remap_page_range!"
make: *** [nv.o] Error 1
Please help....
I did try everything on this forum , i'm still getting errors.
last thing i did was NVIDIA_kernel-1.0-4191 compile or make...
NVIDIA_kernel-1.0-4191# make install
/usr/bin/gcc-2.95 -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=4191 -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/asm/semaphore.h:42,
from /usr/src/linux/include/linux/fs.h:205,
from /usr/src/linux/include/linux/capability.h:17,
from /usr/src/linux/include/linux/binfmts.h:5,
from /usr/src/linux/include/linux/sched.h:9,
from /usr/src/linux/include/linux/mm.h:4,
from /usr/src/linux/include/linux/slab.h:14,
from nv-linux.h:63,
from nv.c:14:
/usr/src/linux/include/linux/rwsem.h: In function `down_read_trylock':
/usr/src/linux/include/linux/rwsem.h:57: warning: implicit declaration of function `__down_read_trylock'
/usr/src/linux/include/linux/rwsem.h: In function `down_write_trylock':
/usr/src/linux/include/linux/rwsem.h:79: warning: implicit declaration of function `__down_write_trylock'
In file included from /usr/src/linux/include/linux/mm.h:4,
from /usr/src/linux/include/linux/slab.h:14,
from nv-linux.h:63,
from nv.c:14:
/usr/src/linux/include/linux/sched.h: At top level:
/usr/src/linux/include/linux/sched.h:280: parse error before `extern'
/usr/src/linux/include/linux/sched.h:280: warning: no semicolon at end of struct or union
In file included from /usr/src/linux/include/linux/mm.h:4,
from /usr/src/linux/include/linux/slab.h:14,
from nv-linux.h:63,
from nv.c:14:
/usr/src/linux/include/linux/sched.h: In function `mmdrop':
/usr/src/linux/include/linux/sched.h:837: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/sched.h: At top level:
/usr/src/linux/include/linux/sched.h:875: conflicting types for `kernel_thread'
/usr/include/asm/processor.h:436: previous declaration of `kernel_thread'
/usr/src/linux/include/linux/sched.h:1067: warning: This file contains more `{'s than `}'s.
In file included from /usr/src/linux/include/linux/slab.h:14,
from nv-linux.h:63,
from nv.c:14:
/usr/src/linux/include/linux/mm.h: In function `__vma_unlink':
/usr/src/linux/include/linux/mm.h:582: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/mm.h:583: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/mm.h:584: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/slab.h: At top level:
/usr/src/linux/include/linux/mm.h:711: warning: This file contains more `{'s than `}'s.
In file included from nv-linux.h:63,
from nv.c:14:
/usr/src/linux/include/linux/slab.h:81: warning: This file contains more `{'s than `}'s.
In file included from nv.c:14:
nv-linux.h:382: warning: This file contains more `{'s than `}'s.
nv.c: In function `nv_get_phys_address':
nv.c:2233: invalid use of undefined type `struct mm_struct'
nv.c:2235: dereferencing pointer to incomplete type
nv.c:2218: warning: `pg_dir' might be used uninitialized in this function
make: *** [nv.o] Error 1
I allso tried a newer version file: NVIDIA_kernel-1.0-4363
this is the uotput:
/usr/bin/gcc-2.95 -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=4363 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -I. -I/usr/src/linux/include -Wno-cast-qual nv.c
In file included from nv.c:14:
nv-linux.h:167: #error "Couldn't determine number of arguments expected by remap_page_range!"
make: *** [nv.o] Error 1
Please help....