[Top][All Lists]

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

libc & libpthread circular dependency

From: Ludovic Courtès
Subject: libc & libpthread circular dependency
Date: Mon, 31 Oct 2011 18:11:09 +0100
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux)


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.

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

A longer-term way, would be to include libpthread in libc, like NPTL.
That’s probably more work, and more divergence from Sourceware libc.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]