From owner-freebsd-questions@FreeBSD.ORG Thu Feb 27 17:14:24 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C1874C98 for ; Thu, 27 Feb 2014 17:14:24 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7A8151D60 for ; Thu, 27 Feb 2014 17:14:24 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WJ4XM-0002FQ-CY for freebsd-questions@freebsd.org; Thu, 27 Feb 2014 18:14:20 +0100 Received: from pool-173-79-82-127.washdc.fios.verizon.net ([173.79.82.127]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Feb 2014 18:14:20 +0100 Received: from nightrecon by pool-173-79-82-127.washdc.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Feb 2014 18:14:20 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Michael Powell Subject: Re: How to Find Why Port "X" Is Installed? Date: Thu, 27 Feb 2014 12:14:03 -0500 Lines: 44 Message-ID: References: <20140227162018.3314629c@kalimero.tijl.coosemans.org> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pool-173-79-82-127.washdc.fios.verizon.net User-Agent: KNode/4.12.2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: nightrecon@hotmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Feb 2014 17:14:24 -0000 Drew Tomlinson wrote: > On 2/27/2014 7:20 AM, Tijl Coosemans wrote: >> On Thu, 27 Feb 2014 07:06:46 -0800 Drew Tomlinson wrote: >>> I'm using FBSD 10 and trying to work through the things I broke after >>> running 'make delete-old-libs' as suggested in the handbook. Ultimately >>> I just rebuilt all ports with 'portupgrade -f "*" '. Unfortunately, I >>> had an issue with databases/db42 and then other issues because it >>> failed. >>> >>> I tried running it again and saw messages about it being deprecated. >>> Then it failed with this line: >>> >>> /usr/bin/ld: .libs/cxx_db.o: relocation R_X86_64_32S against `_ZTV2Db' >>> can not be used when making a shared object; recompile with -fPIC >>> .libs/cxx_db.o: could not read symbols: Bad value >>> c++: error: linker command failed with exit code 1 (use -v to see >>> invocation) >>> *** [libdb_cxx-4.2.la] Error code 1 You may find /usr/ports/UPDATING entry 20131217: interesting. I think the plan here is to have a period of semi-deprecation of some months then at some point the 4.1/4.2 ports will cease to exist. Since 10 is the point where Clang is now the default, as well as some other changes (unbind) I decided to do a fresh install from scratch so everything would be clean with no cruft left over from pre 10 days. I had hoped that the db41/db42 situation would just take care of itself automagically with the fresh 10 install, but it did not. In /usr/src/Makefile: [...] # 9. `make delete-old' # 10. `reboot' # 11. `make delete-old-libs' (in case no 3rd party program uses them anymore) You should rebuild all ports *first* - prior to doing the 'make delete-old- libs' after a source based upgrade between major versions (9.x -> so.x) -Mike