Article View: news.software.nntp
Article #73277Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
From: Bill Davidsen
Date: Mon, 20 Feb 2006 21:53
Date: Mon, 20 Feb 2006 21:53
52 lines
3828 bytes
3828 bytes
Russ Allbery wrote: > 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? I thought the comment was pretty clear, the point is to keep you from building a non-portable software package. The real question is why that header is being included... > > 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. That makes it work, but it won't improve the portability. > > 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. If gcc lacks a c99 environment switch (haven't looked at the new features) then the best thing is to not try to use the feature, and the easy thing is to get a copy of the header and add a -I to include that instead of the system header. > > 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. > My guess is that the header really shouldn't be included in this case, but I haven't researched it and there may be some reason why it's okay to use the header anyway. -- bill davidsen SBC/Prodigy Yorktown Heights NY data center http://newsgroups.news.prodigy.com
Technical Details
Message-ID:
<jTqKf.1717$%m4.316@newssvr33.news.prodigy.com>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!news3.google.com!news.glorb.com!newscon02.news.prodigy.com!prodigy.net!newsmst01b.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr33.news.prodigy.com.POSTED!1055e9ad!not-for-mailReferences:
<slrndvdg03.44o.ese002@spica.exile.org> <87y809qiht.fsf@windlord.stanford.edu> <1140250253.11999@drone2-svc-skyt.qsi.net.nz> <87mzgpqdad.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <jTqKf.1717$%m4.316@newssvr33.news.prodigy.com> Subject: Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10 Date: Mon, 20 Feb 2006 21:53:19 GMT From: Bill Davidsen <davidsen@deathstar.prodigy.com> References: <slrndvdg03.44o.ese002@spica.exile.org> <87y809qiht.fsf@windlord.stanford.edu> <1140250253.11999@drone2-svc-skyt.qsi.net.nz> <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!news3.google.com!news.glorb.com!newscon02.news.prodigy.com!prodigy.net!newsmst01b.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr33.news.prodigy.com.POSTED!1055e9ad!not-for-mail User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060130 SeaMonkey/1.0 MIME-Version: 1.0 Newsgroups: news.software.nntp,comp.unix.solaris In-Reply-To: <87mzgpqdad.fsf@windlord.stanford.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Lines: 51 NNTP-Posting-Host: 207.115.54.38 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr33.news.prodigy.com 1140472399 ST000 207.115.54.38 (Mon, 20 Feb 2006 16:53:19 EST) NNTP-Posting-Date: Mon, 20 Feb 2006 16:53:19 EST Organization: SBC http://yahoo.sbc.com X-UserInfo1: [[PGWWSGRZUWBQA[KZONNFTBGR_N@ATM[@GZ_GYO^JWTEPIB_NVUAH_[BL[\IRKIANGGJBFNJF_DOLSCENSY^U@FRFUEXR@KFXYDBPWBCDQJA@X_DCBHXR[C@\EOKCJLED_SZ@RMWYXYWE_P@\\GOIW^@SYFFSWHFIXMADO@^[ADPRPETLBJ]RDGENSKQQZN