View Single Post
Old 05-13-03, 08:21 PM   #1
TRON21Net
Registered User
 
Join Date: Mar 2003
Location: Nashville, TN, USA
Posts: 26
Angry 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?
__________________
--TRON

Last edited by TRON21Net; 05-14-03 at 07:18 PM.
TRON21Net is offline   Reply With Quote