This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: wglext.h
- From: "J. Offerman" <jofferman at gmail dot com>
- To: cygwin-xfree <cygwin-xfree at cygwin dot com>
- Date: Tue, 1 Nov 2011 10:57:46 -0700
- Subject: Re: wglext.h
- References: <CA+2me80D3f+UW_t8t8Ybk38fU8Vvj88FQEEM+dwv_WGf46ESHA@mail.gmail.com> <4EADABED.5060309@dronecode.org.uk> <CA+2me83iRuC-vpSJUrNK7fNic_goumQqGw1+JAemfs0sbdm7HQ@mail.gmail.com> <4EAEA60D.5070301@dronecode.org.uk>
- Reply-to: cygwin-xfree at cygwin dot com
FYI, I also had to specify --disable-unit-test to finish compiling successfully.
Thanks for your help. I really appreciate your perpetual efforts on
this. I admire you. People should worship you. If I were 20 years
younger with a tank full of energy... :-)
On Mon, Oct 31, 2011 at 6:43 AM, Jon TURNEY <jon.turney@dronecode.org.uk> wrote:
> On 31/10/2011 03:33, J. Offerman wrote:
>>
>> Okay, I went with --disable-aiglx, and it moved on, but I got this at
>> the very last stage of the build process:
>>
>>
>> ? CCLD ? XWin.exe
>> ../../glx/.libs/libglx.a(glxcmds.o): In function `FlushContext':
>>
>> /usr/src/xorg-server-1.11.1-1/src/xserver-cygwin-1.11.1-1/glx/glxcmds.c:219:
>> undefined reference to `__glapi_tls_Dispatch'
>> ../../glx/.libs/libglx.a(glxcmds.o): In function `DoMakeCurrent':
>>
>> /usr/src/xorg-server-1.11.1-1/src/xserver-cygwin-1.11.1-1/glx/glxcmds.c:598:
>> undefined reference to `__glapi_tls_Dispatch'
>> ../../glx/.libs/libglx.a(glxcmds.o): In function `__glXDisp_WaitGL':
>>
>> /usr/src/xorg-server-1.11.1-1/src/xserver-cygwin-1.11.1-1/glx/glxcmds.c:767:
>> undefined reference to `__glapi_tls_Dispatch'
>> ../../glx/.libs/libglx.a(glxcmds.o): In function `__glXDisp_CopyContext':
>>
>> /usr/src/xorg-server-1.11.1-1/src/xserver-cygwin-1.11.1-1/glx/glxcmds.c:864:
>> undefined reference to `__glapi_tls_Dispatch'
>> ../../glx/.libs/libglx.a(glxcmds.o): In function `__glXDisp_SwapBuffers':
>>
>> /usr/src/xorg-server-1.11.1-1/src/xserver-cygwin-1.11.1-1/glx/glxcmds.c:1578:
>> undefined reference to `__glapi_tls_Dispatch'
>>
>> ../../glx/.libs/libglx.a(glxcmds.o):/usr/src/xorg-server-1.11.1-1/src/xserver-cygwin-1.11.1-1/glx/glxcmds.c:1777:
>> more undefined references to `__glapi_tls_Dispatch' follow
>> collect2: ld returned 1 exit status
>> make[4]: *** [XWin.exe] Error 1
>>
>>
>> Who has "__glapi_tls_Dispatch"?
>
> The short answer is ./configure with --disable-glx-tls
>
> (In general I would suggest always looking at the .cygport file and checking
> you understand if you need to use the configuration options used there :-)
>
> Slightly longer answer is because XWin links with mesa's libGL to provide
> the glapi functions (to avoid other problems which PE/COFF linkage causes
> us), XWin needs to be built with the same TLS-ness as libGL. ?Since X server
> 1.10, X has changed from disabling TLS by default to autodetecting if TLS is
> available, but mesa doesn't build with TLS enabled on cygwin for reasons I
> never got around to looking into...
>
> --
> 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/