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/

Reply via email to