From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 1 17:51:03 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 BEBF216A417 for ; Sat, 1 Dec 2007 17:51:03 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: from mired.org (bhuda.mired.org [66.92.153.74]) by mx1.freebsd.org (Postfix) with SMTP id 4047913C46B for ; Sat, 1 Dec 2007 17:50:57 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 8693 invoked by uid 1001); 1 Dec 2007 17:51:37 -0000 Received: from bhuda.mired.org (localhost.localdomain [127.0.0.1]) by bhuda.mired.org (tmda-ofmipd) with ESMTP; Sat, 01 Dec 2007 12:51:37 -0500 Date: Sat, 1 Dec 2007 12:51:36 -0500 To: freebsd-hackers@freebsd.org Message-ID: <20071201125136.759bf69c@bhuda.mired.org> In-Reply-To: References: <1196470143.4750af7f6accf@webmail.rawbw.com> <20071201162930.5c9fd4dd@deskjail> Organization: Meyer Consulting X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.12; amd64-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Delivery-Agent: TMDA/1.1.11 (Ladyburn) From: Mike Meyer 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 17:51:03 -0000 On Sat, 01 Dec 2007 11:11:39 -0500 Greg Troxel wrote: > I had a Linux shared library problem on NetBSD that I think it might be > helpful to mention. And I have pretty much the exact same bug in OSX. > 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. s/thunderbird/claws-mail/ s/acroread/dillo/ In my case, the problme isn't emulation-related; it's that claws-mail uses a different version of some library than the system has. Dillo uses it anyway, then fails to find the features that were there when it was built, and exits. > I think this is a thunderbird bug; the environment of invoked programs > should match the environment as of thunderbird's invocation. In general, yes. But in these cases, smarter library resolution (or maybe it's to smart) could also solve the problem. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information.