🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #73273

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

#73273
From: Gary L. Burnore
Date: Sat, 18 Feb 2006 21:15
69 lines
3949 bytes
On Sat, 18 Feb 2006 19:46:03 +0000, Chris Ridd <chrisridd@mac.com>
wrote:

>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??

Just saying what worked for me.


>I was also under the impression that on Solaris you should always link with
>Sun's linker rather than a GNU one,

Not necessarily.  Using all GNU works.

I know what works on Solaris. I know INN compiled totally in GNU
works. 

> 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>

THE?  No. Maybe one of many.  




-- 
gburnore at DataBasix dot Com 
---------------------------------------------------------------------------
                    How you look depends on where you go.
---------------------------------------------------------------------------
Gary L. Burnore                       |  ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
                                      |  ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
Official .sig, Accept no substitutes. |  ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
                                      |  ÝÛ 0 1 7 2 3 / Ý³Þ 3 7 4 9 3 0 Û³
Black Helicopter Repair Services, Ltd.|     Official Proof of Purchase
===========================================================================
Technical Details
Message-ID: <dt82v0$c5o$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-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!news.alt.net!blackhelicopter.databasix.com!not-for-mail
References: <slrndvdg03.44o.ese002@spica.exile.org> <dt7oad$g31$1@blackhelicopter.databasix.com> <C01D29FB.1684AC%chrisridd@mac.com>

Show Full Headers
Complete Article Headers
Message-ID: <dt82v0$c5o$1@blackhelicopter.databasix.com>
Subject: Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Date: Sat, 18 Feb 2006 16:15:36 -0500
From: Gary L. Burnore <gburnore@databasix.com>
References: <slrndvdg03.44o.ese002@spica.exile.org> <dt7oad$g31$1@blackhelicopter.databasix.com> <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-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!news.alt.net!blackhelicopter.databasix.com!not-for-mail
Newsgroups: news.software.nntp,comp.unix.solaris
Organization: DataBasix - Continuing to kick USENet ass.
Lines: 69
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: blackhelicopter.databasix.com 1140297505 12472
X-Complaints-To: abuse@databasix.com
NNTP-Posting-Date: Sat, 18 Feb 2006 21:18:25 +0000 (UTC)
X-Newsreader: Forte Agent 3.1/32.783
X-No-Archive: yes