Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Dec 2009 15:51:02 +0000
From:      David Southwell <david@vizion2000.net>
To:        freebsd-ports@freebsd.org
Cc:        ports@freebsd.org, Alex Dupre <ale@freebsd.org>
Subject:   Re: [Call for help] identify and fix libraries linked (erroneously) with libthr (that break php)
Message-ID:  <200912121551.02259.david@vizion2000.net>
In-Reply-To: <4B237EDB.5030505@FreeBSD.org>
References:  <4B237EDB.5030505@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912121551.02259.david>