Subject: Re: Problems compiling anything in /usr/src
To: Manuel Bouyer <bouyer@antioche.lip6.fr>
From: Nate Johnston <natej@broadwing.com>
List: netbsd-help
Date: 02/04/2000 13:47:32
On Thu, 3 Feb 2000, Manuel Bouyer wrote:

> You want to do a 'make build' in /usr/src.

I did this.  The make died a number of places - aparrently it does a 'make
clean' first and it tried to delete a number of files that were actually
directories.  I think it thought they were binaries.  Here are the ones I
remember:

/usr/src/usr.sbin/mrouted/mrouted/
/usr/src/gnu/usr/bin/gdb/gdb/
/usr/src/gnu/gnu/usr.bin/grep/grep/

After I moved those directories away to try and get a quick fix to my
problem, the make progressed until it died on the same error as before.

I have now also downloaded the contents of
ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-release/tar_files and I get the
same error.  

all ===> lib
all ===> lib/csu
all ===> lib/csu/i386_elf
cc -O2 -fPIC -Werror   -DLIBC_SCCS -DPIC -DDYNAMIC -DELFSIZE=32
-I/usr/src/lib/csu/i386_elf/../../../libexec/ld.elf_so
-I/usr/src/lib/csu/i386_elf/../common_elf -c -DCRT0 crt0.c -o crt0.o
In file included from /usr/src/lib/csu/i386_elf/../common_elf/common.h:41,
                 from crt0.c:35:
/usr/src/lib/csu/i386_elf/../../../libexec/ld.elf_so/rtld.h:165: field
`linkmap' has incomplete type
*** Error code 1
[compile dies]

The tools that are currently broken (like ps, w, and top) all die this
way:

make: don't know how to make /usr/lib/crtbegin.o. Stop

Again, thanks to all for helping me.  I feel honored to be a part of this
community.

--N.