From owner-freebsd-ports@FreeBSD.ORG Sun Jul 2 17:10:37 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4651016A582 for ; Sun, 2 Jul 2006 17:10:37 +0000 (UTC) (envelope-from daeg@houston.rr.com) Received: from ms-smtp-01.texas.rr.com (ms-smtp-01.texas.rr.com [24.93.47.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 556D444563 for ; Sun, 2 Jul 2006 17:10:35 +0000 (GMT) (envelope-from daeg@houston.rr.com) Received: from cpe-24-167-71-114.houston.res.rr.com (cpe-24-167-71-114.houston.res.rr.com [24.167.71.114]) by ms-smtp-01.texas.rr.com (8.13.6/8.13.6) with ESMTP id k62HAYPQ025975; Sun, 2 Jul 2006 12:10:34 -0500 (CDT) From: David J Brooks Organization: KC5WNK To: yattaran Date: Sun, 2 Jul 2006 12:10:33 -0500 User-Agent: KMail/1.9.3 References: <200606301851.39983.daeg@houston.rr.com> <44A7B6FA.7070905@gmail.com> In-Reply-To: <44A7B6FA.7070905@gmail.com> X-Face: "\j?x](l|]4p?-1Bf@!wN<&p=$.}^k-HgL}cJKbQZ3r#Ar]\%U(#6}'?<3s7%(%(=?utf-8?q?gxJxxc=0A=09R=09nSNPNr*/=5E=7EStawWU9KDJ-CT0k=24f=23?=@t2^K&BS_f|?ZV/.7Q MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607021210.34268.daeg@houston.rr.com> X-Virus-Scanned: Symantec AntiVirus Scan Engine Cc: FreeBSD Ports Subject: Re: portupgrade portupgrade leaves an error.... 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, 02 Jul 2006 17:10:37 -0000 On Sunday 02 July 2006 07:07, yattaran wrote: > David J Brooks wrote: > > After running 'portupgrade portupgrade' I am left with the following > > error when I run portversion or portupgrade, or pretty much any program > > that addresses the ports collection: > > > > /libexec/ld-elf.so.1: > > /usr/local/lib/ruby/site_ruby/1.8/i386-freebsd6/bdb.so: Undefined symbol > > "db_version" > > > > Any ideas on how to fix it? > > > > David > > I fixed this issue a couple of days ago. I googled and read that it was > probably due to having several db4* packages installed (db4, db41 and > db42). > > I then removed db4 and db41 (no packages were depending on neither) with > pkg-delete. I was actually surprised to find that I had several db4* > packages installed so I figured I should replace all of them with the > latest (db44). > > I then replaced db42 with db44: > portmaster -o /usr/ports/databases/db44 db42-4.2.52_4 > > Then figured out what depended on db44: > pkg_info -Rr 'db44*' > > Information for db44-4.4.20.2: > > Depends on: > Required by: > apr-db42-1.2.7_1 > nicotine-1.0.8_1 > portupgrade-2.1.3.2,2 > py24-bsddb-2.4.3_2 > ruby18-bdb-0.5.9 > > Rebuild each by running portmaster for each and everyone of those. > > Voila! Everything was working perfectly again (including portupgrade) :-) That did the trick! Unlike you, I had a few ports depending on db4, db41 and db42. After replacing db42 with db44 I just deinstalled db4 and db41 and then ran 'pkgdb -F' to replace the stale dependencies with db44 and rebuilt everything that needed them. All is now working as expected. (And I got to unclutter my ports collection somewhat. :)) Thanks to all to who have worked to help me solve this dilemma. David -- Sure God created the world in only six days, but He didn't have an established user-base.