[Call for help] identify and fix libraries linked (erroneously) with libthr (that break php)

Alex Dupre ale at FreeBSD.org
Sat Dec 12 11:30:35 UTC 2009

Hi PHP users,
if you are using php5 on FreeBSD 7/8 (and not with apache22-worker) and 
are experiencing core dumps, probably you have some extensions linked 
with libthr. A couple of them are mhash and pgsql (for which I already 
have patches). To fix coredumps we need to identify the ports that 
install libraries erroneously linked with libthr, that are dependencies 
of php extensions. To do this task you can run the following command:

# ldd -av /usr/local/lib/php/20060613*/*.so
         libmhash.so.2 => /usr/local/lib/libmhash.so.2 (0x800b0a000)
         libc.so.7 => /lib/libc.so.7 (0x800648000)
         libthr.so.3 => /lib/libthr.so.3 (0x800b0a000)
         libc.so.7 => /lib/libc.so.7 (0x800648000)

Then, for every library linked with libthr.so.3 (as 
/usr/local/lib/libmhash.so.2 in the above example), run:

# pkg_info -W /usr/local/lib/libmhash.so.2
/usr/local/lib/libmhash.so.2 was installed by package mhash-

Finally report me the package (mhash-, and all relevant 
information) so I can fix it.

Thanks for cooperation.

Alex Dupre

More information about the freebsd-ports mailing list