Subject: Re: bootstrap is broken on Solaris
To: Joachim =?ISO-8859-1?Q?K=F6nig-Baltes?= <firstname.lastname@example.org>
From: None <email@example.com>
Date: 04/05/2006 13:18:08
On Tue, 04 Apr 2006 13:21:34 +0200
Joachim K=F6nig-Baltes <firstname.lastname@example.org> wrote:
> On Sun, 2 Apr 2006 email@example.com wrote:
> > I've just updated pkgsrc tree and trying to bootstrap on Solaris
> > CC=3D"cc" LIBC=3D MAKEFLAGS=3D
> > MAKESYSPATH=3D`pwd`/mk:mk:/opt/pkg/share/mk:/usr/share/mk:/usr/local/sh=
> > -f Makefile /opt/SUNWspro/bin/cc -xO3 -xtarget=3Dultra -Xa -xc99=3Dall =
> > -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=
> > ar_hdr: arh "/opt/pkg.obj/bmake/arch.c", line 591: undefined struct/uni=
> > member: ar_name
> > ... and so on.
> > Anyone knows a fix??
> 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.
> I commented out the lines in /opt/sandbox/scripts/mk.solaris.conf that
> set CFLAGS during the bootstrap and the build succeeded.
Yeah, seems like bmake doesn't like when CFLAGS is set unconditionally. I u=
pdated my pkgsrc guide to include a note about that.