xserver with glx and dri

Capitan X capi_x@yahoo.es
Fri, 20 Feb 2004 20:22:45 +0100


Hi.

I'm new in this list, and i would make a rpm and deb packages, but if i add 
glx and dri support in the xserver, the xserver return me this output:

make[1]: Entering directory `/root/xserver/xserver/GL'
Making all in glx
make[2]: Entering directory `/root/xserver/xserver/GL/glx'
if gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../GL/glx -I../../GL/glx 
-I../../GL/include -I../../GL/mesa/include -I../../mi -I../../fb -I../../Xext 
-I../../render -I../../../Mesa/include -Wall -Wpointer-arith 
-Wstrict-prototypes    -Wmissing-prototypes -Wmissing-declarations      
-Wnested-externs -fno-strict-aliasing -Werror -I/opt/fdo/include 
-I/opt/fdo/include/X11/fonts -I/opt/fdo/include/X11/Xtrans   -I../../include   
-DGLXEXT -DXF86DRI -DGLX_DIRECT_RENDERING -DGLX_USE_DLOPEN -DGLX_USE_MESA -g 
-O2 -MT libglx_a-g_disptab.o -MD -MP -MF ".deps/libglx_a-g_disptab.Tpo" \
  -c -o libglx_a-g_disptab.o `test -f 'g_disptab.c' || echo './'`g_disptab.c; 
\
then mv -f ".deps/libglx_a-g_disptab.Tpo" ".deps/libglx_a-g_disptab.Po"; \
else rm -f ".deps/libglx_a-g_disptab.Tpo"; exit 1; \
fi
In file included from glxserver.h:67,
                 from g_disptab.c:32:
glxscreens.h:43:32: GL/internal/glcore.h: No such file or directory
In file included from glxserver.h:67,
                 from g_disptab.c:32:
glxscreens.h:62: error: parse error before "__GLinterface"
glxscreens.h:62: warning: no semicolon at end of struct or union
glxscreens.h:89: error: parse error before '}' token
glxscreens.h:89: warning: type defaults to `int' in declaration of 
`__GLXscreenInfo'
glxscreens.h:89: warning: data definition has no type or storage class
In file included from glxserver.h:68,
                 from g_disptab.c:32:
glxdrawable.h:44: error: parse error before "__GLXscreenInfo"
glxdrawable.h:44: warning: no semicolon at end of struct or union
glxdrawable.h:49: error: parse error before '}' token
glxdrawable.h:49: warning: type defaults to `int' in declaration of 
`__GLXpixmap'
glxdrawable.h:49: warning: data definition has no type or storage class
glxdrawable.h:60: error: parse error before "__GLXpixmap"
glxdrawable.h:60: warning: no semicolon at end of struct or union
glxdrawable.h:99: error: parse error before "glPriv"
glxdrawable.h:99: warning: type defaults to `int' in declaration of `glPriv'
glxdrawable.h:99: warning: data definition has no type or storage class
glxdrawable.h:105: error: parse error before '}' token
In file included from glxserver.h:69,
                 from g_disptab.c:32:
glxcontext.h:45:32: GL/internal/glcore.h: No such file or directory
In file included from glxserver.h:69,
                 from g_disptab.c:32:
glxcontext.h:65: error: parse error before "__GLinterface"
glxcontext.h:65: warning: no semicolon at end of struct or union
glxcontext.h:70: warning: type defaults to `int' in declaration of `modes'
glxcontext.h:70: warning: data definition has no type or storage class
glxcontext.h:77: error: parse error before '*' token
glxcontext.h:77: warning: type defaults to `int' in declaration of 
`pGlxScreen'
glxcontext.h:77: warning: data definition has no type or storage class
glxcontext.h:108: error: conflicting types for `idExists'
glxdrawable.h:46: error: previous declaration of `idExists'
glxcontext.h:146: error: parse error before '*' token
glxcontext.h:146: warning: type defaults to `int' in declaration of 
`drawPixmap'
glxcontext.h:146: warning: data definition has no type or storage class
glxcontext.h:147: error: parse error before '*' token
glxcontext.h:147: warning: type defaults to `int' in declaration of 
`readPixmap'
glxcontext.h:147: warning: data definition has no type or storage class
glxcontext.h:154: error: parse error before '}' token
In file included from g_disptab.c:32:
glxserver.h:93: error: parse error before '*' token
glxserver.h:93: warning: type defaults to `int' in declaration of 
`__glXActiveScreens'
glxserver.h:93: warning: data definition has no type or storage class
In file included from g_disptab.c:33:
glxext.h:68: error: parse error before '*' token
glxext.h:68: warning: function declaration isn't a prototype
make[2]: *** [libglx_a-g_disptab.o] Error 1
make[2]: Leaving directory `/root/xserver/xserver/GL/glx'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/xserver/xserver/GL'
make: *** [all-recursive] Error 1
[root@fenix xserver]#

The problem seems GL/internal/glcore.h mesa library, adding glcore.h at the 
code, the compiling process return this:

if gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../GL/glx -I../../GL/glx 
-I../../GL/include -I../../GL/mesa/include -I../../mi -I../../fb -I../../Xext 
-I../../render -I../../../Mesa/include -Wall -Wpointer-arith 
-Wstrict-prototypes    -Wmissing-prototypes -Wmissing-declarations      
-Wnested-externs -fno-strict-aliasing -Werror -I/opt/fdo/include 
-I/opt/fdo/include/X11/fonts -I/opt/fdo/include/X11/Xtrans   -I../../include   
-DGLXEXT -DXF86DRI -DGLX_DIRECT_RENDERING -DGLX_USE_DLOPEN -DGLX_USE_MESA -g 
-O2 -MT libglx_a-glxext.o -MD -MP -MF ".deps/libglx_a-glxext.Tpo" \
  -c -o libglx_a-glxext.o `test -f 'glxext.c' || echo './'`glxext.c; \
then mv -f ".deps/libglx_a-glxext.Tpo" ".deps/libglx_a-glxext.Po"; \
else rm -f ".deps/libglx_a-glxext.Tpo"; exit 1; \
fi
glxext.c:283: warning: no previous prototype for `GlxSetVisualConfigs'
glxext.c:311: warning: no previous prototype for `GlxWrapInitVisuals'
make[2]: *** [libglx_a-glxext.o] Error 1
make[2]: Leaving directory `/root/xserver/xserver/GL/glx'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/xserver/xserver/GL'
make: *** [all-recursive] Error 1
[root@fenix xserver]#

any idea.
Sorry for my english
--
Capitan X - "Las mujeres son como la electricidad, si las tocas te sacuden"