From owner-freebsd-questions Sat Nov 28 18:08:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA09496 for freebsd-questions-outgoing; Sat, 28 Nov 1998 18:08:08 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA09475 for ; Sat, 28 Nov 1998 18:08:04 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id MAA04163; Sun, 29 Nov 1998 12:37:40 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id MAA10213; Sun, 29 Nov 1998 12:37:39 +1030 (CST) Message-ID: <19981129123738.V6182@freebie.lemis.com> Date: Sun, 29 Nov 1998 12:37:38 +1030 From: Greg Lehey To: Andrew , questions@FreeBSD.ORG Subject: Re: /usr/lib/crt0.o & freebsd 3.0-release References: <19981128174357.A3586@apogee.whack.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <19981128174357.A3586@apogee.whack.org>; from Andrew on Sat, Nov 28, 1998 at 05:43:57PM -0800 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Saturday, 28 November 1998 at 17:43:57 -0800, Andrew wrote: > Hello all, > > Upon installing freebsd 3.0-release and trying to > compile gcc-2.8.1, I find that /usr/lib/crt0.o is > missing/moved to either /usr/lib/aout/crt0.o -or- > /usr/lib/crt1.o > > Which one should I use... The linker will decide for you. > Is this fixed in 3.0-current... There's nothing to fix: $ file /usr/lib/crt1.o /usr/lib/aout/crt0.o /usr/lib/crt1.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (FreeBSD), not stripped /usr/lib/aout/crt0.o: FreeBSD/i386 object not stripped If you're linking an a.out executable, the linker will choose /usr/lib/aout/crt0.o. If you're linking an ELF executable, the linker will choose /usr/lib/crt1.o. > Now i am wondering what else is going to cause gcc > to fail to compile? (Actually, this is the first > OS I have ever run where, out of the box, gcc would > not compile... ouch!) It looks like you're describing a possible (but incorrect) reason for a problem you haven't described. Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message