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

David Southwell david at vizion2000.net
Sat Dec 12 15:51:11 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
> ...
> /usr/local/lib/php/20060613/mhash.so:
>          libmhash.so.2 => /usr/local/lib/libmhash.so.2 (0x800b0a000)
>          libc.so.7 => /lib/libc.so.7 (0x800648000)
> /usr/local/lib/libmhash.so.2:
>          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-0.9.9.9
> 
> Finally report me the package (mhash-0.9.9.9, and all relevant
> information) so I can fix it.
> 
> Thanks for cooperation.
> 
My system produces following responses ( a few duplicates included!!)

 pkg_info -W /usr/local/lib/libssl.so.5
/usr/local/lib/libssl.so.5 was installed by package openssl-0.9.8l
 pkg_info -W /usr/local/lib/libcrypto.so.5
/usr/local/lib/libcrypto.so.5 was installed by package openssl-0.9.8l
pkg_info -W /usr/local/lib/libssl.so.5
/usr/local/lib/libssl.so.5 was installed by package openssl-0.9.8l
 pkg_info -W /usr/local/lib/libcrypto.so.5
/usr/local/lib/libcrypto.so.5 was installed by package openssl-0.9.8l                                                  
pkg_info -W /usr/local/lib/libssl.so.5
/usr/local/lib/libssl.so.5 was installed by package openssl-0.9.8l
pkg_info -W /usr/local/lib/libcrypto.so.5
/usr/local/lib/libcrypto.so.5 was installed by package openssl-0.9.8l
 pkg_info -W /usr/local/lib/libmhash.so.2
/usr/local/lib/libmhash.so.2 was installed by package mhash-0.9.9.9
pkg_info -W /usr/local/lib/libodbc.so.1
/usr/local/lib/libodbc.so.1 was installed by package unixODBC-2.2.14_1
pkg_info -W /usr/local/lib/libssl.so.5
/usr/local/lib/libssl.so.5 was installed by package openssl-0.9.8l
 pkg_info -W /usr/local/lib/libcrypto.so.5
/usr/local/lib/libcrypto.so.5 was installed by package openssl-0.9.8l
pkg_info -W /usr/local/lib/php/20060613/phpcups.so
/usr/local/lib/php/20060613/phpcups.so was installed by package cups-
base-1.4.2_2
pkg_info -W /usr/local/lib/libcups.so.2
/usr/local/lib/libcups.so.2 was installed by package cups-client-1.4.2_1
pkg_info -W /usr/local/lib/libcrypto.so.5
/usr/local/lib/libcrypto.so.5 was installed by package openssl-0.9.8l
pkg_info -W /usr/local/lib/libssl.so.5
/usr/local/lib/libssl.so.5 was installed by package openssl-0.9.8l


More information about the freebsd-ports mailing list