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/05/2006 13:18:08
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
>=20
>=20

Yeah, seems like bmake doesn't like when CFLAGS is set unconditionally. I u=
pdated my pkgsrc guide to include a note about that.