pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bootstrap is broken on Solaris



On Tue, 04 Apr 2006 13:21:34 +0200
Joachim König-Baltes <joachim.koenig-baltes%emesgarten.de@localhost> wrote:

> On Sun, 2 Apr 2006 segv%netctl.net@localhost wrote:
> 
> > I've just updated pkgsrc tree and trying to bootstrap on Solaris
> > 
> > CC="cc" LIBC= MAKEFLAGS=
> > MAKESYSPATH=`pwd`/mk:mk:/opt/pkg/share/mk:/usr/share/mk:/usr/local/share/mk:/opt/share/mk
> >  ./bmake.boot
> > -f Makefile /opt/SUNWspro/bin/cc -xO3 -xtarget=ultra -Xa -xc99=all -xO3
> > -xtarget=ultra  -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/enum
> > ar_hdr: arh "/opt/pkg.obj/bmake/arch.c", line 591: undefined struct/union
> > 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.
> 
> Joachim
> 
> 

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



Home | Main Index | Thread Index | Old Index