I think this is a common problem when upgrading.
As a rule when a software is compiled from pkgsrc its installs on /usr/pkg/bin. nothing new.
And the old software is still installed in /usr/bin /usr /lib , etc
I just remove the old software and make a soft links. The are some older soft links that can not be deleted because they are needed by older versions of programs.
Reg /T
I remember (vaguely) when i upgraded to a never version of some compiler, then i had to register the shared objects (libraries) again i think. Maybe this was not your problem , but is good to know how to handle it. Read :
http://www.daemon-systems.org/man/ldconfig.8.html,
http://www.daemon-systems.org/man/ld.so.conf.5.html.