nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Cannot successfully compile drivers (http://www.nvnews.net/vbulletin/showthread.php?t=11756)

TRON21Net 05-13-03 08:21 PM

Cannot successfully compile drivers
 
Alright here goes, I download the source RPM file and I su as root then I proform the command rpmbuild <file.rpm> --rebuild then I get a lot of compiling messages then out of no where warning messages start showing up and then gcc dies with:

Quote:

cc -D__KERNEL__ -I/lib/modules/2.4.20-8/build/include -Wall -Wstrict-prototypes
-O -fno-strict-aliasing -mpreferred-stack-boundary=2 -march=i686 -falign-functi
ons=4 -DMODULE -DMODVERSIONS -include /lib/modules/2.4.20-8/build/include/linux
/modversions.h -c -o nvspdif.o nvspdif.c
cc -D__KERNEL__ -I/lib/modules/2.4.20-8/build/include -Wall -Wstrict-prototypes
-O -fno-strict-aliasing -mpreferred-stack-boundary=2 -march=i686 -falign-functi
ons=4 -DMODULE -DMODVERSIONS -include /lib/modules/2.4.20-8/build/include/linux
/modversions.h -c -o nvcrush.o nvcrush.c
nvcrush.c: In function `Nvaudio_mmapwrite':
nvcrush.c:426: warning: passing arg 1 of `remap_page_range_R2baf18f2' makes poin
ter from integer without a cast
nvcrush.c:426: incompatible type for argument 4 of `remap_page_range_R2baf18f2'
nvcrush.c:426: too few arguments to function `remap_page_range_R2baf18f2'
nvcrush.c: In function `Nvaudio_mmap':
nvcrush.c:465: warning: passing arg 1 of `remap_page_range_R2baf18f2' makes poin
ter from integer without a cast
nvcrush.c:465: incompatible type for argument 4 of `remap_page_range_R2baf18f2'
nvcrush.c:465: too few arguments to function `remap_page_range_R2baf18f2'
make[2]: *** [nvcrush.o] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/nforce/nvaudio'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/redhat/BUILD/nforce/nvaudio'
make: *** [nvaudio_make] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.55443 (%build)
Talk about suckage.... So nvidia developers made a typo in their code or what?

bwkaz 05-14-03 08:20 AM

I see this is RH9 (at least, according to the kernel being used...), and you're trying to compile the nForce audio driver (as opposed to, say, the nVidia video driver).

I believe there are issues with nForce and RH9. The error you're getting looks to be some problem with remap_page_range, which RH changed in RH9's kernel (they backported a lot of kernel 2.5's features).

Which nForce driver is this? If it's not 256, try 256 (which I believe is the latest). If it is 256, then ... I'm not sure. Either wait for the nVidia developers to fix it, or look for binaries for RH9, or something.

TRON21Net 05-14-03 11:31 AM

Yes this is Redhat 9 I am using and I also recevied the same errors with Redhat 8, so I upgraded thinking it would solve the problem, nope... Get the same thing. I use to use the second released update kernel RH released before the latest for RH8. The main reason I never did use the RH8 latest kernel updates simply because it never worked. I couldn't even recompile that kernel all the way thanks to Redhat developers' way of compiling isn't documented nor the way it should be. What a complete mess. Well the good news is I'm getting away from Redhat and going on to bigger and better things since I'm tired of Redhat's bull crap with how they do everything so differently causing incompatiblity. Also I know I posted this in the Graphics drivers section since it is related in the fact that the kernel drivers are required in order to install the graphics drivers.


All times are GMT -5. The time now is 08:17 PM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.