Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Aug 1995 16:05:58 -0700
From:      asami@cs.berkeley.edu (Satoshi Asami)
To:        current@freebsd.org
Subject:   /usr/lib/crt0.o: Undefined error: 0
Message-ID:  <199508072305.QAA15984@forgery.CS.Berkeley.EDU>

next in thread | raw e-mail | index | archive | help
What does "ld: /usr/lib/crt0.o: Undefined error: 0" mean?  When I do a
make world, it always dies in the "Rebuilding tools needed to build
the libraries" section with this error.

Sample script:

-----------
===> rtld
rm -f .depend
files="/y/b/src/gnu/usr.bin/ld/rtld/../i386/mdprologue.S";  if [ "$files" != "" ]; then  mkdep -a  -I/y/b/src/gnu/usr.bin/ld/rtld/.. -I/y/b/src/gnu/usr.bin/ld/rtld -I/y/b/src/gnu/usr.bin/ld/rtld/../i386 -DRTLD  $files;  fi
files="/y/b/src/gnu/usr.bin/ld/rtld/rtld.c /y/b/src/gnu/usr.bin/ld/rtld/malloc.c /y/b/src/gnu/usr.bin/ld/rtld/../shlib.c /y/b/src/gnu/usr.bin/ld/rtld/../etc.c /y/b/src/gnu/usr.bin/ld/rtld/../i386/md.c";  if [ "$files" != "" ]; then  mkdep -a  -I/y/b/src/gnu/usr.bin/ld/rtld/.. -I/y/b/src/gnu/usr.bin/ld/rtld -I/y/b/src/gnu/usr.bin/ld/rtld/../i386 -DRTLD $files;  fi
files="  ";  if [ "$files" != "  " ]; then  mkdep -a   -I/y/b/src/gnu/usr.bin/ld/rtld/.. -I/y/b/src/gnu/usr.bin/ld/rtld -I/y/b/src/gnu/usr.bin/ld/rtld/../i386 -DRTLD $files;  fi
cc -O2 -m486 -pipe -I/y/b/src/gnu/usr.bin/ld -I/y/b/src/gnu/usr.bin/ld/i386   -c /y/b/src/gnu/usr.bin/ld/ld.c
cc -O2 -m486 -pipe -I/y/b/src/gnu/usr.bin/ld -I/y/b/src/gnu/usr.bin/ld/i386   -c /y/b/src/gnu/usr.bin/ld/symbol.c
cc -O2 -m486 -pipe -I/y/b/src/gnu/usr.bin/ld -I/y/b/src/gnu/usr.bin/ld/i386   -c /y/b/src/gnu/usr.bin/ld/lib.c
cc -O2 -m486 -pipe -I/y/b/src/gnu/usr.bin/ld -I/y/b/src/gnu/usr.bin/ld/i386   -c /y/b/src/gnu/usr.bin/ld/shlib.c
cc -O2 -m486 -pipe -I/y/b/src/gnu/usr.bin/ld -I/y/b/src/gnu/usr.bin/ld/i386   -c /y/b/src/gnu/usr.bin/ld/warnings.c
cc -O2 -m486 -pipe -I/y/b/src/gnu/usr.bin/ld -I/y/b/src/gnu/usr.bin/ld/i386   -c /y/b/src/gnu/usr.bin/ld/etc.c
cc -O2 -m486 -pipe -I/y/b/src/gnu/usr.bin/ld -I/y/b/src/gnu/usr.bin/ld/i386   -c /y/b/src/gnu/usr.bin/ld/rrs.c
cc -O2 -m486 -pipe -I/y/b/src/gnu/usr.bin/ld -I/y/b/src/gnu/usr.bin/ld/i386   -c /y/b/src/gnu/usr.bin/ld/xbits.c
cc -O2 -m486 -pipe -I/y/b/src/gnu/usr.bin/ld -I/y/b/src/gnu/usr.bin/ld/i386   -c /y/b/src/gnu/usr.bin/ld/i386/md.c
cc -O2 -m486 -pipe -I/y/b/src/gnu/usr.bin/ld -I/y/b/src/gnu/usr.bin/ld/i386    -Xlinker -Bstatic -o ld ld.o symbol.o lib.o shlib.o warnings.o etc.o rrs.o xbits.o md.o  -lgnumalloc
ld: /usr/lib/crt0.o: Undefined error: 0
*** Error code 1

Stop.
*** Error code 1

Stop.
-----------

This is with a -current only a few hours old, but I've had this
problem since last Thursday or so.

If it matters, my first make world blew up because of the lib/libftp
beforeinstall thing (since fixed).  I read the mail about having to
build secure/lib/libtelnet once by hand so I went into there and did a
make depend all install.  Well, the next world blew up again (for the
reasons already well discussed), and since then, I get stuck every
time it goes into building rtld.

Actually, my memory is getting a little hazy around here, the manual
building of secure/lib/libtelnt may have been after the second make
world failure.

I did try to rebuild crt0.o from csu/i386 and the whole lib/
subdirectory, it's still the same.  If I remove ld from src/Makefile,
it fails in ar with the exact same error.

The strange thing is, if I do a "make depend all install cleandir obj"
from the command line in one of these directories, it works (but it
fails again at the next make world).  Is there a special variable
passed from src/Makefile to the submakes or something?

Satoshi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199508072305.QAA15984>