From owner-freebsd-ports@FreeBSD.ORG Sun Jul 19 18:18:45 2009 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 2FB14106566B for ; Sun, 19 Jul 2009 18:18:45 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (gerbercreations.com [71.39.140.16]) by mx1.freebsd.org (Postfix) with ESMTP id BCE5F8FC24 for ; Sun, 19 Jul 2009 18:18:44 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.14.3/8.14.3) with ESMTP id n6JI8WpU082306 for ; Sun, 19 Jul 2009 11:08:32 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.14.3/8.14.3/Submit) id n6JI8WBl082305 for freebsd-ports@freebsd.org; Sun, 19 Jul 2009 11:08:32 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Sun, 19 Jul 2009 11:08:31 -0700 From: Greg Lewis To: freebsd-ports@freebsd.org Message-ID: <20090719180831.GA82226@misty.eyesbeyond.com> References: <20090719063924.10d42573@scorpio.seibercom.net> <20090719110030.GA1226@medusa.sysfault.org> <20090719074527.7167d604@scorpio.seibercom.net> <20090719122327.GB1226@medusa.sysfault.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090719122327.GB1226@medusa.sysfault.org> User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: Unable to build "graphics/gd" 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: Sun, 19 Jul 2009 18:18:45 -0000 On Sun, Jul 19, 2009 at 02:23:27PM +0200, Marcus von Appen wrote: > On, Sun Jul 19, 2009, Jerry wrote: > > > On Sun, 19 Jul 2009 13:00:30 +0200 > > Marcus von Appen wrote: > > > > [snip] > > > > > Looks like it tries to link against the older version that's still > > > installed. Try to deinstall gd first, then build and install it again. > > > > Thanks, that fixed it. Strange, but I have not had that problem before. > > Just for informational purposes: > > It is a problem with how the FreeBSD upgrade tools work and how a port > (read: application, library, whatever) manages its own build. > > Usually a port, in case it links to one of its own components, should do > that by using the just built component in its build directory. Some of > them however do not do that but use the complete system environment, > thus it can happen that they link to e.g. an older version of themselves > or so, causing anything to fail as you just noticed. In this case, the port was trying to link against the just built version of its shared library, it just also tries to link against some other libraries from other ports and puts -L/usr/local/lib earlier in the search path than the path to the newly built libgd.so so the linker picks up libgd.so from /usr/local/lib and uses that, hence the failure above. I saw the same problem. So just a little variant on what you said. Its trying to do the right thing but just getting the ordering wrong. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org