<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - /usr/include/pthread.h:368:11: note: previous declaration of '__libc_thr_self' was here"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=87128">87128</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>/usr/include/pthread.h:368:11: note: previous declaration of '__libc_thr_self' was here
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>XCB
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>1.11
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>NetBSD
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Utils
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>xcb@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>sfisher@sdf.org
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>xcb@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>