From owner-freebsd-emulation@FreeBSD.ORG Sat Apr 19 19:22:19 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 37F67106567B for ; Sat, 19 Apr 2008 19:22:19 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id E21218FC14 for ; Sat, 19 Apr 2008 19:22:18 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from bb.ipt.ru ([194.62.233.89]) by services.ipt.ru with esmtp (Exim 4.54 (FreeBSD)) id 1JnIdd-000OJc-G6; Sat, 19 Apr 2008 23:22:17 +0400 To: Tijl Coosemans References: <480921B2.6030004@inode.at> <200804191746.12611.tijl@ulyssis.org> <15571435@bb.ipt.ru> <200804192107.44258.tijl@ulyssis.org> From: Boris Samorodov Date: Sat, 19 Apr 2008 23:22:18 +0400 In-Reply-To: <200804192107.44258.tijl@ulyssis.org> (Tijl Coosemans's message of "Sat\, 19 Apr 2008 21\:07\:43 +0200") Message-ID: <49491077@bb.ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-emulation@freebsd.org 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 19:22:19 -0000 On Sat, 19 Apr 2008 21:07:43 +0200 Tijl Coosemans wrote: > Under linux sh you do get linux programs when they exist. Running ls or > any shell script (like Maple/Matlab/... install and startup scripts) > under linux /bin/sh currently does not work with fc4 and > osrelease=2.4.2. > This is not really a bug of linux compat, but is because of the > following: > 1. opening /path/to/somefile under linux compat first tries > /compat/linux/path/to/somefile then /path/to/somefile. > 2. linux binaries have two search paths for librt.so.1: > /lib and /usr/lib. > 3. fc4 has a librt.so.1 in /lib but it is rejected under 2.4.2 > emulation. > 4. fc4 does not have a librt.so.1 under /usr/lib so when the runtime > linker tries this search path it ends up opening FreeBSD > /usr/lib/librt.so.1 (because of point 1) and fails. > By adding a softlink in /compat/linux/usr/lib to the librt.so.1 in > /compat/linux/lib, the linker doesn't open the FreeBSD librt.so.1 > anymore. Instead, under 2.4.2, it rejects this lib and then tries an > internal search path /lib/obsolete/linuxthreads where it finds the > correct version. Under 2.6.16 the softlink doesn't change anything, > so imho this is something the fc4 port/package should deal with. Great, the fact that it use a library from /lib/obsolete/linuxthreads explains all. I'll take care of it. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve