View Single Post
Old 01-08-05, 11:02 PM   #198
zipster
Registered User
 
Join Date: Nov 2004
Posts: 3
Question Re: Official FreeBSD drivers

Anyone out there try to build the 1.0-4365 release of the nVidia driver for a FreeBSD 5.3-RELEASE system ?

I have a Toshiba Satellite Pro 6100 with a 1600x1200 TFT display, and the (current) 1.0-6113 release does not allow
the full 1600x1200 resolution -- rather, it simply drops the the right 12-pixel edge of the display.

The 1.0-4365 release of the driver did not do this under 5.3.1-RELEASE, so I've been having a look at building the kernel module for the driver under 5.3-RELEASE (and gcc-3.4.2).

When I try to make the kernel module, the make fails with the following errors:

nvidia_ctl.c:61: error: conflicting types for 'nvidia_ctl_open'
nvidia_ctl.c:16: error: previous declaration of 'nvidia_ctl_open' was here
nvidia_ctl.c:61: error: conflicting types for 'nvidia_ctl_open'
nvidia_ctl.c:16: error: previous declaration of 'nvidia_ctl_open' was here
nvidia_ctl.c:78: error: conflicting types for 'nvidia_ctl_close'
nvidia_ctl.c:17: error: previous declaration of 'nvidia_ctl_close' was here
nvidia_ctl.c:78: error: conflicting types for 'nvidia_ctl_close'
nvidia_ctl.c:17: error: previous declaration of 'nvidia_ctl_close' was here
nvidia_ctl.c:96: error: conflicting types for 'nvidia_ctl_ioctl'
nvidia_ctl.c:18: error: previous declaration of 'nvidia_ctl_ioctl' was here
nvidia_ctl.c:96: error: conflicting types for 'nvidia_ctl_ioctl'
nvidia_ctl.c:18: error: previous declaration of 'nvidia_ctl_ioctl' was here
nvidia_ctl.c:168: error: conflicting types for 'nvidia_ctl_poll'
nvidia_ctl.c:19: error: previous declaration of 'nvidia_ctl_poll' was here
nvidia_ctl.c:168: error: conflicting types for 'nvidia_ctl_poll'
nvidia_ctl.c:19: error: previous declaration of 'nvidia_ctl_poll' was here
nvidia_ctl.c: In function `nvidia_ctl_attach':
nvidia_ctl.c:211: warning: assignment makes integer from pointer without a cast
nvidia_ctl.c: In function `nvidia_ctl_detach':
nvidia_ctl.c:248: warning: passing arg 1 of `destroy_dev' makes pointer from integer without a cast
nvidia_ctl.c: At top level:
nvidia_ctl.c:16: warning: 'nvidia_ctl_open' used but never defined
nvidia_ctl.c:17: warning: 'nvidia_ctl_close' used but never defined
nvidia_ctl.c:18: warning: 'nvidia_ctl_ioctl' used but never defined
nvidia_ctl.c:19: warning: 'nvidia_ctl_poll' used but never defined
*** Error code 1

The 1.0-6113 driver, on the other hand, builds without complaint on this system.
I'm afraid I'm at a loss to explain what's causing the compiler to balk at the 4365 flavor of nvidia_ctl.c.
Is some "patch" available that will "fix" 1.0-4365 for gcc-3.4.2 ?

Last edited by zipster; 01-08-05 at 11:06 PM. Reason: formatting & a clarification
zipster is offline   Reply With Quote