|
|
#1 | |
|
Registered User
Join Date: Apr 2003
Posts: 26
|
trying to build the nvidia drivers with gcc-3.3.3 as shipped with SuSE-9.1 result in the flowiing error messages :
[...] /tmp/selfgz3519/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: At top level : /tmp/selfgz3519/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2010: error: conflicting types for `nv_set_hotkey_occurred_flag' /tmp/selfgz3519/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:350: error: previous declaration of `nv_set_hotkey_occurred_flag' /tmp/selfgz3519/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2197: error: conflicting types for `nv_find_nv_mapping' /tmp/selfgz3519/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:339: error: previous declaration of `nv_find_nv_mapping' /tmp/selfgz3519/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2269: error: conflicting types for `nv_find_agp_kernel_mapping' /tmp/selfgz3519/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:341: error: previous declaration of `nv_find_agp_kernel_mapping' /tmp/selfgz3519/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2345: error: conflicting types for `nv_get_kern_phys_address' /tmp/selfgz3519/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:342: error: previous declaration of `nv_get_kern_phys_address' /tmp/selfgz3519/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2375: error: conflicting types for `nv_get_user_phys_address' /tmp/selfgz3519/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:343: error: previous declaration of `nv_get_user_phys_address' /tmp/selfgz3519/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2406: error: conflicting types for `nv_alloc_pages' /tmp/selfgz3519/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:353: error: previous declaration of `nv_alloc_pages' /tmp/selfgz3519/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:353: error: p revious declaration of `nv_alloc_pages' /tmp/selfgz3519/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2594: error: conflicting types for `nv_free_pages' /tmp/selfgz3519/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:354: error: previous declaration of `nv_free_pages' /tmp/selfgz3519/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2692: error: conflicting types for `nv_lock_rm' /tmp/selfgz3519/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:345: error: previous declaration of `nv_lock_rm' /tmp/selfgz3519/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2712: error: conflicting types for `nv_unlock_rm' /tmp/selfgz3519/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:346: error: previous declaration of `nv_unlock_rm' /tmp/selfgz3519/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2726: error: conflicting types for `nv_lock_heap' /tmp/selfgz3519/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:347: error: previous declaration of `nv_lock_heap' /tmp/selfgz3519/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2736: error: conflicting types for `nv_unlock_heap' /tmp/selfgz3519/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:348: error: previous declaration of `nv_unlock_heap' /tmp/selfgz3519/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2752: error: conflicting types for `nv_post_event' /tmp/selfgz3519/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:363: error: previous declaration of `nv_post_event' /tmp/selfgz3519/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2790: error: conflicting types for `nv_get_event' /tmp/selfgz3519/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:364: error: previous declaration of `nv_get_event' /tmp/selfgz3519/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2833: error: conflicting types for `nv_agp_init' [...] It seems that this version of gcc isn't happy about the following construction used in the nvidia sources: in nvtypes.h : typedef void VOID; then use "VOID" in the declarations in nvidia.h i.e. : VOID NV_API_CALL nv_set_hotkey_occurred_flag (VOID); but use "void" in nv.c instead : void nv_set_hotkey_occurred_flag(void) Are there any workarounds/patches for that problem ( except using another gcc version, i.e gcc-3.3.1 from SuSE-9.0) to compile that module ? |
|
|
|
|
|
|
#2 | |
|
Registered User
Join Date: May 2004
Posts: 14
|
You have to patch 5336 driver sources according www.minion.de site.
Here's the complete procedure : - To have all informations on how installing 5336 driver and configuring XF86Config file, get 5336 README from Nvidia at : ftp://download.nvidia.com/XFree86/Li....0-5336/README - Perform an only extraction of the driver's sources using : sh NVIDIA-Linux-x86-1.0-5336-pkg1.run --extract-only - Go to www.minion.de and get 5336 README at http://www.minion.de/files/NVIDIA_ke....0-5336.README - Get 5336's patch at http://www.minion.de/files/NVIDIA_ke...-5336-2.6.diff According www.minion.de : INSTALLATION OF THE 1.0-5336 NVIDIA DRIVER ON LINUX 2.6.X KERNELS __________________________________________________ ________________________ The 1.0-5336 driver release supports Linux 2.6 kernels, but won't build with gcc 3.4; see below for instructions on how to fix this problem. FAQ: The 1.0-4496 driver release introduced the -pkg# suffix to the .run file to distinguish between packages with the same driver version, but with different sets of precompiled kernel interfaces. The -pkg0 file has no precompiled kernel interface files and was thus chosen here. You can use other revisions, but need to adapt the package number below. 1) download: NVIDIA-Linux-x86-1.0-5336-pkg1.run NVIDIA_kernel-1.0-5336-2.6.diff (minion.de) 2) install the kernel module (as root): # sh NVIDIA-Linux-x86-1.0-5336-pkg1.run --extract-only # cd NVIDIA-Linux-x86-1.0-5336-pkg1 # cd usr/src/nv # patch -p1 < /your_patch_to/NVIDIA_kernel-1.0-5336-2.6.diff # make install __________________________________________________ ________________________ Next you have to edit your XF86Config file according instructions in Nvidia README : If you already have an XF86Config file working with a different driver (such as the 'nv' or 'vesa' driver), then all you need to do is find the relevant Device section and replace the line: Driver "nv" (or Driver "vesa") with Driver "nvidia" In the Module section, make sure you have: Load "glx" You should also remove the following lines: Load "dri" Load "GLcore" if they exist. There are also numerous options that can be added to the XF86Config file to fine-tune the NVIDIA XFree86 driver. Please see Appendix D for a complete list of these options. __________________________________________________ _______________________ When everything seems to be ok for you, you can save your new XF86Config YAST2 model in order to avoid having YAST2 replacing it by the older whenever you update for a patch : under root : cp -p /etc/X11/XF86Config.YaST2save /etc/X11/XF86Config.YaST2save.old cp -p /etc/X11/XF86Config /etc/X11/XF86Config.YaST2save Enjoy! Gibus |
|
|
|
|
|
|
#3 |
|
Join Date: Sep 2003
Location: UK
Posts: 847
|
Strange because it works perfectly here and I did nothing special while installing the nvidia driver.
__________________
AthlonXP 2600+ / nForce2 Asus A7N8X-X / PNY GeForce FX5900 Ultra / 1024Mb Samsung Ram /nForce Sound / Hansol 920D Plus 19" monitor / Lite-On 32x12x40 / 2x Maxtor HD 40Gb/80Gb / nVidia 7174 driver / Gnome 2.10.1 / Kernel 2.6.11.9 / Slackware 10.0 |
|
|
|
|
|
#4 | |
|
Registered User
Join Date: Apr 2004
Posts: 3
|
Same here, i have SuSE 9.1 and had no issues with the 5336 driver, i also gained 20+fps in Quake3
over SuSE 9 |
|
|
|
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need Help Installing NVIDIA Tesla M2070Q in Linux RHEL5 | Ferianto85 | NVIDIA Linux | 0 | 05-18-12 08:35 PM |
| Getting the proprietary nvidia driver to run with Debian 3.0 r0 (woody) | Katchina404 | NVIDIA Linux | 9 | 01-12-03 08:49 AM |
| nvidia + 2.4.19 gentoo = messed up | ulukay | NVIDIA Linux | 18 | 11-01-02 11:58 PM |
| NVIDIA 3123 driver on SuSE 8.0 Ok , but slow to start X | Gabolander | NVIDIA Linux | 3 | 09-27-02 07:41 AM |
| Trouble with SuSE 8 & NVIDIA latest driver | bughill | NVIDIA Linux | 3 | 08-20-02 12:31 PM |