Subject: Re: bootstrap is broken on Solaris
To: Joachim =?ISO-8859-1?Q?K=F6nig-Baltes?= <joachim.koenig-baltes@emesgarten.de>
From: None <segv@netctl.net>
List: pkgsrc-users
Date: 04/04/2006 15:06:06
On Tue, 04 Apr 2006 13:21:34 +0200
Joachim K=F6nig-Baltes <joachim.koenig-baltes@emesgarten.de> wrote:

> On Sun, 2 Apr 2006 segv@netctl.net wrote:
>=20
> > I've just updated pkgsrc tree and trying to bootstrap on Solaris
> >=20
> > CC=3D"cc" LIBC=3D MAKEFLAGS=3D
> > MAKESYSPATH=3D`pwd`/mk:mk:/opt/pkg/share/mk:/usr/share/mk:/usr/local/sh=
are/mk:/opt/share/mk ./bmake.boot
> > -f Makefile /opt/SUNWspro/bin/cc -xO3 -xtarget=3Dultra -Xa -xc99=3Dall =
-xO3
> > -xtarget=3Dultra  -I../../libnbcompat -c /opt/pkg.obj/bmake/arch.c
> > "/opt/pkg.obj/bmake/make.h", line 99: cannot find include file:
> > <sys/cdefs.h> "/opt/pkg.obj/bmake/arch.c", line 562: undefined symbol:
> > SARMAG "/opt/pkg.obj/bmake/arch.c", line 566: incomplete struct/union/e=
num
> > ar_hdr: arh "/opt/pkg.obj/bmake/arch.c", line 591: undefined struct/uni=
on
> > member: ar_name
> >=20
> > ... and so on.
> >=20
> > Anyone knows a fix??
>=20
> Seems like CFLAGS gets being set in your mk.conf, at least that was the
> problem for me when I tried to bootstrap in a chroot with the scripts
> from http://www.netctl.net/pkgsrc_solaris.html.
>=20
> I commented out the lines in /opt/sandbox/scripts/mk.solaris.conf that
> set CFLAGS during the bootstrap and the build succeeded.
>=20
> Joachim

Hmm... I used to have CFLAGS+=3D in my mk.conf but this was propagating unw=
anted
compiler flags to CXXFLAGS, so I changed it to CFLAGS=3D so may be this is
causing problems. I'll check this out when I get home from work.