php (ssl?) global lock again
Elan Ruusamäe
glen at pld-linux.org
Sun Oct 29 18:25:49 CET 2017
On 29.10.2017 17:43, Elan Ruusamäe wrote:
> the code in mongodb likely doesn't use sasl anymore, but resulting
> mongodb.so still links with sasl, likely via ldap
>
> @@ -87,10 +87,7 @@
> checking configuring libmongoc... ...
> checking for pkg-config... (cached) /usr/bin/pkg-config
> checking for libmongoc... version 1.8.1 found
> -checking for Cyrus SASL support... yes
> -checking for SASL... found in /usr
> -checking for sasl_version in -lsasl2... (cached) yes
> -checking for sasl_client_done in -lsasl2... (cachhj saed) yes
> +checking for Cyrus SASL support... no
> checking if weak symbols are supported... yes
> checking if compiler needs -Werror to reject unknown flags... no
> checking for the pthreads library -lpthreads... no
seems my build was still with sasl enabled because system mongoc.h
header overloaded the values
https://github.com/mongodb/mongo-php-driver/blob/1.2.11/php_phongo.c#L17-L23
so had to rebuild mongo-c-driver without sasl
and THEN rebuild php ext without sasl, then phpinfo reported sasl
disabled finally:
bash-4.4# php71 -r 'phpinfo();'|grep SASL
libmongoc SASL => disabled
bash-4.4# ldd /usr/lib64/php71/mongodb.so |grep sasl
bash-4.4# objdump -p /usr/lib64/php71/mongodb.so |grep NEEDED
NEEDED libmongoc-1.0.so.0
NEEDED libbson-1.0.so.0
NEEDED libpthread.so.0
NEEDED libc.so.6
but still crashes:
bash-4.4# php71 -m
[PHP Modules]
Core
curl
date
json
libxml
mongodb
openssl
pcre
Reflection
SimpleXML
SPL
standard
[Zend Modules]
Segmentation fault
bash-4.4#
--
glen
More information about the pld-devel-en
mailing list