View Single Post
Old 01-24-03, 06:06 PM   #1
lordpil
Registered User
 
Join Date: Jan 2003
Posts: 3
Default Redhat Phoebe - compiling 4191 drivers

Okay, I have kernel sources installed, 2.4.20. Note I've tried using the redhat package as well as my own custom kernel with the exact same problem... I'm using RH 8.0.93 beta, it uses gcc 3.2.1. When I attempt to compile from tarball, this is what happens:

[root@resnet130-101 NVIDIA_kernel-1.0-4191]# make
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -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=4191 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -I. -I/lib/modules/2.4.20-2.21custom/build/include -Wno-cast-qual nv.c
In file included from /lib/modules/2.4.20-2.21custom/build/include/linux/mm.h:22,
from /lib/modules/2.4.20-2.21custom/build/include/linux/slab.h:14,
from nv-linux.h:63,
from nv.c:14:
/lib/modules/2.4.20-2.21custom/build/include/linux/sched.h:548:1: warning: "cpu_online" redefined
In file included from /lib/modules/2.4.20-2.21custom/build/include/linux/sched.h:25,
from /lib/modules/2.4.20-2.21custom/build/include/linux/mm.h:22,
from /lib/modules/2.4.20-2.21custom/build/include/linux/slab.h:14,
from nv-linux.h:63,
from nv.c:14:
/lib/modules/2.4.20-2.21custom/build/include/linux/smp.h:87:1: warning: this is
the location of the previous definition
nv.c: In function `nv_get_phys_address':
nv.c:2250: warning: implicit declaration of function `pte_offset'
nv.c:2250: invalid type argument of `unary *'
make: *** [nv.o] Error 1

Source RPM also fails... I realise this is a beta, but I can't figure out what is wrong. I have had problems before a few tiems with nvidia drivers on stable versions similar to this. Any ideas?
The warnings there are the same i get when compiling the modules for the rh8.0.93 kernel .config, I don't know if that has anything to do with it.

Thanks for any help.
lordpil is offline   Reply With Quote