[Xcb] [Bug 87128] New: /usr/include/pthread.h:368:11: note: previous declaration of '__libc_thr_self' was here

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Dec 8 16:49:33 PST 2014


            Bug ID: 87128
           Summary: /usr/include/pthread.h:368:11: note: previous
                    declaration of '__libc_thr_self' was here
           Product: XCB
           Version: 1.11
          Hardware: x86-64 (AMD64)
                OS: NetBSD
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Utils
          Assignee: xcb at lists.freedesktop.org
          Reporter: sfisher at sdf.org
        QA Contact: xcb at lists.freedesktop.org

When compiling libpthread-stubs-0.1 as a prerequisite for libxcb-1.11 on NetBSD
6.1.5, I encounter this compilation error after running the configure script:

stubs.c:33:5: error: conflicting types for '__libc_thr_self'
/usr/include/pthread.h:368:11: note: previous declaration of '__libc_thr_self'
was here

Presumably, this is because none of NetBSD's pthread functions were found by
the configure script even though they exist:

checking for pthread_self... no
checking for pthread_mutex_init... no
checking for pthread_mutex_destroy... no
checking for pthread_mutex_lock... no
checking for pthread_mutex_unlock... no
checking for pthread_cond_init... no
checking for pthread_cond_destroy... no
checking for pthread_cond_wait... no
checking for pthread_cond_signal... no
checking for pthread_cond_broadcast... no
checking for pthread_equal... no

The man page for pthread_self() says it is included in pthread.h and the
libpthread library.  I work around this problem by passing -lpthread to the
configure script with LDFLAGS on the command line.

You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/xcb/attachments/20141209/cea064c7/attachment.html>

More information about the Xcb mailing list