From owner-freebsd-ports@FreeBSD.ORG Fri Aug 5 09:11:09 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 64FD71065676; Fri, 5 Aug 2011 09:11:09 +0000 (UTC) (envelope-from prvs=191e474ac=a@jenisch.at) Received: from mgaterz1.oekb.co.at (mgaterz1.oekb.co.at [143.245.5.111]) by mx1.freebsd.org (Postfix) with ESMTP id BEEE48FC14; Fri, 5 Aug 2011 09:11:08 +0000 (UTC) Received: from exchh2.oekb.co.at ([143.245.3.21]) by mgaterz1.oekb.co.at with ESMTP/TLS/AES128-SHA; 05 Aug 2011 10:41:54 +0200 Received: from aurora.oekb.co.at (143.245.9.16) by exchh2.oekb.co.at (143.245.3.61) with Microsoft SMTP Server id 8.2.234.1; Fri, 5 Aug 2011 10:41:54 +0200 Received: from aurora.oekb.co.at (localhost [127.0.0.1]) by aurora.oekb.co.at (8.14.5/8.14.5) with ESMTP id p758fsqa001379; Fri, 5 Aug 2011 10:41:54 +0200 (CEST) (envelope-from a@jenisch.at) Received: (from ej@localhost) by aurora.oekb.co.at (8.14.5/8.14.5/Submit) id p758fsUs001355; Fri, 5 Aug 2011 10:41:54 +0200 (CEST) (envelope-from a@jenisch.at) X-Authentication-Warning: aurora.oekb.co.at: ej set sender to a@jenisch.at using -f Date: Fri, 5 Aug 2011 10:41:54 +0200 From: Ewald Jenisch To: Message-ID: <20110805084154.GA46719@aurora.oekb.co.at> References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-questions@freebsd.org, freebsd-ports@freebsd.org Subject: Re: portupgrades fail because of missing /usr/local/lib/liblzma.la X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Aug 2011 09:11:09 -0000 On Thu, Aug 04, 2011 at 01:45:02PM -0400, b. f. wrote: > > o) What can I do to get ports recognize the correct location of the > > xz-libraries? > > As I wrote above, some more information would help. I'm guessing that > you have a port that (unfortunately) uses libtool to perform linking, > and has an erroneous /usr/local/lib/lzma.la entry in a libtool archive > file (*.la), or is using some combination of uncommon linker flags > and sloppy use of -L/usr/local/lib. Does a search like: > > fgrep -e lzma -nHr /usr/local/lib --include='*.la' > > yield any results? If you see any references in a libtool archive to > the nonexistent "/usr/local/lib/liblzma.la", try removing and then > rebuilding the port that owns that libtool archive -- you should be > able to determine the port by running "pkg_info -W" with the full path > of the libtool archive as an argument. > Hi, First of all I'm posting my reply to both -questions where I sent my original question to as well as -ports where you sent your reply so others are seeing this too. In short - thanks to your hints everything's healthy again :-)) Here's what I did (in case others are suffering from this problem too): fgrep -e lzma -nHr /usr/local/lib --include='*.la' yielded a bunch of results - grep-ed for "/usr/local/lib/liblzma.la". Then feeded these into pkg_info -W which nicely pointed me to the corresponding port where this library comes from. The only thing I had to do then was to make deinstall;make clean; make install this port. In my case it was e.g. the "ImageMagick-6.7.0.10_1" port causing all the mess. So thanks to you all who responded. It's great to have such a knowledgeable and helpful community out there - you indeed learn something new every day. -ewald