Article View: news.software.nntp
Article #73266Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
From: Russ Allbery
Date: Sat, 18 Feb 2006 06:38
Date: Sat, 18 Feb 2006 06:38
32 lines
2492 bytes
2492 bytes
In news.software.nntp, Eric Edwards <ese002@news9.exile.org> writes:
> # gmake
> cd include && gmake all
> gmake[1]: Entering directory `/local/app/inn-2.4.2/include'
> ../support/mksystem /usr/bin/awk config.h > inn/system.h
> ../support/mkversion '2.4.2' '' > inn/version.h
> gmake[1]: Leaving directory `/local/app/inn-2.4.2/include'
> cd lib && gmake all
> gmake[1]: Entering directory `/local/app/inn-2.4.2/lib'
> gcc -g -O2 -I../include -c setproctitle.c
> In file included from ../include/inn/defines.h:50,
> from ../include/config.h:20,
> from setproctitle.c:15:
> /usr/include/stdbool.h:42:2: #error "Use of <stdbool.h> is valid only in a c99 compilation environment."
> In file included from setproctitle.c:19:
> ../include/inn/messages.h:73: error: syntax error before "bool"
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?
It may be that this is a missing fixheaders rule in GCC. (It may even be
one that's added in later versions.)
--
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:
<87y809qiht.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!news2.google.com!news4.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mailReferences:
<slrndvdg03.44o.ese002@spica.exile.org>Show Full Headers
Complete Article Headers
Message-ID: <87y809qiht.fsf@windlord.stanford.edu> Subject: Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10 Date: Fri, 17 Feb 2006 22:38:22 -0800 From: Russ Allbery <rra@stanford.edu> References: <slrndvdg03.44o.ese002@spica.exile.org> 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!news2.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: 31 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 1140244706 8445 171.64.19.147 (18 Feb 2006 06:38:26 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:X4JVxp95ZpbhwIZbvoRLrfmnB+c=