From owner-freebsd-questions@FreeBSD.ORG Mon Jul 3 09:10:46 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 47EA916A87E for ; Mon, 3 Jul 2006 09:10:46 +0000 (UTC) (envelope-from offbyone@xs4all.nl) Received: from smtp8.orange.fr (smtp8.orange.fr [193.252.22.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id A5DDD441C5 for ; Mon, 3 Jul 2006 08:48:14 +0000 (GMT) (envelope-from offbyone@xs4all.nl) Received: from [192.168.0.4] (ADijon-151-1-77-189.w83-196.abo.wanadoo.fr [83.196.209.189]) by mwinf0809.orange.fr (SMTP Server) with ESMTP id 81E161C001E4; Mon, 3 Jul 2006 10:48:12 +0200 (CEST) X-ME-UUID: 20060703084812532.81E161C001E4@mwinf0809.orange.fr Message-ID: <44A8D9CB.1080400@xs4all.nl> Date: Mon, 03 Jul 2006 10:48:11 +0200 From: "Jacques S." User-Agent: Thunderbird 1.5.0.4 (X11/20060609) MIME-Version: 1.0 To: bsd References: <6364F144-0287-41E2-90F0-D97B45C02493@todoo.biz> In-Reply-To: <6364F144-0287-41E2-90F0-D97B45C02493@todoo.biz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit 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 09:10:46 -0000 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 using > portsnap and portupgrade. > > After portsnap has updated it's index I do a "portupgrade -arR" to > upgrade all ports on the system. > > > Mutt needed an update so I did what I am doing every couple of 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 extlib.o >> sha1.o pgppacket.o ascii.o -lintl -liconv >> cc -I/usr/local/include -Wall -O -pipe -L/usr/local/lib >> -rpath=/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-freebsd5/bdb.so: Undefined >> symbol "db_version_4002" >> /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:444:in `__system': >> Command failed [exit code 1]: /usr/local/sbin/pkgdb -aFQ >> (CommandFailedError) >> from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:467:in >> `__sudo' >> from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:473:in >> `xsystem!' >> from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:960:in `autofix!' >> from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:956:in `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 stucked !! > >> root 8:08 ~ # portupgrade -arR >> /libexec/ld-elf.so.1: >> /usr/local/lib/ruby/site_ruby/1.8/i386-freebsd5/bdb.so: Undefined >> symbol "db_version_4002" > > I have also try to reinstall "portupgrade" and "ruby18" that did 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: Thu >> Nov 24 16:34:35 CET 2005 >> root@newmail.rmm.fr:/usr/obj/usr/src/sys/GENERIC i386 > > > Thanks for your support. > > ________________________________________________ > «?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§ > ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ > Gregober ---> PGP ID --> 0x1BA3C2FD > bsd @at@ todoo.biz > ________________________________________________ > «?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§ > ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-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=true, quite a long time ago. The recent tribulations with portupgrade has been on the list already, several times, at several stages of the problem, and various solutions have been described. Some of those seem more complicated than this. I don't think the problem is complicated, at least not in every case. At least not, now that the maintainer has worked to fix the port. -- Jacques S.