DragonFly BSD
DragonFly bugs List (threaded) for 2005-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: errno bug and gcc internal error


From: "George Georgalis" <george@xxxxxxxxx>
Date: Tue, 19 Jul 2005 18:23:30 -0400
Mail-followup-to: bugs@crater.dragonflybsd.org

On Tue, Jul 19, 2005 at 09:25:08PM +0200, Joerg Sonnenberger wrote:
>On Wed, Jul 20, 2005 at 12:51:36AM +0900, YONETANI Tomokazu wrote:
>
>> 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.

You mean this doesn't help?

cd $package
echo "gcc -O2 --include /usr/include/errno.h" >conf-cc

(was simple fix I used when encountered errno problem, light hearted
opinion follows)

Seems the gcc core should gracefully deal with this (warnings that
code has been grokked), if there is no clean way to grok programs
incorrectly declaring errno, the compiler should...

// George


-- 
George Georgalis, systems architect, administrator Linux BSD IXOYE
http://galis.org/george/ cell:646-331-2027 mailto:george@xxxxxxxxx



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]