From owner-freebsd-bugs@FreeBSD.ORG Mon Jun 2 23:59:18 2008 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 511B11065690 for ; Mon, 2 Jun 2008 23:59:18 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from weak.local (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 970268FC22; Mon, 2 Jun 2008 23:59:17 +0000 (UTC) (envelope-from kris@FreeBSD.org) Message-ID: <48448950.7070500@FreeBSD.org> Date: Tue, 03 Jun 2008 01:59:12 +0200 From: Kris Kennaway User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 To: Martin Simmons References: <200805302020.m4UKKAch089885@freefall.freebsd.org> In-Reply-To: <200805302020.m4UKKAch089885@freefall.freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bugs@FreeBSD.org Subject: Re: misc/124114: 7.0 shared libs cannot read errno when loaded into a 6.0 pthreaded program X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jun 2008 23:59:18 -0000 Martin Simmons wrote: > The following reply was made to PR misc/124114; it has been noted by GNATS. > > From: Martin Simmons > To: bug-followup@FreeBSD.org > Cc: > Subject: Re: misc/124114: 7.0 shared libs cannot read errno when loaded into a 6.0 pthreaded program > Date: Fri, 30 May 2008 21:08:31 +0100 > > Sorry for the noise. I've misunderstood the scope of the compat packages. I > thought they were to designed to allow prebuilt 6.x binaries to run on 7.x, > but I guess that only works if all of the dependencies are core FreeBSD > libraries, not on the ports like X11. Yes, that's right. > It works fine if I arrange to use the 6.x X11 libraries. Is there a correct > place to install these or is LD_LIBRARY_PATH the only solution? It is safest to put them in a non-default place and use LD_LIBRARY_PATH or similar (or /etc/libmap.conf). You don't want to risk the opposite problem of having a 7.0 binary pick up a 6.x library which can happen if they are installed in the default search path. In principle the dynamic linker might be able to enforce that only libraries from the same branch are loaded, but we don't do that currently and as mentioned there are scenarios where it is safe to do this, which users may be relying on. Kris