[PATCH] undefined reference to `DoCreateGLXPixmap'

Jeff Chua jeff.chua.linux at gmail.com
Sat Oct 13 17:44:41 PDT 2007


I don't know when this was introduced, but something caused a fresh
compile of xserver will give the following output ...

../../GL/glx/.libs/libglx.a(glxcmdsswap.o): In function
`__glXDispSwap_CreateGLXPixmap':
/v6/src2/xorg/xserver/GL/glx/glxcmdsswap.c:268: undefined reference to
`DoCreateGLXPixmap'
../../GL/glx/.libs/libglx.a(glxcmdsswap.o): In function
`__glXDispSwap_CreatePixmap':
/v6/src2/xorg/xserver/GL/glx/glxcmdsswap.c:284: undefined reference to
`DoCreateGLXPixmap'
../../GL/glx/.libs/libglx.a(glxcmdsswap.o): In function
`__glXDispSwap_CreateGLXPixmapWithConfigSGIX':
/v6/src2/xorg/xserver/GL/glx/glxcmdsswap.c:302: undefined reference to
`DoCreateGLXPixmap'
collect2: ld returned 1 exit status
make[3]: *** [Xvfb] Error 1


The following patch fixes the following ...

--- xorg/xserver/GL/glx/glxcmds.c.org   2007-10-14 08:23:33 +0800
+++ xorg/xserver/GL/glx/glxcmds.c       2007-10-14 08:22:54 +0800
@@ -1177,7 +1177,7 @@
 }

 int
-static DoCreateGLXPixmap(ClientPtr client, int screenNum, XID fbconfigId,
+DoCreateGLXPixmap(ClientPtr client, int screenNum, XID fbconfigId,
                  XID drawableId, XID glxDrawableId)
 {
     DrawablePtr pDraw;



Thanks,
Jeff.



More information about the xorg mailing list