Hi! On Mon, 31 Oct 2011 18:11:09 +0100, l...@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
pgp6mXfuEUnna.pgp
Description: PGP signature