[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#298247: glibc: Including bits/libc-lock.h for __libc_lock_* fails on nptl system.

On Sun, Mar 06, 2005 at 02:01:12AM +0100, Kurt Roeckx wrote:
> Package: libc6-dev
> Version: 2.3.2.ds1-20
> Hi,
> libnss-pgsql uses <bits/libc-lock.h> with _LIBC and NOT_IN_libc
> defined to use __libc_lock_*.
> On amd64 this is failing because it does this:
> #ifdef _LIBC
> # include <lowlevellock.h>
> # include <tls.h>
> # include <pthread-functions.h>
> #endif
> None of those seem to exist on amd64, probably because we do not
> have tls and only have nptl.
> libnss-pgsql builds fine if those 3 includes are removed.

That is a bug in libnss-pgsql; __libc_lock_* are not an exported
interface, do not use them.

You do have TLS, but tls.h is not and will never be an installed
header; ditto the others.

Daniel Jacobowitz
CodeSourcery, LLC

Reply to: