From owner-freebsd-hackers@FreeBSD.ORG Sun Dec 2 18:25:26 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 19A3216A41B for ; Sun, 2 Dec 2007 18:25:26 +0000 (UTC) (envelope-from chuckr@chuckr.org) Received: from mail1.sea5.speakeasy.net (mail1.sea5.speakeasy.net [69.17.117.3]) by mx1.freebsd.org (Postfix) with ESMTP id E599113C461 for ; Sun, 2 Dec 2007 18:25:25 +0000 (UTC) (envelope-from chuckr@chuckr.org) Received: (qmail 31403 invoked from network); 2 Dec 2007 18:25:25 -0000 Received: from april.chuckr.org (chuckr@[66.92.151.30]) (envelope-sender ) by mail1.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 2 Dec 2007 18:25:25 -0000 Message-ID: <4752F825.8020505@chuckr.org> Date: Sun, 02 Dec 2007 13:23:33 -0500 From: Chuck Robey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.9) Gecko/20071107 SeaMonkey/1.1.6 MIME-Version: 1.0 To: Yuri References: <1196470143.4750af7f6accf@webmail.rawbw.com> In-Reply-To: <1196470143.4750af7f6accf@webmail.rawbw.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org 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: Sun, 02 Dec 2007 18:25:26 -0000 Yuri wrote: > 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. > > Why FreeBSD version is being picked up even though it's not > in LD_LIBRARY_PATH? > You've gotten some good suggestions, but I might add one more, I don't think it's been mentioned. I have foound, myself in the last 2 weeks, some FreeBSD ports putting in Linux tools, installing stuff in the wrong places, like sticking in SYSV libraries in /usr/local/lib instead of /compat/linux/usr/lib. I verified in that case that the Linux ldconfig didn't find the library, before I manually moved the library to the /compat path, and reran the linux ldconfig. I can't remember, for sure right now, which port it was, but I think it was a Linux browser. I remember the action, and that moving the libs (several different ones) did fix the problem. If you can't find the lirary using the Linux ldconfig (and remember that it uses different parameters to search with), then you need to find where the libs are actually stuck, and make sure the place makes sense. Sticking SYSV libs into a directory full of BSD libs doesn't make thje best sense, I think. But I could be wrong on that, I haven't yet got enough experience with the Linux emulation to make certain. This seems to me sense with what I read in the handbook regarding the Linux emulation. > Yuri > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"