[uClibc]strange error (undefined reference to stderr)

Erik Andersen andersen at lineo.com
Fri Aug 24 23:25:48 UTC 2001


On Sun Jul 22, 2001 at 09:45:20AM -0600, Manuel Novoa III wrote:
> On Sun, Jul 22, 2001 at 01:38:54PM +0200, Oliver Dawid wrote:
> > any idea?
> 
> The linker is looking for the symbol "stderr".
> ANSI/ISO mandates that stderr be a macro.
> glibc (which in your case is what libgcc.a is probably linked against) does
> 
> extern FILE *stderr;
> #define stderr stderr
> 
> while uClibc (currently) does
> 
> extern FILE *_stderr;
> #define stderr _stderr
> 
> Hence, uClibc has a "_stderr" symbol instead of "stderr".

I just (finally) got around to fixing this one...  Sorry it
took so long -- I'd forgotten about it.

 -Erik

--
Erik B. Andersen   email:  andersen at lineo.com
--This message was written using 73% post-consumer electrons--





More information about the uClibc mailing list