undefined reference to `__pthread_internal_tsd_get'

Eric Fisher joefoxreal@gmail.com
Thu Mar 9 03:28:00 GMT 2006


Hi,
Thanks for your time. I've built and installed glibc for my target.
But even a printf function when I complied in a test.c, the error
messages come out, such as

/usr/glibc/lib/libc.a(strtoll.o)(.text+0x4c): In function `__strtoll_internal':
undefined reference to `__pthread_internal_tsd_get'

/usr/glibc/lib/libc.a(alt_digit.o)(.text+0x544): In function
`_nl_get_walt_digit':
undefined reference to `__pthread_mutex_unlock'

I can't think that printf requires threads support. And I do link with
libpthread.a.
Actually, I don't want to support thread for now. But, without
--enable-add-ons=linuxthreads, the glibc can't be built.

Anyone can give me some suggestion?

Regards,
Eric



More information about the Libc-ports mailing list