From owner-freebsd-stable Mon Dec 20 5:47:25 1999 Delivered-To: freebsd-stable@freebsd.org Received: from milf18.bus.net (milf18.bus.net [207.41.25.18]) by hub.freebsd.org (Postfix) with ESMTP id 5DD0D14C02 for ; Mon, 20 Dec 1999 05:47:22 -0800 (PST) (envelope-from cao@milf18.bus.net) Received: (from cao@localhost) by milf18.bus.net (8.8.8/8.8.8) id IAA19373; Mon, 20 Dec 1999 08:47:06 -0500 (EST) (envelope-from cao) Date: Mon, 20 Dec 1999 08:47:05 -0500 From: "Chuck O'Donnell" To: Eugene Grosbein Cc: freebsd-stable@FreeBSD.ORG Subject: Re: 3.3-STABLE & aout Message-ID: <19991220084705.B19220@bus.net> References: <385DCFED.85742D2E@svzserv.kemerovo.su> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/0.96.3i In-Reply-To: <385DCFED.85742D2E@svzserv.kemerovo.su>; from Eugene Grosbein on Mon, Dec 20, 1999 at 01:42:53PM +0700 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Dec 20, 1999 at 01:42:53PM +0700, Eugene Grosbein wrote: > Hello! > > How do I make aout binary on -STABLE? > I installed compat20, compat21 and compat22, then tried > # cc -aout -o hello hello.c > (it's "Hello world"-program :) > > I get 'ld: crt0.o: no such file or directory' error message. > It seems there is no crt0.o file at all. > The compat distributions only install the dynamic libraries for you. You also need the static libs to compile aout. You can either grab these from a running 2.2.x system, or untar the lib distribution from a 2.2.8 CD into /usr/lib/compat/aout. The lib dist is `/cdrom/bin/bin.??' (on a 2.2.8 cdrom anyway). It's one big tar file broken into smaller chunks, so you have to cat it together before untarring it. Try something like: cat /cdrom/bin/bin.?? | tar xzpf - -C /tmp 'usr/lib/*' for lib in `find /tmp/usr/lib -type f`; do if ! test -f /usr/lib/compat/aout/`basename $lib`; then cp -p $lib /usr/lib/compat/aout/ fi done rm -rf /tmp/usr You may need to rerun ldconfig at this point, but I could be mistaken. If you can afford it, a reboot isn't a bad idea, as the rc files call ldconfig for you at boot time with the correct paths. good luck. chuck p.s. i think freebsd-questions may be a better forum for these types of questions To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message