In xc/lib/GL/mesa/src/X realglx.c doesn't compile

gcc -c -O2 -fno-strength-reduce  -ansi -pedantic -Wall -Wpointer-arith 
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations 
-Wredundant-decls -Wnested-externs -Wundef  
-I../../../../../extras/Mesa/src             
-I../../../../../extras/Mesa/src/X              
-I../../../../../extras/Mesa/include           -I../../../include 
-I../../../../../exports/include/X11 -I../../../dri -I../../../glx 
-I../../dri -I..           -I../../../../../exports/include/GL 
-I../../../../../programs/Xserver/hw/xfree86/os-support 
-I../../../../../programs/Xserver/GL/dri  -I../../../../.. 
-I../../../../../exports/include   -Dlinux -D__i386__ 
-D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE 
-D_SVID_SOURCE  -D_GNU_SOURCE   -DFUNCPROTO=15 -DNARROWPROTO -DXTHREADS  
-D_REENTRANT -DXUSE_MTSAFE_API    -DMALLOC_0_RETURNS_NULL -DGLXEXT 
-DXF86DRI -DGLX_DIRECT_RENDERING -DGLX_USE_DLOPEN -DGLX_USE_MESA     
realglx.c
In file included from realglx.c:29:
../../../../../exports/include/GL/glx.h:112: warning: function declaration 
isn't a prototype
realglx.c: In function `_real_GetGLXDispatchTable':
realglx.c:174: `_real_glXAllocateMemoryNV' undeclared (first use in this function)
realglx.c:174: (Each undeclared identifier is reported only once
realglx.c:174: for each function it appears in.)
realglx.c:175: `_real_glXFreeMemoryNV' undeclared (first use in this function)
make: *** [realglx.o] Error 1

Attached patch may be the solution.

-- 
Dr. Andrew C. Aitchison         Computer Officer, DPMMS, Cambridge
[EMAIL PROTECTED]   http://www.dpmms.cam.ac.uk/~werdna
Index: realglx.c
===================================================================
RCS file: /home/CVS/XFree86/xc/extras/Mesa/src/X/realglx.c,v
retrieving revision 1.6
diff -u -r1.6 realglx.c
--- realglx.c   2002/10/29 18:19:41     1.6
+++ realglx.c   2002/10/30 07:49:43
@@ -171,8 +171,10 @@
    glx.Set3DfxModeMESA = _real_glXSet3DfxModeMESA;
 
    /*** GLX_NV_vertex_array_range ***/
+#ifdef GLX_NV_vertex_array_range
    glx.AllocateMemoryNV = _real_glXAllocateMemoryNV;
    glx.FreeMemoryNV = _real_glXFreeMemoryNV;
+#endif
 
    /*** GLX_MESA_agp_offset ***/
    glx.GetAGPOffsetMESA = _real_glXGetAGPOffsetMESA;

Reply via email to