xfburn fails with 'Undefined symbol "__malloc_lock"'
sonicy at otenet.gr
Fri Jun 26 00:06:37 UTC 2009
Markus Hoenicka wrote:
> I've upgraded my laptop from 6.4 to 7.2-RELEASE. Essentially
> everything went fine, except that for some reason xfburn no longer
> works. If I install a package using "portupgrade -f -PP", I see the
> following at runtime:
> markus at yeti:/usr/home/markus# xfburn &
>  47214
> markus at yeti:/usr/home/markus# /libexec/ld-elf.so.1: /lib/libpthread.so.2: Undefined symbol "__malloc_lock"
> If I build xfburn in the ports tree, I get the following error at
> compile time:
> /usr/bin/ld: warning: libcam.so.3, needed by /usr/local/lib/libburn.so, may conflict with libcam.so.4
> /lib/libpthread.so.2: undefined reference to `__malloc_lock'
> I assume that I somehow managed to botch the 6->7 upgrade, but would
> anyone know how to fix this particular problem?
Upgrading between major versions requires all installed ports to be
rebuilt, so they get linked to the new versions of the libraries.
I suppose you missed this step, older apps may still work but there is a
problem installing new ones.
Please see the instructions at the end of section 24.2.3 (portupgrade etc):
These are still applicable even if you used the traditional source-based
way of upgrading the base system (instead of freebsd-update)
(AFAIR, if you upgraded via source, you will also need to run make
delete-old-libs in /usr/src after successfully recompiling ports)
More information about the freebsd-questions