On 27/10/2013 01:26, Mark Lillibridge wrote: > Jon TURNEY writes: > >> You will need to apply the attached change to /usr/include/Xpoll.h to fix >> xserver compilation with w32api-headers >= 3.0.0-1, which adds a new WIN32 >> define somewhere, which breaks this test. > > It's /usr/include/X11/Xpoll.h on my system. That patch indeed makes > the compilation proceed further. It's now stuck at:
Sorry, my mistake. > CCLD XWin.exe > ../../glx/.libs/libglx.a(glxcmds.o): In function `FlushContext': > /usr/src/xorg-server-1.14.3-1/src/xserver-cygwin-1.14.3-1/glx/glxcmds.c:221: > undefined reference to `__emutls_v._glapi_tls_Dispatch' > ../../glx/.libs/libglx.a(glxcmds.o): In function `DoMakeCurrent': > /usr/src/xorg-server-1.14.3-1/src/xserver-cygwin-1.14.3-1/glx/glxcmds.c:623: > undefined reference to `__emutls_v._glapi_tls_Dispatch' > ../../glx/.libs/libglx.a(glxcmds.o): In function `_glXDisp_WaitGL': > /usr/src/xorg-server-1.14.3-1/src/xserver-cygwin-1.14.3-1/glx/glxcmds.c:806: > undefined reference to `__emutls_v._glapi_tls_Dispatch' > ../../glx/.libs/libglx.a(glxcmds.o): In function `_glXDisp_CopyContext': > /usr/src/xorg-server-1.14.3-1/src/xserver-cygwin-1.14.3-1/glx/glxcmds.c:904: > undefined reference to `__emutls_v._glapi_tls_Dispatch' > ../../glx/.libs/libglx.a(glxcmds.o): In function `_glXDisp_SwapBuffers': > /usr/src/xorg-server-1.14.3-1/src/xserver-cygwin-1.14.3-1/glx/glxcmds.c:1647: > undefined reference to `__emutls_v._glapi_tls_Dispatch' > ../../glx/.libs/libglx.a(glxcmds.o):/usr/src/xorg-server-1.14.3-1/src/xserver-cygwin-1.14.3-1/glx/glxcmds.c:1851: > more undefined references to `__emutls_v._glapi_tls_Dispatch' follow > collect2: error: ld returned 1 exit status > Makefile:890: recipe for target `XWin.exe' failed This looks like [1], a mis-match in TLS-ness between XWin and libglapi. If you are building using the .cygport file it should have ./configure'ed with --disable-glx-tls? [1] http://www.cygwin.com/ml/cygwin-xfree/2011-10/msg00065.html -- Jon TURNEY Volunteer Cygwin/X X Server maintainer -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/