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
This works fine if you use the standard glxext.h rather than nvidia's. This is the default in eselect-opengl.