errno bug and gcc internal error

Joerg Sonnenberger joerg at britannica.bec.de
Tue Jul 19 12:27:28 PDT 2005


On Wed, Jul 20, 2005 at 12:51:36AM +0900, YONETANI Tomokazu wrote:
> Hello.
> I don't remember when this started, but ld on -devel dumps core
> trying to link a .o file containing an errno declaration(djbdns for one):

I know about the ld problem, haven't had time to fix it though.

> But I wonder if someone has any idea how to let gcc say something like
> this instead:
> 
> `bzzzt, your software declares errno as an extern int, which is incorrect.'

Actually, as long as the software includes errno.h as it should, it does
that. Well, it did that before Simon "fixed" it. Hacking special support
for errno into GCC is not the right thing IMO.

Joerg





More information about the Bugs mailing list