David Elliott wrote:
> Lionel Ulmer wrote:
>
> > On Mon, Jul 17, 2000 at 03:42:39AM -0500, David Elliott wrote:
> > > Received the following error messages:
> > > gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -fPIC -D__WINE__
> > > -D_REENTRANT -I/usr/X11R6/include -o d3ddevice/mesa.o d3ddevice/mesa.c
> > > d3ddevice/mesa.c: In function `fill_device_capabilities':
> > > d3ddevice/mesa.c:130: `PFNGLCOLORTABLEEXTPROC' undeclared (first use in this
> > > function)
> > > d3ddevice/mesa.c:130: (Each undeclared identifier is reported only once
> > > d3ddevice/mesa.c:130: for each function it appears in.)
> > > d3ddevice/mesa.c:130: parse error before `glXGetProcAddressARB'
> > >
> > > Fixed with attached patch (which is probably not correct, but will at least
> > > make it compile).
> >
> > Hi,
> >
> > Could you tell me where you did get your 'glext.h' file ? The OpenGL
> > ABI (now finalized, in its 1.0 version) says that the 'glext.h' file
> > MUST provide, for each extension, the corresponding typedef (as
> > PFNGLCOLORTABLEEXTPROC here). The one from XFree 4.x definitely does.
> >
> > I plan to add a new check in 'configure' for 1.0 compliant OpenGL
> > implementations in the near future (as soon as the headers are
> > upgraded in an official XFree 4.0 release) and to not support anything
> > else.
> >
> > For once that a standard exist on Linux, it would be nice not to
> > introduce new hacks to support non-standard old stuff :-)
> >
> > --
> > Lionel Ulmer - [EMAIL PROTECTED]
> > My Advogato Wine diary : http://www.advogato.org/person/bbrox/
>
> Hey, I just saw patrick's fix, delete config.cache and rerun configure. I am
> using XFree86 4.0 and I ripped that straight out of the GL/glext.h file. I think
> Patrick's fix is more correct actually, probably a bunch of crap left over in my
> config.cache from an earlier version of Mesa. I'll see if removing it works.
>
> Later,
> -Dave
Well, Patrick's fix didn't work either, but I came up with my own:
grab the gl.h, glx.h, and glext.h out of the XFree 4.01 release.
Previously my files were from the latest rawhide rpm: XFree86-devel-4.0-0.8
It seems that gl.h was the problem, it contained the following section:
/*
* Compile-time tests for extensions:
*/
#define GL_EXT_blend_color 1
#define GL_EXT_blend_logic_op 1
#define GL_EXT_blend_minmax 1
#define GL_EXT_blend_subtract 1
#define GL_EXT_polygon_offset 1
#define GL_EXT_vertex_array 1
#define GL_EXT_texture_object 1
#define GL_EXT_texture3D 1
#define GL_EXT_paletted_texture 1
#define GL_EXT_shared_texture_palette 1
#define GL_EXT_point_parameters 1
#define GL_EXT_rescale_normal 1
#define GL_EXT_abgr 1
#define GL_EXT_stencil_wrap 1
#define GL_MESA_window_pos 1
#define GL_MESA_resize_buffers 1
#define GL_SGIS_texture_edge_clamp 1
#define GL_INGR_blend_func_separate 1
#define GL_ARB_multitexture 1
#define GL_NV_texgen_reflection 1
#define GL_PGI_misc_hints 1
#define GL_EXT_compiled_vertex_array 1
#define GL_EXT_clip_volume_hint 1
So when loading gl.h before glext.h, glext.h never defined GL_EXT_paletted_texture
correctly.
So after grabbing the 3 files out of XFree 4.01, everything seems good to go.
-Dave
P.S. Someone might want to forward this to the newsgroup since I am sure there will
be plenty of people with this problem!