PDA

View Full Version : fail to install nvidia-driver for fx 5500


indosupremacy
06-09-2008, 05:23 AM
this is my video card
vendor = 'Nvidia Corp'
device = 'GeForce FX 5500 [NV34.6]'
class = display
subclass = VGA
while trying to install nvidia-driver via port i get this message

===> Building for nvidia-driver-173.14.05
===> src (all)
cc -O2 -fno-strict-aliasing -pipe -DNV_VERSION_STRING=\"173.14.05\" -D__KERNEL__ -DNVRM -UDEBUG -U_DEBUG -DNDEBUG -O -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I- -I/src -I. -I@ -I@/contrib/altq -I@/../include -finline-limit=8000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -c nvidia_ctl.c
In file included from nvidia_ctl.c:14:
./nv-freebsd.h:273: warning: static declaration of 'pmap_change_attr' follows non-static declaration
./machine/pmap.h:362: warning: previous declaration of 'pmap_change_attr' was here
./nv-freebsd.h:289: warning: static declaration of 'pmap_mapdev_attr' follows non-static declaration
./machine/pmap.h:370: warning: previous declaration of 'pmap_mapdev_attr' was here
*** Error code 1

Stop in /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-173.14.05/src.
*** Error code 1

Stop in /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-173.14.05.
*** Error code 1

Stop in /usr/ports/x11/nvidia-driver.

does anybody know what should i do? thank u

kekar
06-09-2008, 03:42 PM
Commenting out these declarations did the trick for me:

/machine/pmap.h:362: warning: previous declaration of 'pmap_change_attr' was here
./machine/pmap.h:370: warning: previous declaration of 'pmap_mapdev_attr' was here

ashrobertenterprises
06-16-2008, 02:48 AM
Commented out of what file? I tried commenting out some stuff that matched those lines by putting a # in front of them and it gave me more errors, so I assume I mis-understood.

Trying to install this from the FreeBSD package from the NVidia website. looked for a pbi found lots of references to them, but no actual pbi files hmmmm

TerryP
06-16-2008, 05:00 AM
The C programming language uses /* comment text */ for comments unlike most configuration files and many common script languages (that use #).

Because the compiler (usually) feeds the source code through a pre processor (cpp), any thing starting with a '#' is likely to be handled by the pre processor and treated accordingly. Because that is the indicator the pre processor looks for to find directives embedded wih the file.


Unless you know what your doing (enough to responsbile know what your telling the compiler) it can be risky for system stability to modify drivers.