🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #9918

Re: Need help compiling nn-6.6.2 for Solaris 2.8 w/ gcc 2.95.2

#9918
From: Michael T Pins
Date: Tue, 06 Nov 2001 18:57
59 lines
3435 bytes
bgeer@xmission.xmission.com (bgeer) writes:

>Neil W Rickert <rickert+nn@cs.niu.edu> writes:

> >bgeer <bgeer@xmission.xmission.com> writes:

> >>I need some compile help.  nn-6.6.2 won't compile after untarring.

> >>"uname -a" reveals "SunOS xmission 5.8 Generic_108528-07 sun4u sparc"

> >>"gcc --version" results in "2.95.2".

> >>Here is the result of compiling with no changes other than identifying
> >>the news server & domain in config.h:


> >>gcc  -Iconf -D_MSE_INT_H -D__EXTENSIONS__  -g    -c -o term.o term.c
> >>In file included from /usr/local/include/stdarg.h:30,
> >>                 from /usr/local/include/curses.h:78,
> >>                 from term.c:29:
> >>/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/include/va-sparc.h:29:
> >>warning: `va_start' redefined
> >>/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/include/va-sparc.h:41:
> >>warning: this is the location of the previous definition
> >>term.c:882: macro `va_start' used with just one arg
> >>term.c:1017: macro `va_start' used with just one arg
> >>term.c:1090: macro `va_start' used with just one arg
> >>term.c:2020: macro `va_start' used with just one arg
> >>term.c:2037: macro `va_start' used with just one arg
> >>term.c:2137: macro `va_start' used with just one arg

> >That sure looks like a broken gcc installation.

>No doubt that is a possibility.  However, I get the same problems when
>compiling on a Sparc5 Solaris 2.8 machine with clean install of gcc
>3.0 from http://www.sunfreeware.com/.  In some header files,
>va_start() has a single arg & in others it has 2 args.

>Hope someone has some gcc/Sparc/Solaris2.8 experience to share.

I've just reproduced this.  It appears to be a problem with the gcc from Sun.

It compiles (and runs) correctly when I compile it on Solaris 8 using a good
install of gcc-2.8.1 mounted from my Solaris 2.6 machine.
It fails like the above when I try to compile it on the same machine using
the gcc-2.95.3 from Sun.

As I know people who have compiled nn with gcc-2.96, I'm assuming it's not
a problem in gcc itself, but rather one with the install.

Still, this is likely to be an ongoing problem.  I'll look into this next
week as well.

-- 
Michael T Pins			|    "They that can give up essential liberty
mtpins@nndev.org		|    to obtain a little temporary safety
keeper of the nn sources	|    deserve neither liberty nor safety."
ftp://ftp.nndev.org/pub		|	-- Benjamin Franklin, 1759
Technical Details
Message-ID: <uoWF7.238$H7.280696@ruti.visi.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!newspump.sol.net!zeus.visi.com!news-out.visi.com!ruti.visi.com!mtpins
References: <s4elnfkjjy.fsf@xmission.xmission.com> <9s149o$grj$1@husk.cso.niu.edu> <9s54an$cvd$1@xmission.xmission.com>

Show Full Headers
Complete Article Headers
Message-ID: <uoWF7.238$H7.280696@ruti.visi.com>
Subject: Re: Need help compiling nn-6.6.2 for Solaris 2.8 w/ gcc 2.95.2
Date: Tue, 06 Nov 2001 18:57:30 GMT
From: Michael T Pins <mtpins@nndev.org>
References: <s4elnfkjjy.fsf@xmission.xmission.com> <9s149o$grj$1@husk.cso.niu.edu> <9s54an$cvd$1@xmission.xmission.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!newspump.sol.net!zeus.visi.com!news-out.visi.com!ruti.visi.com!mtpins
Newsgroups: news.software.nn
User-Agent: nn/6.6.1
Lines: 58
NNTP-Posting-Host: 207.174.152.234
X-Complaints-To: abuse@visi.com
X-Trace: ruti.visi.com 1005073050 207.174.152.234 (Tue, 06 Nov 2001 12:57:30 CST)
NNTP-Posting-Date: Tue, 06 Nov 2001 12:57:30 CST