glibc build error: linking nptl static - V2.17
Tue Apr 2 14:19:00 GMT 2013
On Mon, Apr 1, 2013 at 10:36 PM, L A Walsh <email@example.com> wrote:
> I'm getting an undefined reference when trying to build a static version
> of glibc for standalone/rescue tool building but am getting the following
> link error:
> undefined reference to `__GI___pthread_unwind'
Unfortunately this isn't a very well tested configuration.
You have two options:
(a) Roll up your sleeves and get dirty and find out why you have an
undefined reference to a "global library-internal function".
My first guess is this:
# ifdef SHARED
# define __pthread_unwind __GI___pthread_unwind
# ifndef SHARED
You can pretty easily see that it has no conditional for !SHARED (or
static) when building within libpthread.
Until you fix this it won't work.
(b) Back off on some of the configure flags you are using.
You can still link statically without those flags, but some cases
might load libraries.
More information about the Libc-help