Subject: Re: Switching form 1.5.2 to -current
To: None <port-macppc@netbsd.org>
From: emanuel stiebler <emu@ecubics.com>
List: port-macppc
Date: 10/02/2001 13:02:38
Thilo Manske wrote:
> 
> On Tue, Oct 02 2001 at 12:49:00 -0600, emanuel stiebler wrote:
> >
> > Thilo Manske wrote:
> > >
> > > On Tue, Oct 02 2001 at 12:23:52 -0600, emanuel stiebler wrote:
> > > > So compile a new "config" ? What I got there is:
> > > >
> > > > starmax1# pwd
> > > > /usr/src/usr.sbin/config
> > > > starmax1# make
> > > > make: don't know how to make /usr/destdir/usr/lib/crt0.o. Stop
> > > > starmax1#
> > > >
> > > > Any hints ?
> > > Is it possible that you did a "make build" some time ago with DESTDIR set to
> > > "/usr/destdir" and then deleted or unmounted that dir?
> >
> > Nope. Absolutely fresh install of NetBSD-1.5.2 few hours ago.
> > And all I've done is copy the -current into /usr/src.
> >
> > > Remove the .depend file and then try again.
> >
> > There is no .depend file :-(
> >
> > cheers & thanks
> >
> > P.S. few environment stuff:
> >
> [...]
> > DESTDIR=/usr/destdir
> ^^^^^^^^^^^^^^^^^
> Then unset DESTDIR and try again.

Ok I did, and now I get:

starmax1# make depend
mkdep -a  -I/usr/src/usr.sbin/config -I. files.c hash.c main.c
mkheaders.c mkioc
onf.c mkmakefile.c mkswap.c pack.c sem.c util.c scan.c gram.c
starmax1# make
cc -O  -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wno-uninitializ
ed -Werror   -I/usr/src/usr.sbin/config -I. -c files.c
cc -O  -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wno-uninitializ
ed -Werror   -I/usr/src/usr.sbin/config -I. -c gram.c
cc -O  -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wno-uninitializ
ed -Werror   -I/usr/src/usr.sbin/config -I. -c hash.c
cc -O  -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wno-uninitializ
ed -Werror   -I/usr/src/usr.sbin/config -I. -c main.c
cc -O  -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wno-uninitializ
ed -Werror   -I/usr/src/usr.sbin/config -I. -c mkheaders.c
cc -O  -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wno-uninitializ
ed -Werror   -I/usr/src/usr.sbin/config -I. -c mkioconf.c
cc -O  -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wno-uninitializ
ed -Werror   -I/usr/src/usr.sbin/config -I. -c mkmakefile.c
cc -O  -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wno-uninitializ
ed -Werror   -I/usr/src/usr.sbin/config -I. -c mkswap.c
cc -O  -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wno-uninitializ
ed -Werror   -I/usr/src/usr.sbin/config -I. -c pack.c
cc -O  -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wno-uninitializ
ed -Werror   -I/usr/src/usr.sbin/config -I. -c scan.c
cc -O  -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wno-uninitializ
ed -Werror   -I/usr/src/usr.sbin/config -I. -c sem.c
cc -O  -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wno-uninitializ
ed -Werror   -I/usr/src/usr.sbin/config -I. -c util.c
cc   -o config files.o gram.o hash.o main.o mkheaders.o mkioconf.o
mkmakefile.o
mkswap.o pack.o scan.o sem.o util.o
main.o: In function `main':
main.o(.text+0x28): undefined reference to `setprogname'
collect2: ld returned 1 exit status
*** Error code 1

But looks much better now.;-)