Bug #68255 [Opn->Fbk]: mysqlnd does not link with ssl

From: Date: Thu, 23 Sep 2021 12:31:09 +0000
Subject: Bug #68255 [Opn->Fbk]: mysqlnd does not link with ssl
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-236773@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68255&edit=1

 ID:                 68255
 Updated by:         cmb@php.net
 Reported by:        glen at delfi dot ee
 Summary:            mysqlnd does not link with ssl
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            MySQL related
 PHP Version:        5.6.2
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

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>


Previous Comments:
------------------------------------------------------------------------
[2014-10-17 15:26:39] 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)



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=68255&edit=1


Thread (3 messages)

« previous php.bugs (#236773) next »