Article View: news.software.nntp
Article #73268Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
From: Russ Allbery
Date: Sat, 18 Feb 2006 08:30
Date: Sat, 18 Feb 2006 08:30
37 lines
2683 bytes
2683 bytes
In news.software.nntp, Ian Collins <ian-news@hotmail.com> writes:
> Russ Allbery wrote:
>> Wow, it sure sounds like Solaris 10 did something hideously stupid with
>> their headers. I don't have a Solaris 10 system around to look at;
>> what sort of magic is one supposed to use to convince Solaris that when
>> I ask for a definition of bool, I really want a bool?
> The comment in the file says:
> * Included for alignment with the ISO/IEC 9899:1999 standard. The
> * contents of this header are only visible when using a c99
> * compiler, otherwise inclusion of this header will result in a
> * forced compilation failure.
> gcc isn't a C99 compiler.
What the heck was the point of that?
Although really, the more interesting question is why gcc's own stdbool.h
is not overriding the Solaris one; at least on Linux, gcc ships its own.
Regardless, I don't consider this an INN bug. It's either a Solaris bug
or a gcc bug. If someone can give me a good workaround, I'm happy to use
it, but gcc and Solaris should really sort out their differences.
The development trunk of INN uses Autoconf 2.59 and AC_HEADER_STDBOOL,
which probably does something better, but the current release version of
INN is still trying to support Autoconf 2.13 since switching fully to 2.59
required a bunch of fiddling.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<87mzgpqdad.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.solaris.mbox.zip!g2news1.google.com!news1.google.com!news3.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mailReferences:
<slrndvdg03.44o.ese002@spica.exile.org> <87y809qiht.fsf@windlord.stanford.edu> <1140250253.11999@drone2-svc-skyt.qsi.net.nz>Show Full Headers
Complete Article Headers
Message-ID: <87mzgpqdad.fsf@windlord.stanford.edu> Subject: Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10 Date: Sat, 18 Feb 2006 00:30:50 -0800 From: Russ Allbery <rra@stanford.edu> References: <slrndvdg03.44o.ese002@spica.exile.org> <87y809qiht.fsf@windlord.stanford.edu> <1140250253.11999@drone2-svc-skyt.qsi.net.nz> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.solaris.mbox.zip!g2news1.google.com!news1.google.com!news3.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail Newsgroups: news.software.nntp,comp.unix.solaris Organization: The Eyrie Lines: 36 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 1140251451 8445 171.64.19.147 (18 Feb 2006 08:30:51 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.110004 (No Gnus v0.4) XEmacs/21.4.18 (linux) Cancel-Lock: sha1:bNaRZJWV5F4KMdA8XAwSs40UFJI=