From owner-freebsd-questions Wed Jun 27 4:55:58 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gull.mail.pas.earthlink.net (gull.mail.pas.earthlink.net [207.217.121.85]) by hub.freebsd.org (Postfix) with ESMTP id BF99037B406 for ; Wed, 27 Jun 2001 04:55:54 -0700 (PDT) (envelope-from dleimbac@earthlink.net) Received: from mutt.home.net (1Cust62.tnt1.starkville.ms.da.uu.net [63.30.107.62]) by gull.mail.pas.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id EAA26879; Wed, 27 Jun 2001 04:55:52 -0700 (PDT) Received: (from dave@localhost) by mutt.home.net (8.11.3/8.11.3) id f5RBxSr00481; Wed, 27 Jun 2001 06:59:28 -0500 (CDT) (envelope-from dave) Date: Wed, 27 Jun 2001 06:59:27 -0500 From: David Leimbach To: John Toon Cc: questions@freebsd.org Subject: Re: Linux Emulation Problems Message-ID: <20010627065927.A444@mutt.home.net> References: <3B39BDED.6070609@btinternet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B39BDED.6070609@btinternet.com>; from john.toon@btinternet.com on Wed, Jun 27, 2001 at 12:05:17PM +0100 X-Operating-System: FreeBSD mutt.home.net 4.3-RELEASE FreeBSD 4.3-RELEASE Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Are you sure the linux binaries you are trying to run are properly "branded" as linux binaries. man brandelf. Dave On Wed, Jun 27, 2001 at 12:05:17PM +0100, John Toon wrote: > Hi, > > I'm experiencing Linux emulation issues on my FreeBSD-4.1 setup. > Whenever I attempt to run a Linux binary, they try to access my FreeBSD > library /usr/X11R6/lib/libxalflaunch.so.0 - even for programs that > apparently have *no* need of this library (Linux version or otherwise). > In particular, neither the j2sdk-1_4_0-beta-linux-i386.bin archive > extracts, nor does does the setup program for the Linux binary of build > 627 of OpenOffice run correctly. For example, the setup program reports: > > ../setup: error in loading shared libraries: > /usr/X11R6/lib/libxalflaunch.so.0: ELF file OS ABI invalid. > > Doing a truss ./setup gives: > > linux_brk(0x0) = 1 (0x1) > linux_open("/usr/X11R6/lib/libxalflaunch.so.0",0,03001520044) = 3 (0x3) > linux_newfstat(3,0xbfbff518) = 2 (0x2) > read(0x3,0xbfbfe56c,0x1000) = 3 (0x3) > close(3) > = 1 (0x1) > ../setupwrite(2,0xbfbffc48,7) = 3 (0x3) > : error in loading shared libraries: write(2,0x18069820,37) = 3 (0x3) > /usr/X11R6/lib/libxalflaunch.so.0write(2,0xbfbff6fc,33) = 3 (0x3) > : write(2,0x18069816,2) = 3 (0x3) > ELF file OS ABI invalid.write(2,0x18068dc6,24) = 3 (0x3) > write(2,0x1806981b,0) = 3 (0x3) > write(2,0x1806981b,0) = 3 (0x3) > write(2,0x18069819,1) = 3 (0x3) > exit(0x7f) > process exit, rval = 32512 > > > The Linux compatibility kernel module linux.ko is apparently loaded > correctly: > > bash-2.04$ kldstat > Id Refs Address Size Name > 1 3 0xc0100000 26da84 kernel > 2 1 0xc131e000 17000 usb.ko > 4 1 0xc1349000 10000 linux.ko > > I tried reinstalling linux_base-6.1 to no effect. > > I'm not sure why I'm getting these problems - Linux emulation ran > perfectly the last time I had a FreeBSD-4.x release installed on my > computer. > > Anyone got any ideas/suggestions? > > Regards, > > John. > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message