🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #73271

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

#73271
From: Chris Ridd
Date: Sat, 18 Feb 2006 19:46
45 lines
2862 bytes
On 18/2/06 6:14, in article dt7oad$g31$1@blackhelicopter.databasix.com,
"Gary L. Burnore" <gburnore@databasix.com> wrote:

> On Sat, 18 Feb 2006 06:34:44 +0000 (UTC), ese002@news9.exile.org (Eric
> Edwards) wrote:
> 
>> # 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"
>> gmake[1]: *** [setproctitle.o] Error 1
>> gmake[1]: Leaving directory `/local/app/inn-2.4.2/lib'
>> gmake: *** [all-lib] Error 2
>> 
>> Suggestions?  It seems to compile ok with the ancient gcc-2.95.2 install
>> carried over from the old sun4m/Sol9 machine.
> 
> Check to be sure that the directory holding the gnu linker is ahead of
> /usr/ccs/bin in your path. (Ususally, /usr/local/bin)

How would that help a compiler/preprocessor problem??

I was also under the impression that on Solaris you should always link with
Sun's linker rather than a GNU one, so trying to arrange for GNU ld to get
used seems incorrect. The current Solaris 2 FAQ concurs:

<http://www.science.uva.nl/pub/solaris/solaris2/Q6.1.html>

Cheers,

Chris

Technical Details
Message-ID: <C01D29FB.1684AC%chrisridd@mac.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!news1.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <slrndvdg03.44o.ese002@spica.exile.org> <dt7oad$g31$1@blackhelicopter.databasix.com>

Show Full Headers
Complete Article Headers
Message-ID: <C01D29FB.1684AC%chrisridd@mac.com>
Subject: Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Date: Sat, 18 Feb 2006 19:46:03 +0000
From: Chris Ridd <chrisridd@mac.com>
References: <slrndvdg03.44o.ese002@spica.exile.org> <dt7oad$g31$1@blackhelicopter.databasix.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!news1.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.nntp,comp.unix.solaris
Lines: 44
Mime-Version: 1.0
Content-Type: text/plain;
 charset="US-ASCII"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net z/g9bo0nFGX0Gzzar4mCWgq2Pxri39LPaNM2wHt4f1iosze9D4
User-Agent: Microsoft-Entourage/11.2.1.051004
Thread-Topic: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Thread-Index: AcY0w/MxMf3ngqC3EdqpvwARJHlZbA==
X-Face: qKxW-3%aN-b)%50!hCnD]UA5lnchkm`QEM[zee$f;>[3bgg