Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Aug 1995 21:48:14 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        asami@cs.berkeley.edu, bde@zeta.org.au
Cc:        current@freebsd.org
Subject:   Re: "ld: /usr/lib/crt0.o: Undefined error: 0" problem solved
Message-ID:  <199508081148.VAA06057@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
> * >>> cc -o hexrand hexrand.c <&-
> * >ld: /usr/lib/crt0.o: Undefined error: 0
> * >=======
> * 
> * Untested fix:

>Sorry, I tried the patch but it still fails with the same error.... :<

Apparently the author of ld didn't understand U*ix error codes :-).  There
are are at least 2 more cases (one in ld.c, one more in lib.c where there
is a bogus check check for `fd > 0').  Perhaps ld supports writing to
stdout (this should have been the default) so it is an error for stdout
to be closed.  ld could detect the problem early and open descriptor 0
to /dev/null if it doesn't really care.

Bruce



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