From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 14 18:45:08 2010 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 070951065677 for ; Wed, 14 Apr 2010 18:45:08 +0000 (UTC) (envelope-from salfrancl.listas@gmail.com) Received: from mail-bw0-f214.google.com (mail-bw0-f214.google.com [209.85.218.214]) by mx1.freebsd.org (Postfix) with ESMTP id 86BA18FC16 for ; Wed, 14 Apr 2010 18:45:07 +0000 (UTC) Received: by bwz6 with SMTP id 6so458999bwz.13 for ; Wed, 14 Apr 2010 11:45:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type; bh=9Er8uEuAiYT3SMyzOY5sJamgleVy5KbOy93t0X7mXfo=; b=T1/HOgQEbD6ll4uqNoqXzAOJwz1QG0Egl3q5aQ9ZZbiLEt26G1ez+FGb2Yo9ZzvVa5 DAyd+2Zs/IVqbN+p1Xn3URwU9X/FLXe7OW1rVuVjp8eqwh7SJ03DBu2FpnHbgTQzGl9O GYBEdFTqNmikC2DydkwI9nIgY8mUyl/dxyf6k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Ju3JjPpqeRy4y8PB9rmHRs1r0g2KM7FRDDwqAHAB/JA+xDtpTtsZT7dZ8w771baGSQ W4mCyxUIGnepxwK4XePZmYLk5/vsItGahy2dZvpaHCTKrEpXjznLTNdSTKef0shSRIai 31lOWmzu102tXakCElukJiJH4wYuozWW1t67o= MIME-Version: 1.0 Received: by 10.204.122.74 with HTTP; Wed, 14 Apr 2010 11:45:06 -0700 (PDT) In-Reply-To: <20100414141759.085aec63@bhuda.mired.org> References: <20100414141759.085aec63@bhuda.mired.org> Date: Wed, 14 Apr 2010 14:45:06 -0400 Received: by 10.204.36.208 with SMTP id u16mr2504600bkd.168.1271270706157; Wed, 14 Apr 2010 11:45:06 -0700 (PDT) Message-ID: From: Leinier Cruz Salfran To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=UTF-8 Subject: Re: there is a way to avoid strict libraries linking? 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: Wed, 14 Apr 2010 18:45:08 -0000 On Wed, Apr 14, 2010 at 2:17 PM, Mike Meyer wrote: > On Wed, 14 Apr 2010 12:44:32 -0400 > Leinier Cruz Salfran wrote: > >> On Wed, Apr 14, 2010 at 12:32 PM, Tom Evans wrote: >> > On Wed, Apr 14, 2010 at 5:23 PM, Leinier Cruz Salfran >> > wrote: >> >> hello all fbsd devs >> >> >> >> i want to know if there is a possibility to avoid current strict >> >> libraries linking .. i will explain myself >> >> >> >> for example .. i have installed 'gtk' (2.18) that depends on library >> >> 'libpng.so.5' (png) .. and i will upgrade 'png' port to a superior >> >> version that install the library 'libpng.so.6' BUUUTTTT 'gtk' will not >> >> be upgraded, so it will still depending on 'libpng.so.5' .. so here is >> >> my question: there is a way to avoid this?????? i means that 'gtk' >> >> load 'libpng.so' (that is a symbolic link to 'libpng.so.6') instead of >> >> 'libpng.so.5' at runtime >> > >> > The reason the library version is bumped is to avoid loading >> > libpng.so.6 into a process looking for libpng.so.5. If you want to try >> > it, you can use /etc/libmap.conf to map requests for libpng.so.5 into >> > libpng.so.6 (and watch your apps crash instead of not running). >> >> we should keep in mind that new versions of libraries are built with >> previous versions compatibility in order to avoid 'crashing' > > That's a false generalization. While it may be true for most > libraries, it's definitely not true in all cases. you have right mike > Since I tend to do > upgrades wholesale, I only find the ones where the breakage is exposed > at the source level, so the last one I recall is when libgtkhtml > changed the underlying print engine, breaking anything that depended > on it for printing, like gnucash. > I want to share one thing: I restarted my box right now (since I upgraded my box I haven't restarted) and I saw one interesting thing: - before upgrade GIMP was able to load PNG files - after upgrade GIMP can't load PNG files - when I did the symbolic link GIMP was able to load PNG files ONCE AGAIN - I delete the symbolic link, then restarted my box AAANNNDDDD GIMP is able to load PNG files ONCE AGAIN there is happening something that I don't know yet???? somebody knows????