From owner-freebsd-emulation@FreeBSD.ORG Tue Dec 4 01:51:18 2007 Return-Path: Delivered-To: emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0323B16A420; Tue, 4 Dec 2007 01:51:18 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from mail.farley.org (farley.org [67.64.95.201]) by mx1.freebsd.org (Postfix) with ESMTP id AF1D113C465; Tue, 4 Dec 2007 01:51:17 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from thor.farley.org (thor.farley.org [192.168.1.5]) by mail.farley.org (8.14.1/8.14.1) with ESMTP id lB41Zsbi047579; Mon, 3 Dec 2007 19:35:56 -0600 (CST) (envelope-from scf@FreeBSD.org) Date: Mon, 3 Dec 2007 19:35:54 -0600 (CST) From: "Sean C. Farley" To: Greg Troxel In-Reply-To: Message-ID: References: <1196470143.4750af7f6accf@webmail.rawbw.com> <20071201162930.5c9fd4dd@deskjail> User-Agent: Alpine 0.99999 (BSF 796 2007-11-08) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on mail.farley.org Cc: emulation@FreeBSD.org, Alexander Leidinger , Yuri , Mike Ragusa , freebsd-hackers@FreeBSD.org Subject: Re: Linux executable picks up FreeBSD library over linux one and breaks 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: Tue, 04 Dec 2007 01:51:18 -0000 On Sat, 1 Dec 2007, Greg Troxel wrote: > I had a Linux shared library problem on NetBSD that I think it might > be helpful to mention. > > thunderbird (and firefox) set LD_LIBRARY_PATH to pick up their own > modules. When acroread is invoked to display a pdf attachment, > LD_LIBRARY_PATH is still set, and this causes acroread to read a BSD > library. My workaround is to use a script for acroread that cleans > the environment. > > I think this is a thunderbird bug; the environment of invoked programs > should match the environment as of thunderbird's invocation. I had to make a change[1] to the Linux UT99 binary during install to stop it from attempting to use FreeBSD's libGL.so due to its hard-coding of LD_LIBRARY_PATH. It may be evil, but it worked. :) Once my system's SATA DVD drive works with RELENG_7, I will try to see if I can fix linux-nwnclient. Skype may have the same "solution". Mike, I Cc'd you to see if you can try using sed like I did in the linux-ut port to "fix" nwmain. Using strings, you can see if /usr/local/lib is hard-coded into the binary and replace it with an equal length string that does not point to anything. Sean 1. http://www.freebsd.org/cgi/cvsweb.cgi/ports/games/linux-ut/Makefile.diff?r1=1.5;r2=1.6 -- scf@FreeBSD.org