[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: libc & libpthread circular dependency
From: |
Thomas Schwinge |
Subject: |
Re: libc & libpthread circular dependency |
Date: |
Tue, 01 Nov 2011 10:02:14 +0100 |
User-agent: |
Notmuch/0.9-101-g81dad07 (http://notmuchmail.org) Emacs/23.3.1 (i486-pc-linux-gnu) |
Hi!
On Mon, 31 Oct 2011 18:11:09 +0100, ludo@gnu.org (Ludovic
=?iso-8859-1?Q?Court=E8s?=) wrote:
> It used to be that Savannah’s libc could be compiled without libpthread,
> because none of the source files would explicitly include <pthread.h>.
>
> This is no longer the case with the recent changes where the new
> nss_files/files-init.c includes <nscd/nscd.h> (so it can use struct
> traced_file), which includes <pthread.h> and uses pthread types.
Yes, I noticed this, too.
> So, how can this all be bootstrapped?
>
> One way would be to move struct traced_file elsewhere.
>
> Another would be to build a pthread-less libc, which could then be used
> to build libpthread, which could then be used to build the full-blown
> libc.
Here is what I'm doing in cross-gnu; simply install the libpthread
headers before building glibc:
<http://git.savannah.gnu.org/cgit/hurd/incubator.git/commit/?h=cross-gnu/master&id=2114e5595b9f6f94efcf66d405003be31b5b8eed>.
> A longer-term way, would be to include libpthread in libc, like NPTL.
> That’s probably more work, and more divergence from Sourceware libc.
Yes, but it's what we want to do, eventually:
<http://www.gnu.org/software/hurd/open_issues/packaging_libpthread.html>.
Grüße,
Thomas
pgpJJU6tCgWvJ.pgp
Description: PGP signature
- Re: libc & libpthread circular dependency,
Thomas Schwinge <=