Subject: Re: gnu install
To: Daniel R. Killoran,Ph.D. <drk@shore.net>
From: Bill Studenmund <wrstuden@nas.nasa.gov>
List: port-mac68k
Date: 08/20/1999 12:44:17
On Fri, 20 Aug 1999, Daniel R. Killoran,Ph.D. wrote:

> I have been attempting, with limited success, to install the gnu programs
> that come with NetBSD. I am not sure this is the correct forum (should I be
> inquiring of the gnu people? and if so, where?), but this is the situation:

Why?

> After installing gnusrc.tgz under /, I cd'ed to /usr/src/gnu/dist and,
> following the instructions of the README, I typed
> 
> ./configure
> 
> and got
> 
> Configuring for a m68k-apple-netbsd1.4 host.
> Created "Makefile" in /usr/src/gnu/dist
> Links are now set up to build a native compiler for m68k-apple-netbsd1.4
> configure: warning: mmalloc not found - building without it
> test: -O2: unknown operand
> sed: ./tests/Makefile.in: No such file or directory
> sed: ./m4/Makefile.in: No such file or directory
> sed: ./djgpp/Makefile.in: No such file or directory
> sed: ./vms/Makefile.in: No such file or directory
> sed: ./bootstrap/Makefile.in: No such file or directory
> 
> Not knowing what, if anything, I should do about this, I tried
> 
> make
> 
> and after a lot of stuff, I got
> 
> make all-recursive
> Making all in doc
> rm -f bfd-tmp.h
> cp bfd-in3.h bfd-tmp.h
> /bin/sh ./../move-if-change bfd-tmp.h bfd.h
> rm -f bfd-tmp.h
> touch stmp-bfd-h
> /bin/sh ./libtool --mode=compile gcc -O2 -DHAVE_CONFIG_H -I. -I. -I.
> -D_GNU_SOURCE  -DNETBSD_C
> ORE   -I. -I. -I./../include   -g -c archive.c
> ./libtool: Can't open ./libtool
> *** Error code 2
> 
> Stop.
> *** Error code 1
> 
> Stop.

Weird.

> I tried going into /usr/src/gnu/lib and typing "make", I got, after MANY
> hours of compiling and other futzing around:
> 
> all ===> libstdc++/config
> rootme=/usr/src/gnu/lib/libstdc++/config CC="cc" CXX="c++" CONFIG_NM="nm"
> CPP="cc -E -nostdin
> c -idirafter /usr/include"  /bin/sh
> /usr/src/gnu/lib/libstdc++/config/../../../dist/libio/gen-
> params LIB_VERSION=2.9.0 >_G_config.h
> all ===> libstdc++/std
> all ===> libstdc++/stl
> all ===> libstdc++/io
> Aug 18 03:15:08  sendmail[21683]: NOQUEUE: SYSERR(root): hash map "Alias0":
> unsafe map file
> /etc/aliases: No such file or directory
> Aug 18 03:15:08  sendmail[21683]: NOQUEUE: SYSERR(root): hash map "Alias0":
> unsafe map file /e
> tc/aliases: No such file or directory
> Aug 18 03:15:13  sendmail[21690]: NOQUEUE: SYSERR(root): hash map "Alias0":
> unsafe map file /e
> tc/aliases: No such file or directory
> Aug 18 03:15:13  sendmail[21690]: NOQUEUE: SYSERR(root): hash map "Alias0":
> unsafe map file /e
> tc/aliases: No such file or directory
> Aug 18 03:28:07  sendmail[22746]: NOQUEUE: SYSERR(root): hash map "Alias0":
> unsafe map file /e
> tc/aliases: No such file or directory
> Aug 18 03:28:07  sendmail[22746]: NOQUEUE: SYSERR(root): hash map "Alias0":
> unsafe map file /e
> tc/aliases: No such file or directory

Looks fine. All the errors you report are sendmail waking up and being
upset that your aliases file isn't ok. Run "newaliases" and it should be
fine.

> Re-trying the "make" in /usr/src/gnu/dist gave:

Don't. The only reason to make stuff out of here is to build
cross-compilers.

> make all-recursive
> Making all in doc
> /bin/sh ./libtool --mode=compile gcc -O2 -DHAVE_CONFIG_H -I. -I. -I.
> -D_GNU_SOURCE  -DNETBSD_C
> ORE   -I. -I. -I./../include   -g -c archive.c
> ./libtool: Can't open ./libtool
> *** Error code 2
> 
> Stop.
> *** Error code 1
> 
> Stop.
> 
> 
> What am I doing wrong? Is there some sort of cannonical order in which this
> stuff should be installed?

cd /usr/src
make build
(wait)

make build -j 10 would probably help too. When the build gets to where
it's making things in parallel, this will fork 10 processes to make stuff.

Also, you'll probably want to make with DESTDIR set so that you don't
overwrite your running system with the build. You also might have to
re-build some of the compilation tools. Not sure.

Take care,

Bill