Subject: build fails in gnu/libexec/uucp/cu
To: None <netbsd-help@netbsd.org>
From: Marko =?iso-8859-1?Q?Sch=FCtz?= <MarkoSchuetz@web.de>
List: netbsd-help
Date: 12/17/2002 13:34:16
I have a 1.6K system installed from the 20021002 snapshot on which I
am trying to build from `cvs update`d sources. I have tried this on a
couple of occasions with freshly updated source, but it keeps failing. 

./build.sh -m i386 -d -r -D /usr/sandbox -T /usr/nbtmp/tools

/usr/nbtmp/tools/bin/i386--netbsdelf-gcc -O2 -O3 -mcpu=i686 -march=i686  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-uninitialized -Wno-format-zero-length -Werror  -I/usr/src/gnu/libexec/uucp/cu/../common_sources -DVERSION=\"1.06.1\" -DPOSIX_HEADERS -nostdinc -isystem /usr/sandbox/usr/include  -c /usr/src/gnu/libexec/uucp/cu/../common_sources/copy.c
/usr/nbtmp/tools/bin/i386--netbsdelf-gcc   -o cu -nostdlib  -Wl,-rpath-link,/usr/sandbox/lib:/usr/sandbox/usr/lib  -L/usr/sandbox/lib /usr/sandbox/usr/lib/crt0.o /usr/sandbox/usr/lib/crti.o /usr/sandbox/usr/lib/crtbegin.o cu.o prot.o log.o chat.o conn.o copy.o /usr/src/gnu/libexec/uucp/libunix/obj.i386/libunix.a /usr/src/gnu/libexec/uucp/libuuconf/obj.i386/libuuconf.a /usr/src/gnu/libexec/uucp/libuucp/obj.i386/libuucp.a -L/usr/sandbox/usr/lib  -lgcc -lc -lgcc /usr/sandbox/usr/lib/crtend.o /usr/sandbox/usr/lib/crtn.o
/usr/sandbox/usr/lib/crtbegin.o(.fini+0x1): undefined reference to `__do_global_dtors_aux'
collect2: ld returned 1 exit status
*** Error code 1

In /etc/mk.conf I have

BSDOBJDIR=/usr/nbtmp/bsdobj
TOOLDIR=/usr/nbtmp/tools
BSDSRCDIR=/usr/src
COPT+=-O9 -march=i686 -mcpu=i686
CXXFLAGS+= -O3 -mcpu=i686 -march=i686
CFLAGS+= -O3 -mcpu=i686 -march=i686
MAKECONF=/etc/mk.conf
MKCATPAGES=yes
MKCRYPTO=yes
MKDOC=yes
MKINFO=yes
MKLINT=yes
MKMAN=yes
MKOBJ=yes
MKPIC=yes
MKPICINSTALL=yes
MKPROFILE=yes
MKSHARE=yes
MKOBJDIRS=yes
OBJMACHINE=yes

# ************************************************************************
# Options for NetBSD package system                                      *
# ************************************************************************

[..]

Any help would be appreciated.

Marko