From owner-freebsd-ports@FreeBSD.ORG Sun Jul 2 01:57:20 2006 Return-Path: X-Original-To: freebsd-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 28D7116A505; Sun, 2 Jul 2006 01:57:20 +0000 (UTC) (envelope-from daeg@houston.rr.com) Received: from ms-smtp-03.texas.rr.com (ms-smtp-03.texas.rr.com [24.93.47.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3BB714421E; Sat, 1 Jul 2006 15:06:33 +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-03.texas.rr.com (8.13.6/8.13.6) with ESMTP id k61F6V7d025165; Sat, 1 Jul 2006 10:06:31 -0500 (CDT) From: David J Brooks Organization: KC5WNK To: Sergey Matveychuk Date: Sat, 1 Jul 2006 10:06:31 -0500 User-Agent: KMail/1.9.3 References: <200606301851.39983.daeg@houston.rr.com> <200607010945.34281.daeg@houston.rr.com> <44A68B2A.8020903@FreeBSD.org> In-Reply-To: <44A68B2A.8020903@FreeBSD.org> 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="koi8-r" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607011006.32851.daeg@houston.rr.com> X-Virus-Scanned: Symantec AntiVirus Scan Engine Cc: Kostik Belousov , FreeBSD Ports , freebsd-ports@freebsd.org 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 01:57:20 -0000 On Saturday 01 July 2006 09:48, Sergey Matveychuk wrote: > David J Brooks wrote: > > On Saturday 01 July 2006 08:57, Sergey Matveychuk wrote: > >> Sergey Matveychuk wrote: > >>> Kostik Belousov wrote: > >>>> On Sat, Jul 01, 2006 at 03:49:45PM +0400, Sergey Matveychuk 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? > >>>>> > >>>>> I guess the problem can be if you use databases/db41. Can you send me > >>>>> list of packages you have installed (ls -1 /var/db/pkg)? > >>>> > >>>> What I noted when last update to databases/ruby-bdb was made, is that, > >>>> despite settings of WITH_BDB=43, final shared object is linked with > >>>> db-4.4 library. As far as I remember, I got some similar error > >>>> when trying to use portinstall after that. > >>> > >>> Have you a few Berkley DB ports installed? > >> > >> Yes, problem is with ruby-bdb port. If you have installed a few Berkley > >> db ports (e.g. db40, db42, db44) ruby-bdb configure script find the > >> highest version and will compiled with it, but if WITH_BDB points on > >> other version, the port will formed wrong and will not work. > > > > These are the db versions that I have installed: > > db4-4.0.14_1,1 > > db41-4.1.25_3 > > db42-4.2.52_4 > > > > This is what is set in /var/db/ports/portupgrade/options: > > WITH_BDB4=true > > > > I'm not sure which of those installed versions is being built against > > and/or linked to... > > It's linked with db42 but should with db4. OK. I changed the options file to WITH_BDB42=true and now portupgrade has this message as it begins to compile: "Neither WITH_DBD4 nor WITH_BDB1 are defined. Will use DBD driver." And when run produces the same error. /libexec/ld-elf.so.1: /usr/local/lib/ruby/site_ruby/1.8/i386-freebsd6/bdb.so: Undefined symbol "db_version" Setting the options file to WITH_BDB=42 has the same result. I guess I'm not setting that option properly.. what should it look like? David -- Sure God created the world in only six days, but He didn't have an established user-base.