From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 14 16:44:35 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 E469C1065673 for ; Wed, 14 Apr 2010 16:44:35 +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 724AE8FC1C for ; Wed, 14 Apr 2010 16:44:35 +0000 (UTC) Received: by bwz6 with SMTP id 6so332696bwz.13 for ; Wed, 14 Apr 2010 09:44:34 -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=KsLPpoH9YrFYNE1Xe4q42aqM8MHfN8K5DTOuliqOL28=; b=VmDd+1J8WZBD0xyI6e9JnyPDrC96AACZ5dou14D0PeZx+azD4KqUF+RdBGT7SW05Ke BYMIR3UyOOZDQIOtBmCWyRlF88YmZjVtBV2v5C2TmCry91KIUWgiv0mak7+IcyjsKX0W UQ9jT+WYy0pihbPXr2cZbVYDAxACLsd7MwTdo= 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=c6xtubl2Nn7lfcronvfM/bOckvy++KjC/xSBvJKbE3+ivR9L3/6mkgXDoxhY7XSYJb fvnQa7AzpDGGammRTLMaBJwFtlPVWLD4KknLNcMX52jHm86+Bf1jVnduvPyqjh+tDqKJ hS0ISlJw99MkyfFK9NniJyEgtYm1r4Dy3yZuY= MIME-Version: 1.0 Received: by 10.204.122.74 with HTTP; Wed, 14 Apr 2010 09:44:32 -0700 (PDT) In-Reply-To: References: Date: Wed, 14 Apr 2010 12:44:32 -0400 Received: by 10.204.6.73 with SMTP id 9mr5424927bky.143.1271263473274; Wed, 14 Apr 2010 09:44:33 -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 16:44:36 -0000 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). > > > Tom > hello tom we should keep in mind that new versions of libraries are built with previous versions compatibility in order to avoid 'crashing' .. i put the 'gtk' example because i upgrade my system yesterday and I got that situation .. I started to imagine what could happen if I restart 'gdm' at that moment .. and I think that 'gdm' will not start because 'gtk' will not find 'libpng.so.5' .. so I do the following: create a symbolic link: 'libpng.so.5' -> 'libpng.so.6' .. restart 'gdm' and all was fine what do you think about that ps: clic in 'reply to all' in order to reply to 'freebsd-hacker' list too, please (thanks)