Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 291563 - media-video/nvidia-settings-190.42: compilation errors
Summary: media-video/nvidia-settings-190.42: compilation errors
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Piotr Jaroszyński (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-02 11:55 UTC by adrian ilarion ciobanu
Modified: 2009-12-01 14:48 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
nvidia-settings-190.42 compilation errors fix (NvCtrlAttributesVidMode.diffNu,446 bytes, patch)
2009-11-02 11:57 UTC, adrian ilarion ciobanu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description adrian ilarion ciobanu 2009-11-02 11:55:13 UTC
building nvidia-settings-190.42 gives compilation errors due to bad #ifdefs




Reproducible: Always

Steps to Reproduce:
1. emerge nvidia-settings-190.XX

Actual Results:  
src/libXNVCtrlAttributes/NvCtrlAttributesVidMode.c: In function 'NvCtrlInitVidModeAttributes':
src/libXNVCtrlAttributes/NvCtrlAttributesVidMode.c:214: error: 'prev_error_handler' undeclared (first use in this function)
src/libXNVCtrlAttributes/NvCtrlAttributesVidMode.c:214: error: (Each undeclared identifier is reported only once
src/libXNVCtrlAttributes/NvCtrlAttributesVidMode.c:214: error: for each function it appears in.)


Expected Results:  
clean compile. a quick patch for achieving this is given below (call prev_error_handler only when its context X_XF86VidModeGetGammaRampSize is defined)



--- NvCtrlAttributesVidMode.c.orig      2009-11-02 13:36:19.000000000 +0200
+++ NvCtrlAttributesVidMode.c   2009-11-02 13:52:30.000000000 +0200
@@ -210,11 +210,12 @@
     if (vm) free(vm);
 
     /* restore the original error handler, if we overrode it */
-
+#if defined(X_XF86VidModeGetGammaRampSize)
     if (prev_error_handler) {
         XSetErrorHandler(prev_error_handler);
         prev_error_handler = NULL;
     }
+#endif
 
     return NULL;
Comment 1 adrian ilarion ciobanu 2009-11-02 11:57:19 UTC
Created attachment 209022 [details, diff]
nvidia-settings-190.42 compilation errors fix
Comment 2 adrian ilarion ciobanu 2009-11-02 12:12:33 UTC
relation to bug 289744 (before marking current as a dup):
properly including xf86vmproto.h will just mask current leaving it hidden
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2009-12-01 13:56:26 UTC
In portage. Let's hope this one is correct finally...
Comment 4 Manfred Knick 2009-12-01 14:35:53 UTC
(In reply to comment #3)
> In portage. Let's hope this one is correct finally...
> 

src/libXNVCtrlAttributes/NvCtrlAttributesVidMode.c:32:40:

Fehler: X11/extensions/xf86vmproto.h: Datei oder Verzeichnis nicht gefunden

( TRANSLATION : " File or Directory not found " )
Comment 5 Manfred Knick 2009-12-01 14:48:11 UTC
(In reply to comment #4)
> (In reply to comment #3)

RETRACT:

Works for me.

SORRY for the noise - presumably my mirror was not full in sync before.