Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 05-08-04, 05:19 AM   #1
mkossmann
Registered User
 
Join Date: Apr 2003
Posts: 26
Unhappy Building the nvidia driver 5336 from sources with gcc-3.3.3 on SuSE-9.1(ia32) fails

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 ?
mkossmann is offline   Reply With Quote
Old 05-31-04, 01:38 AM   #2
Gibus
Registered User
 
Join Date: May 2004
Posts: 14
Post Re: Building the nvidia driver 5336 from sources with gcc-3.3.3 on SuSE-9.1(ia32) fails

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
Gibus is offline   Reply With Quote
Old 05-31-04, 05:33 AM   #3
SuLinUX
 
SuLinUX's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 847
Default Re: Building the nvidia driver 5336 from sources with gcc-3.3.3 on SuSE-9.1(ia32) fai

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
SuLinUX is offline   Reply With Quote
Old 05-31-04, 08:43 AM   #4
ChangWufei
Registered User
 
Join Date: Apr 2004
Posts: 3
Default Re: Building the nvidia driver 5336 from sources with gcc-3.3.3 on SuSE-9.1(ia32) fai

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
ChangWufei is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

All times are GMT -5. The time now is 07:22 AM.


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