Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 123438 - nvidia-glx-1.0.6629-r6 fails to compile when glxext.h included
Summary: nvidia-glx-1.0.6629-r6 fails to compile when glxext.h included
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: X11 External Driver Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-19 20:51 UTC by Michael C. Martin
Modified: 2006-03-24 13:47 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael C. Martin 2006-02-19 20:51:39 UTC
While compiling d2x-xl from plain source, the compile failed immediately with

/usr/include/GL/glxext.h:394: error: parse error before '*' token
/usr/include/GL/glxext.h:394: error: `__GLXextFuncPtr' declared as function returning a function

The 'parse error' appears to be because GLXextFuncPtr is only defined if GLX_ARB_get_proc_address is yet undefined, but code conditional on the undefined-ness of GLX_VERSION_1_4 also uses the type.

Thus, if GLX_ARB_get_proc_address is defined but GLX_VERSION_1_4 is not, the typedef will fail.

The most straightforward fix is below:

--- glxext.h    2006-02-19 20:55:59.000000000 -0800
+++ glxext-orig.h       2006-02-19 20:51:59.000000000 -0800
@@ -310,7 +310,7 @@

 /*************************************************************/

-#if !defined(GLX_ARB_get_proc_address) || !defined (GLX_VERSION_1_4)
+#ifndef GLX_ARB_get_proc_address
 typedef void (*__GLXextFuncPtr)(void);
 #endif
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2006-03-24 13:47:34 UTC
This works fine if you use the standard glxext.h rather than nvidia's.  This is the default in eselect-opengl.