Date: Wed, 14 Apr 2010 14:45:06 -0400 From: Leinier Cruz Salfran <salfrancl.listas@gmail.com> To: freebsd-hackers@freebsd.org Subject: Re: there is a way to avoid strict libraries linking? Message-ID: <u2ia2585ef1004141145s586744e4s821b7c368a32959b@mail.gmail.com> In-Reply-To: <20100414141759.085aec63@bhuda.mired.org> References: <n2ya2585ef1004140923s2acb8b2ctf7c9b449cb66f208@mail.gmail.com> <t2g2e027be01004140932m5b41a68fu2a77a8762fd8d3bb@mail.gmail.com> <t2xa2585ef1004140944y5cb5b5a5w3afc008019351af9@mail.gmail.com> <20100414141759.085aec63@bhuda.mired.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Apr 14, 2010 at 2:17 PM, Mike Meyer <mwm@mired.org> wrote: > On Wed, 14 Apr 2010 12:44:32 -0400 > Leinier Cruz Salfran <salfrancl.listas@gmail.com> wrote: > >> On Wed, Apr 14, 2010 at 12:32 PM, Tom Evans <tevans.uk@googlemail.com> wrote: >> > On Wed, Apr 14, 2010 at 5:23 PM, Leinier Cruz Salfran >> > <salfrancl.listas@gmail.com> 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????
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?u2ia2585ef1004141145s586744e4s821b7c368a32959b>
