From owner-freebsd-amd64@FreeBSD.ORG Tue Jan 17 08:54:41 2006 Return-Path: X-Original-To: freebsd-amd64@freebsd.org 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 14F5216A41F for ; Tue, 17 Jan 2006 08:54:41 +0000 (GMT) (envelope-from danny@cs.huji.ac.il) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 48BA043D75 for ; Tue, 17 Jan 2006 08:54:37 +0000 (GMT) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by cs1.cs.huji.ac.il with esmtp id 1Eymbr-000Ou9-2s; Tue, 17 Jan 2006 10:54:35 +0200 X-Mailer: exmh version 2.7.0 06/18/2004 with nmh-1.0.4 To: "Larry Rosenman" In-Reply-To: Message from "Larry Rosenman" of "Mon, 16 Jan 2006 22:04:34 CST." <004601c61b1b$20b2e620$68c8a8c0@lerctr.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 17 Jan 2006 10:54:34 +0200 From: Danny Braniss Message-ID: Cc: freebsd-amd64@freebsd.org, kael@sonic.net Subject: Re: Docs for running 32-bit apps? X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jan 2006 08:54:41 -0000 > Kael Fischer wrote: > > > > After install32, I had to run 'ldconfig -32 /usr/lib32'. > > > > This brings up a point I wanted to ask about. Shouldn't the system > Startup scripts do the ldconfig -32 /usr/lib32 if /usr/lib32 exists? from some test runs i did: (all tests on FreeBSD - stable amd64) - file a.out a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically linked (uses shared libs), not stripped - did NOT do ldconfig -32 /usr/lib32 and a 32bit a.out run ok - /usr/bin/ldd a.out ldd: a.out: can't read program header ldd: a.out: not a dynamic executable - using a 32bit ldd actually runs/executes a.out could someone shed some light at this magic? :-) danny