Subject: Re: crt0.c(.text+0xd4): undefined reference to `_fini'
To: Ted Spradley <tsprad@spradley.tmi.net>
From: Todd Vierling <tv@pobox.com>
List: current-users
Date: 10/17/1998 21:46:09
On Sat, 17 Oct 1998, Ted Spradley wrote:

: 'make buildworld' on my AlphaStation 200 fails with this:

: cc  -static -o doexec -nostdlib -L/scratch/netbsd/test/usr/lib 
: /scratch/netbsd/test/usr/lib/crt0.o /scratch/netbsd/test/usr/lib/crtbegin.
: o doexec.o  -lgcc -lc -lgcc /scratch/netbsd/test/usr/lib/crtend.o
: cc -O  -Werror   -nostdinc -idirafter /scratch/netbsd/test/usr/include  
: -nostdlib -L/scratch/netbsd/test/usr/lib -static -o goodaout 
: /source/netbsd/regress/sys/kern/execve/tests/goodaout.c 
: /scratch/netbsd/test/usr/lib/crt0.o -lgcc -lc
: /scratch/netbsd/test/usr/lib/crt0.o: In function `__start':
: crt0.c(.text+0xd4): undefined reference to `_fini'
: crt0.c(.text+0xe8): undefined reference to `_init'
: crt0.c(.text+0xec): undefined reference to `_init'
: collect2: ld returned 1 exit status

This is because of some of the things -nostdlib does.  This is "kind of" a
bug, but part of the source tree relies on this behavior.

I've been looking into this.  For now, please ignore this regression error.
You may need to edit src/Makefile to take out the "regress" subdir.

-- 
-- Todd Vierling (Personal tv@pobox.com; Bus. todd_vierling@xn.xerox.com)