"undefined symbol" error from .so file after portupgrade

illoai at gmail.com illoai at gmail.com
Mon Aug 18 20:51:06 UTC 2008

2008/8/18 Steve Franks <stevefranks at ieee.org>:
> I just finished a successful of portupgrade -a, so everything's
> supposed to be the latest & greatest, right?  Why would I be
> experiencing "dll hell" then?  These are not obscure ports...
> I get the following when I import gtk in python:
>   ImportError:
> /usr/local/lib/python2.5/site-packages/gtk-2.0/gconf.so: Undefined
> symbol "g_assertion_message_expr"
> My versions:
> python25-2.5.2_1
> py25-gtk-2.12.
> Ideas?

When you issued portupgrade -a, you upgraded something
that python depends upon (or something that python
depends upon depends upon) without recompiling the
dependancies (in this case python(?)).  Find out what
you upgraded that broke python and issue:

portupgrade -fr <whatever-it-is>

In general, when running portupgrade, I have found it
to be a good idea to manually audit the packages to
be upgraded for their general state of root-, trunk-,
branch-, leaf-iness and issue several runs of
portupgrade -fr <something>

Not quite as fire&fail as portupgrade -a, but much less
time-consuming than portupgrade -af.


More information about the freebsd-questions mailing list