Issues building Mesa?
Philip Prindeville
philipp_subx at redfish-solutions.com
Mon Sep 12 14:07:41 PDT 2005
I'm seeing the following when building Mesa:
gcc -O2 -fstrict-aliasing -ansi -pedantic -Wall -Wpointer-arith
-Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -Wredundant-decls
-Wnested-externs -Wold-style-definition
-Wsequence-point -Wreturn-type
-Wformat-nonliteral -Wuninitialized
-Waggregate-return -fPIC -I../../../../../programs/Xserver/GL/mesa/X
-I../../../../../exports/include/X11
-I../../../../../include/extensions
-I../../../../../extras/Mesa/src/mesa
-I../../../../../extras/Mesa/src/mesa/main
-I../../../../../extras/Mesa/src/mesa/glapi
-I../../../../../extras/Mesa/src/mesa/shader
-I../../../../../extras/Mesa/src
-I../../../../../extras/Mesa/src/mesa/drivers/x11
-I../../../../../extras/Mesa/include -I../../../../../lib/GL/glx
-I../../../../../lib/GL/include
-I../../../../../programs/Xserver/include
-I../../../../../programs/Xserver/GL/include
-I../../../../../programs/Xserver/GL/glx
-I../../../../../programs/Xserver/hw/xfree86/os-support
-I../../../../../extras/drm/shared-core -I../../../../..
-I../../../../../exports/include -Dlinux -D__amd64__
-D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE
-D_XOPEN_SOURCE -D_BSD_SOURCE
-D_SVID_SOURCE -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DSHAPE
-DXINPUT -DXKB -DLBX -DXAPPGROUP -DXCSECURITY -DTOGCUP
-DXF86BIGFONT -DDPMSExtension -DXPRINT -DPIXPRIV -DPANORAMIX
-DRENDER -DRANDR -DXFIXES -DDAMAGE -DCOMPOSITE -DXEVIE
-DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV
-DSINGLEDEPTH -DXFreeXDGA
-DXvExtension -DXFree86LOADER
-DDLOPEN_HACK -DXFree86Server
-DXF86VIDMODE -DXvMCExtension
-DSMART_SCHEDULE -DBUILDDEBUG
-DXResExtension
-DX_BYTE_ORDER=X_LITTLE_ENDIAN
-DXORG_VERSION_CURRENT="(((6) * 10000000) + ((8) * 100000) + ((99) *
1000) + 900)" -D_XSERVER64 -DNDEBUG -DFUNCPROTO=15 -DNARROWPROTO
-DIN_MODULE -DXFree86Module -DGLXEXT -DXF86DRI -DGLX_DIRECT_RENDERING
-DGLX_USE_DLOPEN -DGLX_USE_MESA -D__GLX_ALIGN64 -DXFree86Server -c
xm_api.c
xm_api.c:630: error: syntax error before "else"
xm_api.c: In function `XMesaDestroyBuffer':
xm_api.c:1986: warning: passing arg 1 of pointer to function from
incompatible pointer type
xm_api.c: In function `XMesaGetBackBuffer':
xm_api.c:2438: warning: assignment from incompatible pointer type
make[7]: *** [xm_api.o] Error 1
and it looks like a trivial fix:
Index: extras/Mesa/src/mesa/drivers/x11/xm_api.c
===================================================================
RCS file: /cvs/mesa/Mesa/src/mesa/drivers/x11/xm_api.c,v
retrieving revision 1.92
diff -c -4 -r1.92 xm_api.c
*** extras/Mesa/src/mesa/drivers/x11/xm_api.c 7 Sep 2005 23:28:41
-0000 1.92
--- extras/Mesa/src/mesa/drivers/x11/xm_api.c 12 Sep 2005 21:01:21 -0000
***************
*** 601,608 ****
--- 601,609 ----
#ifdef XFree86Server
/* Allocate a regular XImage for the back buffer. */
b->backxrb->ximage = XMesaCreateImage(b->xm_visual->BitsPerPixel,
width, height, NULL);
+ {
#else
if (b->shm == 0 || !alloc_shm_back_buffer(b, width, height)) {
/* Allocate a regular XImage for the back buffer. */
b->backxrb->ximage = XCreateImage( b->xm_visual->display,
I tried to join the dri-devel mailing list but never got my subscription
confirmation back, so it might have fallen between the cracks with
getting manually approved...
-Philip
More information about the xorg
mailing list