This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: Problem trying to build Cygwin X server from source
- From: Jon TURNEY <jon dot turney at dronecode dot org dot uk>
- To: cygwin-xfree at cygwin dot com
- Cc: mdl at alum dot mit dot edu
- Date: Mon, 28 Oct 2013 14:48:03 +0000
- Subject: Re: Problem trying to build Cygwin X server from source
- Authentication-results: sourceware.org; auth=none
- References: <526525E9 dot 1070802 at dronecode dot org dot uk> <877gczzhhp dot fsf at foil dot strangled dot net>
- Reply-to: cygwin-xfree at cygwin dot com
- Reply-to: cygwin-xfree <cygwin-xfree at cygwin dot com>
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/