php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68255 mysqlnd does not link with ssl
Submitted: 2014-10-17 15:26 UTC Modified: 2021-10-03 04:22 UTC
From: glen at delfi dot ee Assigned: cmb (profile)
Status: No Feedback Package: MySQL related
PHP Version: 5.6.2 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
29 - 3 = ?
Subscribe to this entry?

 
 [2014-10-17 15:26 UTC] glen at delfi dot ee
Description:
------------
seems if mysqlnd is built shared the resulting mysqlnd.so is not linked with openssl libs causing lib not loadable

PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/mysqlnd.so' - modules/mysqlnd.so: undefined symbol: BIO_new_
mem_buf in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/mysql.so' - modules/mysql.so: undefined symbol: mysqlnd_reve
rse_api_register_api in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/mysqlnd.so' - modules/mysqlnd.so: undefined symbol: BIO_new_
mem_buf in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/mysqli.so' - modules/mysqli.so: undefined symbol: mysqlnd_ge
t_client_info in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/mysqlnd.so' - modules/mysqlnd.so: undefined symbol: BIO_new_
mem_buf in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/mysqlnd.so' - modules/mysqlnd.so: undefined symbol: BIO_new_
mem_buf in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/pdo_mysql.so' - modules/pdo_mysql.so: undefined symbol: mysq
lnd_get_client_info in Unknown on line 0

dirty workaround:

$ make MYSQLND_SHARED_LIBADD="-lssl -lcrypto"


from existing bugs i found (also unresolved) bug 66915 having same issue with zlib (-lz)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-09-23 12:31 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-09-23 12:31 UTC] cmb@php.net
I assume this is fixed as of PHP 7.4.0, or is this still an issue
with any of the actively supported PHP versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [2021-10-03 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 01:01:30 2024 UTC