Subject: Re: pkgsrc 2005Q2 SunOS 5.9/sparc bulk build results 2005-08-12
To: None <pkgsrc-bulk@NetBSD.org>
From: Klaus Heinz <k.heinz.aug.fuenf@onlinehome.de>
List: pkgsrc-bulk
Date: 08/15/2005 22:44:06
Jonathan Perkin <jonathan@perkin.org.uk> wrote:
> pkgsrc-2005Q2 bulk build results
> SunOS 5.9/sparc
> games/rocksndiamonds       1       heinz@NetBSD.org

I just tried this on Solaris 8 with pkgsrc-2005Q2 and gcc and it works
all right:

  =3D=3D=3D> Required installed package gmake>=3D3.78: gmake-3.80nb4 found
  =3D=3D=3D> Required installed package x11-links>=3D0.25: x11-links-0.25 f=
ound
  =3D=3D=3D> Required installed package gcc3-c>=3D3.3: gcc3-c-3.3.5 found
  =3D=3D=3D> Patching for rocksndiamonds-3.1.0nb1
  =3D=3D=3D> Applying pkgsrc patches for rocksndiamonds-3.1.0nb1
  =3D=3D=3D> Overriding tools for rocksndiamonds-3.1.0nb1
  =3D=3D=3D> Creating toolchain wrappers for rocksndiamonds-3.1.0nb1
  =3D=3D=3D> Configuring for rocksndiamonds-3.1.0nb1
  =3D=3D=3D> Building for rocksndiamonds-3.1.0nb1
  gmake[1]: Entering directory
  `/opt/pkgsrc/games/rocksndiamonds/work/rocksndiamonds-3.1.0/src'
  gmake[2]: Entering directory
  `/opt/pkgsrc/games/rocksndiamonds/work/rocksndiamonds-3.1.0/src/libgame'
  gcc  -O -I/opt/pkg/include -DTARGET_X11 -DRO_GAME_DIR=3D"\"/opt/pkg/share=
/rocks
  ndiamonds\"" -DRW_GAME_DIR=3D"\"/var/games/rocksndiamonds\""   -c system.c

Why is "patch>=3D2.2" required in the bulk build, but not for my build?

The required package "gcc3-c>=3D3.3" comes from "USE_PKGSRC_GCC=3Dyes" and
"GCC_REQD+=3D3.3" in my mk.conf.

=46rom the error message (...acomp...) I conclude you are using Sun
{Workshop|Forte|Studio}? I have this lying somewhere but not available
right now.

If I understand the error message correctly, the compiler cannot support
static variables in inlined functions which seems to be correct
according to some C99 resources I found on the web.

It appears to me that the obvious workaround is the removal of the "inline"
keyword but I do not know how much this could affect performance and
will contact the author when I can reproduce the error with Sun Forte.

ciao
     Klaus