Date: Mon, 3 Dec 2007 19:35:54 -0600 (CST) From: "Sean C. Farley" <scf@FreeBSD.org> To: Greg Troxel <gdt@ir.bbn.com> Cc: emulation@FreeBSD.org, Alexander Leidinger <Alexander@Leidinger.net>, Yuri <yuri@rawbw.com>, Mike Ragusa <mragusa@gmail.com>, freebsd-hackers@FreeBSD.org Subject: Re: Linux executable picks up FreeBSD library over linux one and breaks Message-ID: <alpine.BSF.0.99999.0712031925540.40547@thor.farley.org> In-Reply-To: <rmi4pf29yys.fsf@fnord.ir.bbn.com> References: <1196470143.4750af7f6accf@webmail.rawbw.com> <20071201162930.5c9fd4dd@deskjail> <rmi4pf29yys.fsf@fnord.ir.bbn.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.0.99999.0712031925540.40547>