php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70774 `make test` issues an error loading pdo_mysql.so
Submitted: 2015-10-23 07:28 UTC Modified: 2024-07-25 23:13 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: public at grik dot net Assigned: petk (profile)
Status: Closed Package: *Compile Issues
PHP Version: 7.0.0RC5 OS: Mac OSX
Private report: No CVE-ID: None
 [2015-10-23 07:28 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2024-07-25 23:13 UTC] petk@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: petk
 [2024-07-25 23:13 UTC] petk@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC