From owner-freebsd-amd64@FreeBSD.ORG Wed Nov 24 07:06:56 2004 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2221816A4CE for ; Wed, 24 Nov 2004 07:06:56 +0000 (GMT) Received: from manor.msen.com (manor.msen.com [148.59.4.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id ACF8C43D41 for ; Wed, 24 Nov 2004 07:06:55 +0000 (GMT) (envelope-from wayne@manor.msen.com) Received: from manor.msen.com (localhost [127.0.0.1]) by manor.msen.com (8.12.9p2/8.12.9) with ESMTP id iAO76qO7030581 for ; Wed, 24 Nov 2004 02:06:54 -0500 (EST) (envelope-from wayne@manor.msen.com) Received: (from wayne@localhost) by manor.msen.com (8.12.9p2/8.12.9/Submit) id iAO76qb5030580 for freebsd-amd64@freebsd.org; Wed, 24 Nov 2004 02:06:52 -0500 (EST) (envelope-from wayne) Date: Wed, 24 Nov 2004 02:06:52 -0500 From: "Michael R. Wayne" To: freebsd-amd64@freebsd.org Message-ID: <20041124070652.GT49800@manor.msen.com> Mail-Followup-To: freebsd-amd64@freebsd.org References: <20041116052630.GD49800@manor.msen.com> <20041120014424.GI20068@dragon.nuxi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041120014424.GI20068@dragon.nuxi.com> User-Agent: Mutt/1.4.2.1i Subject: Re: How to use older libs in 32bit mode? X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Nov 2004 07:06:56 -0000 On Fri, Nov 19, 2004 at 05:44:24PM -0800, David O'Brien wrote: > On Tue, Nov 16, 2004 at 12:26:30AM -0500, Michael R. Wayne wrote: > > I'm trying to use a 32 bit executable which uses older libraries > > (e.g. libm.so.2) and can not easily be regenerated. > > This should be fine. You just want *.so.*. > > > I've tried copying the libs from a i386 5.3 RELEASE system into > > /usr/lib32 with no success. > > Please give details about "no success" -- that doesn't give us much to go > on. Sorry. No success as in it cores. I reduced the problem down to a very simple case: > cat hello.c #include main () { printf("Hello world\n"); } Put this onto a 5.3 RELEASE i386 platform and compiled it: > file hello hello: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 5.3.0, dynamically linked (uses shared libs), not stripped It won't run though: > ./hello Segmentation fault (core dumped) I did run the script to build the libs: > ls /usr/lib32 | wc 393 393 5069 /\/\ \/\/