From owner-freebsd-questions@FreeBSD.ORG Mon Jul 3 22:38:56 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1479516A4E0 for ; Mon, 3 Jul 2006 22:38:56 +0000 (UTC) (envelope-from bsd@todoo.biz) Received: from newmail.rmm.fr (newmail.rmm.fr [195.115.46.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5694F43D45 for ; Mon, 3 Jul 2006 22:38:54 +0000 (GMT) (envelope-from bsd@todoo.biz) Received: from localhost (localhost [127.0.0.1]) by newmail.rmm.fr (Postfix) with ESMTP id B94FA285D1; Tue, 4 Jul 2006 00:38:51 +0200 (CEST) X-Virus-Scanned: amavisd-new 2.4.1 (20060508) at rmm.fr Received: from newmail.rmm.fr ([127.0.0.1]) by localhost (newmail.rmm.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03rP9J9du-5l; Tue, 4 Jul 2006 00:38:51 +0200 (CEST) Received: from [172.16.1.201] (me.todoo.biz [82.66.93.242]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by newmail.rmm.fr (Postfix) with ESMTP id 4A9D8285D0; Tue, 4 Jul 2006 00:38:51 +0200 (CEST) In-Reply-To: <44A8D9CB.1080400@xs4all.nl> References: <6364F144-0287-41E2-90F0-D97B45C02493@todoo.biz> <44A8D9CB.1080400@xs4all.nl> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: <1CACB80D-C326-4C00-A14B-87D944F1C341@todoo.biz> Content-Transfer-Encoding: quoted-printable From: bsd Date: Tue, 4 Jul 2006 00:38:48 +0200 To: Jacques S. X-Mailer: Apple Mail (2.752.2) Cc: Liste FreeBSD Subject: Re: Portupgrade ruby problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jul 2006 22:38:56 -0000 Mmmh... I have followed your instructions and am still facing a problem : root 0:34 ~ # portversion -l "<" [Rebuilding the pkgdb in /var/db/pkg ... =20 [Rebuilding the pkgdb in /var/db/pkg ... =20 uninitialized constant PkgDB::BDB: Cannot update the pkgdb!] Command failed [exit code 1]: /usr/local/sbin/pkgdb -aFQ I can not rebuild the database using pkgdb -fu root 0:37 ~ # pkgdb -fu ---> Updating the pkgdb [Rebuilding the pkgdb in /var/db/pkg ... =20 uninitialized constant PkgDB::BDB: Cannot update the pkgdb!] ?? Any idea. Le 3 juil. 06 =E0 10:48, Jacques S. a =E9crit : > bsd wrote: >> Hello, >> I have a new problem that has just occured on my main mail server. >> I am upgrading the ports on this server every two or three days =20 >> using portsnap and portupgrade. >> After portsnap has updated it's index I do a "portupgrade -arR" to =20= >> upgrade all ports on the system. >> Mutt needed an update so I did what I am doing every couple of =20 >> days since more than one year : >> # portsnap update >> # portupgrade -arR >> My system faithfully started to update it's ports then... >>> -L/usr/local/lib -o pgpring pgppubring.o pgplib.o lib.o =20 >>> extlib.o sha1.o pgppacket.o ascii.o -lintl -liconv >>> cc -I/usr/local/include -Wall -O -pipe -L/usr/local/lib -rpath=3D/=20= >>> usr/local/lib -L/usr/local/lib pgpewrap.c -o pgpewrap >>> defined symbol "db_version_4002" >>> ** Command failed [exit code 1]: /usr/local/sbin/pkgdb -aFQ >>> ---> Skipping 'mail/mutt' >>> /libexec/ld-elf.so.1: /usr/local/lib/ruby/site_ruby/1.8/i386-=20 >>> freebsd5/bdb.so: Undefined symbol "db_version_4002" >>> /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:444:in `__system': =20 >>> Command failed [exit code 1]: /usr/local/sbin/pkgdb -aFQ =20 >>> (CommandFailedError) >>> from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:467:in =20= >>> `__sudo' >>> from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:473:in =20= >>> `xsystem!' >>> from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:960:in =20 >>> `autofix!' >>> from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:956:in =20 >>> `autofix' >>> from /usr/local/sbin/portupgrade:475:in `main' >>> from /usr/local/sbin/portupgrade:714:in `main' >>> from /usr/local/lib/ruby/1.8/optparse.rb:815:in `initialize' >>> from /usr/local/sbin/portupgrade:209:in `main' >>> from /usr/local/sbin/portupgrade:1951 >> I shooted portupgrade again but that did nothing, the donkey was =20 >> stucked !! >>> root 8:08 ~ # portupgrade -arR >>> /libexec/ld-elf.so.1: /usr/local/lib/ruby/site_ruby/1.8/i386-=20 >>> freebsd5/bdb.so: Undefined symbol "db_version_4002" >> I have also try to reinstall "portupgrade" and "ruby18" that did =20 >> nothing !! >> Any idea of how to proceed... >> Another interesting information : >>> root 8:18 ~ # uname -a >>> FreeBSD newmail.rmm.fr 5.4-RELEASE-p8 FreeBSD 5.4-RELEASE-p8 #0: =20 >>> Thu Nov 24 16:34:35 CET 2005 root@newmail.rmm.fr:/usr/obj/usr/=20= >>> src/sys/GENERIC i386 >> Thanks for your support. >> ________________________________________________ >> =AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB= ?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7 >> =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF= =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF >> Gregober ---> PGP ID --> 0x1BA3C2FD >> bsd @at@ todoo.biz >> ________________________________________________ >> =AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB= ?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7 >> =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF= =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to "freebsd-questions-=20 >> unsubscribe@freebsd.org" > > This worked for me: > # cd /var/db/ports/portupgrade > # rm options > > # cd /var/db/pkg > # rm pkgdb.db > # pkgdb -fu > > Discovered I had both ruby versions in ports: db4-4.x.x and db41-4.x.x > I needed only db41; nothing depended (any more) on db4, so: > > # pkg_delete db4-4.x.x > > Note, I had migrated to WITH_BDB4=3Dtrue, quite a long time ago. > > The recent tribulations with portupgrade has been on the list =20 > already, several times, at several stages of the problem, and =20 > various solutions have been described. Some of those seem more =20 > complicated than this. I don't think the problem is complicated, at =20= > least not in every case. At least not, now that the maintainer has =20 > worked to fix the port. > > -- > Jacques S. > ________________________________________________ =AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?= =BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7 =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF= =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF Gregober ---> PGP ID --> 0x1BA3C2FD bsd @at@ todoo.biz ________________________________________________ =AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?= =BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7 =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF= =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF