undefined stderr libiberty/getopt.c

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Mon Apr 24 06:13:00 GMT 2000


> shouldn't stderr be defined in stdio.h? 

Sure, this is where it should be. Is that happening when compiling
getopt for the host or for the target? I.e. in libiberty/getopt.o, or
in powerpc-eabi/getopt.o?

> any suggestions other than commenting out the offending line? maybe
> no one has tried to run gcc-2.95.2 on Solaris2.8 while building a
> cross compiler for powerpc-eabi... in which case, this may be a bug.

What kind of target is 'powerpc-eabi'? Does it have a C library?  If
so, it would be a bug in that C library - according to ANSI C, I
believe there is always a stderr in the C library.

If it does not have a C library, why do you need to compile libiberty
for the target at all? In this case, adding target-libiberty to
noconfigdirs might work.

> any suggestions other than commenting out the offending line?

Commenting it out is not a solution; it is needed in that way on the
host, I believe.

Regards,
Martin


More information about the Gcc-help mailing list