Bug #70774 [Opn->Csd]: `make test` issues an error loading pdo_mysql.so
| From: | petk@php.net | Date: | Thu, 25 Jul 2024 23:13:31 +0000 |
| Subject: | Bug #70774 [Opn->Csd]: `make test` issues an error loading pdo_mysql.so | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-247377@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70774&edit=1
ID: 70774
Updated by: petk@php.net
Reported by: public at grik dot net
Summary:
make test issues an error loading pdo_mysql.so
-Status: Open
+Status: Closed
Type: Bug
Package: *Compile Issues
Operating System: Mac OSX
PHP Version: 7.0.0RC5
-Assigned To:
+Assigned To: petk
Block user comment: N
Private report: N
New Comment:
Hello this issue has been fixed in recent PHP versions. Now "make test" and run-tests.php
script also automatically load the shared extensions from the modules directory. The "make
test" does this automatically, when running run-tests.php manually, the -d
extension_dir=/path/to/php-src/modules need to be passed, for example, like this:
./sapi/cli/php run-tests.php -d extension_dir=modules path/to/php-src/ext/foo/tests
Probably running the raw run-tests.php script could be improved a bit further at some point also to
do this more intuitively.
In case you're still experiencing similar issues, please report back at https://github.com/php/php-src/issues
Thank you.
Previous Comments:
------------------------------------------------------------------------
[2015-10-23 07:28:11] public at grik dot net
Description:
------------
after building php and running make test an error comes out
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/local/src/php-7.0.0RC5/modules/pdo_mysql.so' -
dlopen(/usr/local/src/php-7.0.0RC5/modules/pdo_mysql.so, 9): Symbol not found: _mysqlnd_allocator
a test script with dl('pdo_mysql.so'); does not give any error
Test script:
---------------
$ configure --with-pdo-mysql=shared; make; make test
Expected result:
----------------
=====================================================================
PHP_SAPI : cli
PHP_VERSION : 7.0.0RC5
ZEND_VERSION: 3.0.0-dev
PHP_OS : Darwin - Darwin airgri.Dlink 15.0.0 Darwin Kernel Version 15.0.0: Sat Sep 19 15:53:46
PDT 2015; root:xnu-3247.10.11~1/RELEASE_X86_64 x86_64
INI actual : /usr/local/src/php-7.0.0RC5/tmp-php.ini
More .INIs :
CWD : /usr/local/src/php-7.0.0RC5
Extra dirs :
VALGRIND : Not used
=====================================================================
TIME START 2015-10-23 10:17:07
=====================================================================
...
Actual result:
--------------
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/local/src/php-7.0.0RC5/modules/pdo_mysql.so' -
dlopen(/usr/local/src/php-7.0.0RC5/modules/pdo_mysql.so, 9): Symbol not found: _mysqlnd_allocator
Referenced from: /usr/local/src/php-7.0.0RC5/modules/pdo_mysql.so
Expected in: flat namespace
in /usr/local/src/php-7.0.0RC5/modules/pdo_mysql.so in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/local/src/php-7.0.0RC5/modules/pdo_mysql.so' -
dlopen(/usr/local/src/php-7.0.0RC5/modules/pdo_mysql.so, 9): Symbol not found: _mysqlnd_allocator
Referenced from: /usr/local/src/php-7.0.0RC5/modules/pdo_mysql.so
Expected in: flat namespace
in /usr/local/src/php-7.0.0RC5/modules/pdo_mysql.so in Unknown on line 0
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70774&edit=1