Date: Tue, 8 Aug 1995 16:04:00 +1000 From: Bruce Evans <bde@zeta.org.au> To: asami@cs.berkeley.edu, current@freebsd.org Subject: Re: "ld: /usr/lib/crt0.o: Undefined error: 0" problem solved Message-ID: <199508080604.QAA26589@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>P.S. A simpler example:
>=======
>>> cc -o hexrand hexrand.c
>>> cc -o hexrand hexrand.c <&-
>ld: /usr/lib/crt0.o: Undefined error: 0
>=======
Untested fix:
*** lib.c~ Wed May 31 18:25:17 1995
--- lib.c Tue Aug 8 16:01:52 1995
***************
*** 831,835 ****
fname = findshlib(p->filename, &major, &minor, 1);
! if (fname && (fd = open(fname, O_RDONLY, 0)) > 0) {
p->filename = fname;
p->lib_major = major;
--- 831,835 ----
fname = findshlib(p->filename, &major, &minor, 1);
! if (fname && (fd = open(fname, O_RDONLY, 0)) >= 0) {
p->filename = fname;
p->lib_major = major;
Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199508080604.QAA26589>
