🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #73299

Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10

#73299
From: Russ Allbery
Date: Tue, 21 Feb 2006 18:26
46 lines
3357 bytes
In news.software.nntp, Bill Davidsen <davidsen@deathstar.prodigy.com> writes:

> But it isn't a C language feature, it's a C99 feature,

INN is written in C99.  It doesn't use the non-portable features of C99,
such as variable arrays, since they're not widely available yet.  It does
use the features of C99 that are widely available on systems where they
are available.

A few years after the next revision of the C standard is released, I
expect INN to become compliant with that version of the standard too.
This is how I program.  There's a reason why new versions of the C
standard are released.

> and unless you persuade gcc to run as a C99 compiler those features are
> not a proper feature of the language of the compiler any more than
> features of Ada or COBOL :-(

Oh, come now.  Don't you think you're overstating matters just a wee bit?
New features are added to the language in a backward-compatible fashion
and gcc's default compilation mode has always supported as much as
possible of the latest revision of the standard.  So, for that matter,
does the default compilation mode of essentially every Unix compiler.

Up until this, there's never been a problem, and in fact it looks like
there may still not be a problem and the original issue was a red
herring.

> I don't think that using features not in the language is a theoretical
> problem, but I've tried to write portable code for some decades and
> accept using a common subset of the language as the method to do that.

Yeah, yeah, I've been doing this for a long time too.  Let's not get into
a pissing contest about which of us writes more portable code.  This is
what Autoconf is for.

> But it used bool long before C99, when the feature was done internally.

No, it didn't.  I added bool myself and I know when I did it.

-- 
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: <877j7o36wo.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!news4.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
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> <jTqKf.1717$%m4.316@newssvr33.news.prodigy.com> <871wxxbs29.fsf@windlord.stanford.edu> <EHGKf.1799$%m4.1244@newssvr33.news.prodigy.com>

Show Full Headers
Complete Article Headers
Message-ID: <877j7o36wo.fsf@windlord.stanford.edu>
Subject: Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Date: Tue, 21 Feb 2006 10:26:15 -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> <87mzgpqdad.fsf@windlord.stanford.edu> <jTqKf.1717$%m4.316@newssvr33.news.prodigy.com> <871wxxbs29.fsf@windlord.stanford.edu> <EHGKf.1799$%m4.1244@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!news4.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
Newsgroups: news.software.nntp,comp.unix.solaris
Organization: The Eyrie
Lines: 45
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 1140546376 7860 171.64.19.147 (21 Feb 2006 18:26:16 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:BAntvd8KteLco8yhNnr6oDHW/Dg=