portupgrade portupgrade leaves an error....

yattaran yattaran at gmail.com
Sun Jul 2 12:07:32 UTC 2006

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 

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-

   Depends on:
   Required by:

Rebuild each by running portmaster for each and everyone of those.

Voila! Everything was working perfectly again (including portupgrade) :-)


More information about the freebsd-ports mailing list