[patch] Build failure in getchar.c

Bernhard Fischer rep.nop at aon.at
Thu Dec 21 00:33:36 PST 2006


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 ?
>
>libc/stdio/getchar.c:26: error: 'getchar' aliased to undefined 
>symbol 'getchar_unlocked'
>
>It looks like it's missing libc_hidden_def(getchar_unlocked). Patch below 
>fixes this.
>
>Paul
>
>Index: libc/stdio/getchar.c
>===================================================================
>--- libc/stdio/getchar.c	(revision 17007)
>+++ libc/stdio/getchar.c	(working copy)
>@@ -21,6 +21,7 @@ int getchar_unlocked(void)
> 
> 	return __GETC_UNLOCKED_MACRO(stream);
> }
>+libc_hidden_def(getchar_unlocked)
> 
> #ifndef __UCLIBC_HAS_THREADS__
> strong_alias(getchar_unlocked,getchar)


More information about the uClibc mailing list