[patch] fix failure with fputc() [was: Re: [patch] Build failure in getchar.c]
Bernhard Fischer
rep.nop at aon.at
Fri Dec 22 02:51:53 PST 2006
On Thu, Dec 21, 2006 at 02:13:09PM +0000, Paul Brook wrote:
>On Thursday 21 December 2006 08:33, Bernhard Fischer wrote:
>> On Tue, Dec 19, 2006 at 10:09:30PM +0000, Paul Brook wrote:
>> >When building an arm-uclinux toolchain withthreading disabled I get:
>>
>> So why isn't the def in the #ifndef __UCLIBC_HAS_THREADS__ then ?
>
>Presumably it's a latent bug on threaded setups. Any internal libc uses of
>getchar_unlocked would trigger it.
I can see that, ok. Thanks.
I have this patch lying around that fixes undefined references to
__fputc_unlocked, fwiw.
andersee, mind if i checking stuff like that on my own or do you prefer
me to run all and any of these through the list?
uClibc-0.9.29-008-__fputc_unlocked_undecl_w_HAS_THREADS.patch
cheers,
-------------- next part --------------
Index: uClibc/libc/stdio/fputc.c
===================================================================
--- uClibc/libc/stdio/fputc.c (revision 17024)
+++ uClibc/libc/stdio/fputc.c (working copy)
@@ -72,7 +72,9 @@
}
libc_hidden_def(__fputc_unlocked)
+libc_hidden_proto(fputc_unlocked)
strong_alias(__fputc_unlocked,fputc_unlocked)
+libc_hidden_def(fputc_unlocked)
libc_hidden_proto(putc_unlocked)
strong_alias(__fputc_unlocked,putc_unlocked)
More information about the uClibc
mailing list