Subject: Re: Problems compiling anything in /usr/src
To: None <njohnston@broadwing.com>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: netbsd-help
Date: 02/05/2000 12:33:49
On Fri, Feb 04, 2000 at 01:47:32PM -0500, Nate Johnston wrote:
> 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.  

These directories shouldn't be there. Did you untar the tar files
over an existing tree ? If so try removing the tree before untarring.

> 
> 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]

Was this from a 'make build' ? You *need* to do a 'make build' first, it
will install a number of things required to compile.

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--