[Xcb] problem when compiling xcb

Vincent Torri torri at cauchy.iecn.u-nancy.fr
Sun Nov 7 05:30:34 PST 2004



On Sat, 6 Nov 2004, Kevin Brosius wrote:

> Jamey Sharp wrote:
> >
> >
> > Hey, thanks for the reports. Sounds like you both have the same problem,
> > and since I haven't seen it myself I'm guessing you're both using GCC
> > 3.4, or perhaps you're both using an old glibc, or something along those
> > lines.
> >
> > I'm guessing that this is due to my use of the __thread storage class
> > modifier in xcb/src/xcb_conn.c. I'd already had a report that this
> > breaks GCC 2.95. Fortunately, that variable is only supporting an
> > assertion and can be safely removed.
> >
> > Could you two try removing the line
> >         static __thread int already_here = 0;
> > and all the references to the variable "already_here" in the
> > _xcb_conn_wait function, and let me know whether XCB compiles
> > successfully for you then?
>
> Jamey,
>  Yes, that is the problem.  There are several distro's with a glibc
> issue with the __thread keyword.  I worked around this problem when
> making some xcb SuSE 9.0 packages a few weeks ago.  I've meant to
> propose some workarounds, but hadn't gotten to it yet.  There are some
> notes on using the thread info interface in place of __thread to resolve
> this.
>
> Kevin

it also solves the problem here

Vincent TORRI


More information about the xcb mailing list