From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 1 15:29:58 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E9C416A41A; Sat, 1 Dec 2007 15:29:58 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 116BB13C46A; Sat, 1 Dec 2007 15:29:58 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A55984.dip.t-dialin.net [84.165.89.132]) by redbull.bpaserver.net (Postfix) with ESMTP id 76CC02E2D3; Sat, 1 Dec 2007 16:29:33 +0100 (CET) Received: from deskjail (deskjail.Leidinger.net [192.168.1.109]) by outgoing.leidinger.net (Postfix) with ESMTP id 031E7773CA; Sat, 1 Dec 2007 16:29:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1196522971; bh=YVf1IFY/1rjiKgZNy4cvU0Em2lMQO+2YX 7FcBGIK22E=; h=Date:From:To:Subject:Message-ID:In-Reply-To: References:Followup-To:X-Mailer:Mime-Version:Content-Type: Content-Transfer-Encoding; b=jzrI6kcfST9h0IAyiVbHQiziW/4iBeOqS6Vc6 5ZNGcHgVIDuJATeFaf9bId80Qlo11ypWmUVSZ9ezf2WKyewuEqrX4SDcOBkEH+Pj/4d dNHTY/82h0qbrPJbuEqUwa1cqG1flBGgGmtnPymSl6nFcjPZxfbAk59xyWJzaC1DCuQ p2guIJkmt4p2klXkDBtoGTAwB6wQS0XN9+sDQ7sojPtPpSd4hiREFOx5XiufWxgYTwi 3egb+Hk0vLXxN0QPKdK5KTuZVQBl7VMpq2tmEHQXPnmQ0V6uiS3NSdPl5nR4pUEaytZ EgGOBFRtGFnvNmlOZAYA9QWwyzkAwBwlbf6DQ== Date: Sat, 1 Dec 2007 16:29:30 +0100 From: Alexander Leidinger To: freebsd-hackers@freebsd.org, Yuri , emulation@freebsd.org Message-ID: <20071201162930.5c9fd4dd@deskjail> In-Reply-To: <1196470143.4750af7f6accf@webmail.rawbw.com> References: <1196470143.4750af7f6accf@webmail.rawbw.com> Followup-To: emulation@freebsd.org X-Mailer: Claws Mail 3.0.1 (GTK+ 2.10.14; i686-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-14.9, required 6, BAYES_00 -15.00, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00, RDNS_DYNAMIC 0.10) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No X-Mailman-Approved-At: Sat, 01 Dec 2007 17:19:46 +0000 Cc: Subject: Re: Linux executable picks up FreeBSD library over linux one and breaks X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Dec 2007 15:29:58 -0000 Quoting Yuri (Fri, 30 Nov 2007 16:49:03 -0800): This is better suited in emulation@ > I am trying to run Linux version of Skype and am getting the following error: > /usr/home/yuri/skype/current/skype: error while loading shared libraries: > /usr/lib/librt.so.1: ELF file OS ABI > > File /usr/lib/librt.so.1 is FreeBSD library and > /usr/compat/linux/lib/librt.so.1 is Linux library with the same name > installed by linux_base-fc-4_10. > > My LD_LIBRARY_PATH is set to /usr/compat/linux/lib:/usr/compat/linux/usr/lib. The recommendation is to _not_ set the LD_LIBRARY_PATH. > Why FreeBSD version is being picked up even though it's not > in LD_LIBRARY_PATH? Have a look at the search order of libs in linux. Correlate this with the fact that when in linux an access is done to e.g. /lib/libX.so.y which means that the linuxulator first looks if /compat/linux/lib/libX.so.y is there, and if it isn't it looks if /lib/libX.so.y is available. AFAIR a work around is to add a link in /compat/linux/usr/lib/librt.so.1 -> /lib/librt.so.1 I want to do something like this in the FC4 port, but hadn't time to do it and test it so far. Bye, Alexander. -- The TV show you've been looking forward to all week will be preempted. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137