Joseph Olatt | 26 Jun 2012 22:54
Favicon

php mongo pthread issue

Hi,

I'm trying to run the PHP MongoDB extension under the OpenBSD standard
Apache install and I'm getting the following error:

  /usr/sbin/httpd:/usr/local/lib/php-5.3/modules/mongo.so: undefined 
  symbol 'pthread_mutex_lock' lazy binding failed!
  [Tue Jun 26 12:46:26 2012] [notice] child pid 99 exit signal 
  Segmentation fault (11)

Since I couldn't find a pre-built package, I downloaded, compiled and 
installed the following:

  mongodb-mongo-php-driver-9a154f0

I also modified the LDFLAGS entry in the Makefile by adding "-pthread"
as suggested by some searching on the Internet. The modified Makefile
can be viewed at:

  http://www.eskimo.com/~joji/openbsd/

Anybody else having this problem? Any ideas on how to overcome this
issue?

Thanks in advance for any assistance.

Please Reply-All when responding or CC: me as I am not subscribed to
this list.

(Continue reading)

Stuart Henderson | 27 Jun 2012 16:17
Favicon
Gravatar

Re: php mongo pthread issue

In gmane.os.openbsd.misc, you wrote:
> Hi,
>
> I'm trying to run the PHP MongoDB extension under the OpenBSD standard
> Apache install and I'm getting the following error:
>
>   /usr/sbin/httpd:/usr/local/lib/php-5.3/modules/mongo.so: undefined 
>   symbol 'pthread_mutex_lock' lazy binding failed!
>   [Tue Jun 26 12:46:26 2012] [notice] child pid 99 exit signal 
>   Segmentation fault (11)
>
> Since I couldn't find a pre-built package, I downloaded, compiled and 
> installed the following:
>
>   mongodb-mongo-php-driver-9a154f0
>
>
> I also modified the LDFLAGS entry in the Makefile by adding "-pthread"
> as suggested by some searching on the Internet. The modified Makefile
> can be viewed at:

That is incorrect advice.

>   http://www.eskimo.com/~joji/openbsd/
>
>
> Anybody else having this problem? Any ideas on how to overcome this
> issue?
>
> Thanks in advance for any assistance.
(Continue reading)


Gmane