From owner-freebsd-questions Sun Jan 12 14:23:16 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C944E37B401 for ; Sun, 12 Jan 2003 14:23:14 -0800 (PST) Received: from mired.org (ip68-97-54-220.ok.ok.cox.net [68.97.54.220]) by mx1.FreeBSD.org (Postfix) with SMTP id EC6EA43F5B for ; Sun, 12 Jan 2003 14:23:08 -0800 (PST) (envelope-from mwm-dated-1042842187.5ca9c1@mired.org) Received: (qmail 80934 invoked from network); 12 Jan 2003 22:23:07 -0000 Received: from localhost.mired.org (HELO guru.mired.org) (127.0.0.1) by localhost.mired.org with SMTP; 12 Jan 2003 22:23:07 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15905.60107.247589.628962@guru.mired.org> Date: Sun, 12 Jan 2003 16:23:07 -0600 To: freebsd-questions@freebsd.org Subject: Re: linked twice against libintl.so In-Reply-To: <20030112221129.GA11959@gicco.homeip.net> References: <20030112221129.GA11959@gicco.homeip.net> X-Mailer: VM 7.07 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: Mike Meyer X-Delivery-Agent: TMDA/0.68 (Shut Out) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In <20030112221129.GA11959@gicco.homeip.net>, Hanspeter Roth typed: > Hello, > > I'm trying to build the ElectricEyes port. The executable is linked > against two versions of libintl.so: > > libintl.so.4 => /usr/local/lib/libintl.so.4 (0x284c2000) > libintl.so.2 => not found (0x0) > > Gettext is 0.11.5_1. > Is there a solution except of creating a link? Yes. Find port that's using the old version of libintl, and upgrade it. Unfortunately, there's not an easy way to find the port. See the patch in for how to get ldd to give you the name of the library that's trying to use libintl.so.2. Then use pkg_info -W to find thae name of the package that needs to be udpated. FWIW, a link may work, but is asking for trouble. > I found also two versions of libintl.so in /usr/local/lib/compat/pkg: > > lrwxr-xr-x 1 root wheel 10 Dec 16 00:16 libintl.so.1 -> libintl.so > lrwxr-xr-x 1 root wheel 10 Jan 8 01:03 libintl.so.2 -> libintl.so > > Do they matter? How have they come here? It looks like you are using portupgrade. It copies old libraries to /usr/local/lib/compat when it upgrades the port and the version number changes. It does that so that upgrading the port doesn't cause other ports that depend on it to stop working. Personally, I disable this and resign myself to having a few things break and rebuilding them. http://www.mired.org/consulting.html Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message