Subject: Re: 1.6.1 compile
To: Bill Studenmund <wrstuden@netbsd.org>
From: Joe Laffey <joe@laffeycomputer.com>
List: port-macppc
Date: 04/22/2003 21:30:45
On Tue, 22 Apr 2003, Bill Studenmund wrote:

> On Wed, 16 Apr 2003, Joe Laffey wrote:
>
> > I am trying to build.sh on netbsd-1-6-PATCH001-RELEASE on macppc.
> >
> > I run into this problem:
> >
> > /usr/obj/tools/tools.NetBSD-1.6.1-powerpc/bin/powerpc--netbsd-ld -s -N
> > -Ttext 600000 -Bstatic -o ofwboot.el1  Locore.o ofdev.o hfs.o net.o
> > netif_of.o alloc.o vers.o ofwmagic.o boot1.o
> > /usr/obj/sys/arch/macppc/stand/ofwboot/lib/sa/libsa.a
> > /usr/obj/sys/arch/macppc/stand/ofwboot/lib/z/libz.a
> > /usr/obj/sys/arch/macppc/stand/ofwboot/lib/kern/libkern.a
> > Locore.o: In function `_start':
> > Locore.o(.text+0x68): undefined reference to `startup'
> >
> > *** Error code 1
> >
> > Stop.
> > nbmake: stopped in /home/src/sys/arch/macppc/stand/ofwboot
> >
> >
> > Anyone know where that symbol is supposed to be? I understand the error (I
> > do C). But I am not familiar enough with the code to know where to look
> > first.
>
> Uhm, in the tree I just checked out, it was about 3/4ths of a page lower
> in Locore.c. ??


Yeah, I found it in there. It turns out I had some strange CFLAGS active
during that compile. I cleaned up my environment, cleaned up /etc/mk.conf
and everything built fine.


--
Joe Laffey              |  Want to convert subnet masks between different
LAFFEY Computer Imaging |  notations, or figure the number of IPs in a block?
St. Louis, MO           |  Whatmask-It's FREE - www.laffeycomputer.com/wm.html
------------------------------------------------------------------------------