PDA

View Full Version : RE: RH Phoebe 8.0.94 Compile Errors!


asemblR
02-24-03, 05:11 AM
Hello,
I've Patch the 1.0-4191 driver set with the 2.5/2.4 rmap patch from http://www.minion.de.
But IM still Getting Errors during Compile Time? What The Hell Do I Do?? I've tried Ever Thing That I Know
I Even Moved The "/lib/tls" dir to /lib/notls still Same Error. Can Someone Help Me Out A Little? Please

This is an Out put from tring to compile the drivers
----------------------------------------------------------
nv.c:1249:47: warning: pasting "(" and "vma" does not give a valid preprocessing token
nv.c: In function `nv_kern_mmap':
nv.c:1249: warning: passing arg 1 of `remap_page_range_R991eef6d' makes pointer
from integer without a cast
nv.c:1249: incompatible type for argument 4 of `remap_page_range_R991eef6d'
nv.c:1249: too few arguments to function `remap_page_range_R991eef6d'
nv.c:1269:47: warning: pasting "(" and "vma" does not give a valid preprocessing token
nv.c:1269: warning: passing arg 1 of `remap_page_range_R991eef6d' makes pointer
from integer without a cast
nv.c:1269: incompatible type for argument 4 of `remap_page_range_R991eef6d'
nv.c:1269: too few arguments to function `remap_page_range_R991eef6d'
nv.c:1353:69: warning: pasting "(" and "start" does not give a valid preprocessing token
nv.c:1353: warning: passing arg 1 of `remap_page_range_R991eef6d' makes pointer
from integer without a cast
nv.c:1353: incompatible type for argument 4 of `remap_page_range_R991eef6d'
nv.c:1353: too few arguments to function `remap_page_range_R991eef6d'
make: *** [nv.o] Error 1
--------------------------------------------------------

Thank You For Your Time ;-]

bwkaz
02-24-03, 08:00 AM
Was that patch specifically for RH 8.0.94's kernel? It is entirely possible that that patch makes the nVidia driver compile under an older Phoebe beta, but not the current one.

In other words, RedHat very likely changed their kernel interfaces again, so you need another patch. But I don't use RH, so I don't know for sure.

ppieti
02-24-03, 08:01 AM
Oh right, there was a missing step in my HOWTO, in nv-linux.h you'll need to use the
definition of REMAP_PAGE_RANGE that's inside
#ifdef KERNEL_2.5, that is

# define REMAP_PAGE_RANGE(a...) remap_page_range(vma, ## a)

instead of

# define REMAP_PAGE_RANGE(a...) remap_page_range(## a)

Should work (tm)

asemblR
02-25-03, 04:13 PM
Thanks Guys!! :D You Two Guys Are Nvidia Guru's :afro:
and ppieti You Should be Working For The Old Man in San Jose
(Mt. View) Where in the Hell Did You Learn so Much about "Linus's Kernel and Nvidia's Propreitary Code?"
You Both Amaze me with Your Tack and Poise Dealing With People
Who Just Yell Out "Gimme!" and "I Want!" :-]
I'll Have To Reinstall 8.0.94 on My Other Game Server Box Tonight When I Get Off of Work? I'll Deffinantly Let You Guys Know The results of The New Compile and Your Right I Don't Think That The "Patch" That IM Using Is For RH 8.0.94????

asemblR
02-26-03, 05:51 PM
Well That Did'nt Work and The Extra Thing about
The Part in The "nv-linux.h" file is not even There!
So, RedHat Deffenately Changed Something inthere???
Any Help Would Be appriciated

Heres The Error !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
--------------------------------------------------------------
[root@mothership NVIDIA_kernel-1.0-4191]# make
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
-DKBUILD_MODNAME="nvidia" -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.48/build/include -I/lib/modules/2.4.20-2.48/build/include/asm/mach-default -Wno-cast-qual nv.c
nv.c:1249:47: warning: pasting "(" and "vma" does not give a valid preprocessing token
nv.c: In function `nv_kern_mmap':
nv.c:1249: warning: passing arg 1 of `remap_page_range_Rd1588673' makes pointer from integer without a cast
nv.c:1249: incompatible type for argument 4 of `remap_page_range_Rd1588673'
nv.c:1249: too few arguments to function `remap_page_range_Rd1588673'
nv.c:1269:47: warning: pasting "(" and "vma" does not give a valid preprocessing token
nv.c:1269: warning: passing arg 1 of `remap_page_range_Rd1588673' makes pointer from integer without a cast
nv.c:1269: incompatible type for argument 4 of `remap_page_range_Rd1588673'
nv.c:1269: too few arguments to function `remap_page_range_Rd1588673'
nv.c:1353:69: warning: pasting "(" and "start" does not give a valid preprocessing token
nv.c:1353: warning: passing arg 1 of `remap_page_range_Rd1588673' makes pointer from integer without a cast
nv.c:1353: incompatible type for argument 4 of `remap_page_range_Rd1588673'
nv.c:1353: too few arguments to function `remap_page_range_Rd1588673'
make: *** [nv.o] Error 1

ppieti
02-26-03, 06:49 PM
Umn, the KERNEL_2_5 stuff is from the minion.de patch, first put that in, and then tweak nv-linux.h :)

rebus
02-26-03, 10:28 PM
Hello guys,
thanks for hints. It worked for me (RedHat Phoebe-3 8.0.94). :)

For those who still have no rpm here are patches and spec files for Phoebe-3.

http://rebus.webz.cz

asemblR
02-27-03, 02:23 PM
Thanks Rebus :D

Worked Pretty F@cking Killer!!!!!!!!!
My Hats Off To All of You Guys That Took The Time To Help Out A Stranger in need

Here's The Out Put From "glxinfo"
-----------------------------------------------------------

for Some Reason I Couldnt Paste it so Here's a txt output of it
Thanks Again
Urban Terror ,Unreal Tournament 2003 and Trbes 2 Are Playing Again!!!!!!!!!!!