-
Notifications
You must be signed in to change notification settings - Fork 209
(php7) php: symbol lookup error: /usr/lib/php/20151012/mongodb.so: undefined symbol: _mongoc_host_list_destroy_all #219
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
after installing the last version of libmongoc the problem is gone! |
Just curious on this side... did you compile this against a system provided libmongoc? If so, where did that come from? And which version did you have before? We'd probably like to fix this (ie, make sure you get a warning/error while compiling). |
Before, when I type in: $ php -i | grep mongo
Note that at this point in time I have only install mongo with apt-get: like so And after compiling libmongoc from scratch:
Note that I use the 1.3.2 file: https://github.com/mongodb/mongo-c-driver/releases/download/1.3.2/mongo-c-driver-1.3.2.tar.gz. But the installed lib was 1.3.1-dev. Strange, but now its working fine. After compile and install libmongoc again I need to type in: After restart php everything works fine! |
@derickr Sorry, |
If you have more questions, feel free to ask. I feel very glad to help you guys... |
@derickr I think this issue can be closed. mongodb/mongo-php-library#115 (comment) |
@jonathanpmartins: If I read this correctly, the problem was originally with using the This all seems due to our reliance on the private API in libmongoc, which we're actively working to fix (both in our PHP/HHVM drivers and libmongoc itself, where we need to create more public APIs -- no earlier than 1.4.0). |
@jmikola You are correct! |
JFTR you cannot mix and match libraries from PPA and package from PECL. The PPA version php-mongodb matches the libraries in the repository, and it has it's own copy of private symbols, so the symbol lookup should not happen. However errors might happen, so there might be some error. |
I dont know if this is the right place to put it but I have a problem. In my case Im using Lumen 5.2, PHP 7.0.2 - MongoDB 1.1.2 - Ubuntu 14.04... etc.
On my composer.json file
When i run my unit tests it results in this error:
The only reference on google whas this file: https://github.com/mongodb/mongo-c-driver/blob/master/src/mongoc/mongoc-uri.c
When I install everything in the server I use the
ondrej/php
repository. You can look-up the setup installation script here: https://github.com/jonathanpmartins/ubuntusetup/blob/master/server/setup-php7-nginx-1.9.10-ubuntu-14.04.shPerhaps I should open a issue on another repository. Can someone help me out?
The text was updated successfully, but these errors were encountered: