From owner-freebsd-emulation@FreeBSD.ORG Sat Apr 19 15:46:20 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6868E1065678 for ; Sat, 19 Apr 2008 15:46:20 +0000 (UTC) (envelope-from tijl@ulyssis.org) Received: from cavuit01.kulnet.kuleuven.be (cavuit01.kulnet.kuleuven.be [134.58.240.43]) by mx1.freebsd.org (Postfix) with ESMTP id E9BF38FC14 for ; Sat, 19 Apr 2008 15:46:19 +0000 (UTC) (envelope-from tijl@ulyssis.org) Received: from smtps01.kuleuven.be (smtpshost01.kulnet.kuleuven.be [134.58.240.74]) by cavuit01.kulnet.kuleuven.be (Postfix) with ESMTP id 0FC9C7B8048; Sat, 19 Apr 2008 17:46:14 +0200 (CEST) Received: from kalimero.kotnet.org (kalimero.kotnet.org [10.4.16.222]) by smtps01.kuleuven.be (Postfix) with ESMTP id 089B031E702; Sat, 19 Apr 2008 17:46:14 +0200 (CEST) Received: from kalimero.kotnet.org (kalimero.kotnet.org [127.0.0.1]) by kalimero.kotnet.org (8.14.2/8.14.2) with ESMTP id m3JFkD4O026940; Sat, 19 Apr 2008 17:46:13 +0200 (CEST) (envelope-from tijl@ulyssis.org) X-Kuleuven: This mail passed the K.U.Leuven mailcluster From: Tijl Coosemans To: freebsd-emulation@freebsd.org Date: Sat, 19 Apr 2008 17:46:11 +0200 User-Agent: KMail/1.9.7 References: <480921B2.6030004@inode.at> <40533363@bb.ipt.ru> In-Reply-To: <40533363@bb.ipt.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804191746.12611.tijl@ulyssis.org> X-KULeuven-Information: Katholieke Universiteit Leuven X-KULeuven-Scanned: Found to be clean X-Spam-Status: not spam, SpamAssassin (not cached, score=-50, required 5, autolearn=disabled, KUL_SMTPS -50.00) X-KULeuven-Envelope-From: tijl@ulyssis.org Cc: Subject: Re: googleearth & skype trouble X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Apr 2008 15:46:20 -0000 On Saturday 19 April 2008 17:03:56 Boris Samorodov wrote: > On Sat, 19 Apr 2008 00:33:22 +0200 Armin Pirkovitsch wrote: >> When I try to start them I get: >> : error while loading shared libraries: >> /usr/lib/librt.so.1: ELF file OS ABI invalid > > From your kdump: > ----- > 98302 googleearth-bin NAMI "/compat/linux/lib/librt.so.1" > 98302 googleearth-bin NAMI "/compat/linux" > 98302 googleearth-bin NAMI "/compat/linux/lib/librt.so.1" > 98302 googleearth-bin RET linux_open 3 > 98302 googleearth-bin CALL read(0x3,0xbfbfd92c,0x200) > 98302 googleearth-bin GIO fd 3 read 512 bytes > [...] > 98302 googleearth-bin RET read 512/0x200 > 98302 googleearth-bin CALL close(0x3) > 98302 googleearth-bin RET close 0 > 98302 googleearth-bin CALL linux_open(0xbfbfd800,0,0x4805d5ab) > 98302 googleearth-bin NAMI "/compat/linux/usr/lib/tls/librt.so.1" > 98302 googleearth-bin NAMI "/usr/lib/tls/librt.so.1" > 98302 googleearth-bin RET linux_open JUSTRETURN > 98302 googleearth-bin CALL linux_open(0xbfbfd800,0,0x4805d5ab) > 98302 googleearth-bin NAMI "/compat/linux/usr/lib/librt.so.1" > 98302 googleearth-bin NAMI "/usr/lib/librt.so.1" > 98302 googleearth-bin RET linux_open 3 > 98302 googleearth-bin CALL read(0x3,0xbfbfd92c,0x200) > 98302 googleearth-bin GIO fd 3 read 512 bytes > [...] > ----- > > The linux library is found but not used. And then the native FreeBSD > one is got tried, hence the error occures. Sorry, but that seems to > be a symptom of linux.osrelease=2.6.16 requirement for those > applications to run. Actually, this is a known problem with linux_base-fc4 and 2.4.2 emulation. It pops up on the mailinglists now and then so it's starting to become a faq. One of the solutions is to create a softlink: ln -f ../../lib/librt.so.1 /compat/linux/usr/lib/librt.so.1 That way, the linux compat open(2) syscall never returns the FreeBSD librt.so.1 and the linker eventually finds the 2.4.2 compatible version /compat/linux/lib/obsolete/linuxthreads/librt.so.1. Somebody should at this to a post-install target in the port/package, because /compat/linux/bin/ls and some others are affected as well.