Subject: Re: undefined reference to `__do_global_dtors_aux' when building -current
To: D'Arcy J.M. Cain <darcy@druid.net>
From: Perry E. Metzger <perry@piermont.com>
List: current-users
Date: 02/07/2003 16:59:40
darcy@druid.net (D'Arcy J.M. Cain) writes:
> > Can you cut and paste the last dozen lines printed during the build
> > before the bomb?
> 
> Sure can.

Note that, for whatever odd reason, you are obviously NOT using the
tools from the tooldir for your build!

Have you set some option like USETOOLS=never in your mk.conf or
something?

Perry


> dependall ===> gnu/libexec/uucp/doc
> makeinfo  --no-split -o uucp.info /usr/NetBSD/cvs/src/gnu/libexec/uucp/doc/uucp.texi
> dependall ===> gnu/libexec/uucp/cu
> mkdep -a  -I/usr/NetBSD/cvs/src/gnu/libexec/uucp/cu/../common_sources -DVERSION=\"1.06.1\" -DPOSIX_HEADERS -nostdinc -isystem /usr/dest/usr/include  /usr/NetBSD/cvs/src/gnu/libexec/uucp/cu/cu.c /usr/NetBSD/cvs/src/gnu/libexec/uucp/cu/../common_sources/prot.c /usr/NetBSD/cvs/src/gnu/libexec/uucp/cu/../common_sources/log.c /usr/NetBSD/cvs/src/gnu/libexec/uucp/cu/../common_sources/chat.c /usr/NetBSD/cvs/src/gnu/libexec/uucp/cu/../common_sources/conn.c /usr/NetBSD/cvs/src/gnu/libexec/uucp/cu/../common_sources/copy.c
> rm -f .gdbinit
> echo "set solib-absolute-prefix /usr/dest" > .gdbinit
> cc -O2 -O9 -mcpu=i686 -march=i686 -O9 -mcpu=i686 -march=i686 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-uninitialized -Wno-format-zero-length -Werror  -I/usr/NetBSD/cvs/src/gnu/libexec/uucp/cu/../common_sources -DVERSION=\"1.06.1\" -DPOSIX_HEADERS -nostdinc -isystem /usr/dest/usr/include  -c /usr/NetBSD/cvs/src/gnu/libexec/uucp/cu/cu.c
> cc -O2 -O9 -mcpu=i686 -march=i686 -O9 -mcpu=i686 -march=i686 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-uninitialized -Wno-format-zero-length -Werror  -I/usr/NetBSD/cvs/src/gnu/libexec/uucp/cu/../common_sources -DVERSION=\"1.06.1\" -DPOSIX_HEADERS -nostdinc -isystem /usr/dest/usr/include  -c /usr/NetBSD/cvs/src/gnu/libexec/uucp/cu/../common_sources/prot.c
> cc -O2 -O9 -mcpu=i686 -march=i686 -O9 -mcpu=i686 -march=i686 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-uninitialized -Wno-format-zero-length -Werror  -I/usr/NetBSD/cvs/src/gnu/libexec/uucp/cu/../common_sources -DVERSION=\"1.06.1\" -DPOSIX_HEADERS -nostdinc -isystem /usr/dest/usr/include  -c /usr/NetBSD/cvs/src/gnu/libexec/uucp/cu/../common_sources/log.c
> cc -O2 -O9 -mcpu=i686 -march=i686 -O9 -mcpu=i686 -march=i686 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-uninitialized -Wno-format-zero-length -Werror  -I/usr/NetBSD/cvs/src/gnu/libexec/uucp/cu/../common_sources -DVERSION=\"1.06.1\" -DPOSIX_HEADERS -nostdinc -isystem /usr/dest/usr/include  -c /usr/NetBSD/cvs/src/gnu/libexec/uucp/cu/../common_sources/chat.c
> cc -O2 -O9 -mcpu=i686 -march=i686 -O9 -mcpu=i686 -march=i686 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-uninitialized -Wno-format-zero-length -Werror  -I/usr/NetBSD/cvs/src/gnu/libexec/uucp/cu/../common_sources -DVERSION=\"1.06.1\" -DPOSIX_HEADERS -nostdinc -isystem /usr/dest/usr/include  -c /usr/NetBSD/cvs/src/gnu/libexec/uucp/cu/../common_sources/conn.c
> cc -O2 -O9 -mcpu=i686 -march=i686 -O9 -mcpu=i686 -march=i686 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-uninitialized -Wno-format-zero-length -Werror  -I/usr/NetBSD/cvs/src/gnu/libexec/uucp/cu/../common_sources -DVERSION=\"1.06.1\" -DPOSIX_HEADERS -nostdinc -isystem /usr/dest/usr/include  -c /usr/NetBSD/cvs/src/gnu/libexec/uucp/cu/../common_sources/copy.c
> cc   -o cu -nostdlib  -Wl,-rpath-link,/usr/dest/lib:/usr/dest/usr/lib  -L/usr/dest/lib /usr/dest/usr/lib/crt0.o /usr/dest/usr/lib/crti.o /usr/dest/usr/lib/crtbegin.o cu.o prot.o log.o chat.o conn.o copy.o /usr/NetBSD/cvs/src/gnu/libexec/uucp/libunix/obj.i386/libunix.a /usr/NetBSD/cvs/src/gnu/libexec/uucp/libuuconf/obj.i386/libuuconf.a /usr/NetBSD/cvs/src/gnu/libexec/uucp/libuucp/obj.i386/libuucp.a -L/usr/dest/usr/lib  -lgcc -lc -lgcc /usr/dest/usr/lib/crtend.o /usr/dest/usr/lib/crtn.o
> /usr/dest/usr/lib/crtbegin.o(.fini+0x1): undefined reference to `__do_global_dtors_aux'
> *** Error code 1
> 
> -- 
> D'Arcy J.M. Cain <darcy@{druid|vex}.net>   |  Democracy is three wolves
> http://www.druid.net/darcy/                |  and a sheep voting on
> +1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.
> 

-- 
Perry E. Metzger		perry@piermont.com