Bug #66915 [Opn->Dup]: mysqlnd with compression support : missing explicit dependency to zlib

From: Date: Tue, 20 Apr 2021 11:43:53 +0000
Subject: Bug #66915 [Opn->Dup]: mysqlnd with compression support : missing explicit dependency to zlib
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-233521@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66915&edit=1

 ID:                 66915
 Updated by:         cmb@php.net
 Reported by:        mblancha at free dot fr
 Summary:            mysqlnd with compression support : missing explicit
                     dependency to zlib
-Status:             Open
+Status:             Duplicate
 Type:               Bug
 Package:            *Compile Issues
 Operating System:   Linux
 PHP Version:        5.5.10
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

Closing as duplicate of bug #78823, which is fixed as of PHP
7.4.0.


Previous Comments:
------------------------------------------------------------------------
[2014-03-17 10:41:10] mblancha at free dot fr

Description:
------------
When mysqlnd is compiled with compression support (MYSQLND_COMPRESSION_WANTED), there is no explicit
dependency to zlib in its build configuration.

So, in the case mysqlnd is built statically, with no link to zlib in any other static part in the
build, there is a link edition failure at build time:
In function `php_mysqlnd_net_encode_pub':
mysqlnd_net.c:(.text+0x174e): undefined reference to `compress'
ext/mysqlnd/.libs/mysqlnd_net.o: In function `php_mysqlnd_net_decode_pub':
mysqlnd_net.c:(.text+0x179b): undefined reference to `uncompress'

Here is an example of configure that leads to the error above:
./configure --prefix=/usr \
--sysconfdir=/etc/php \
--mandir=/usr/share/man \
--localstatedir=/var \
--with-config-file-path=/etc/php \
--disable-static \
--disable-ipv6 \
--disable-cgi \
--enable-fpm \
--disable-all \
--with-mysql=shared \
--with-mysqli=shared \
--enable-mysqlnd \
--with-zlib=shared \
--with-zlib-dir=/usr

Or, harder to diagnose, if mysqlnd is built as a module, compilation is fine but there is a load
failure of mysqlnd.so:
PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/mysqlnd.so' -
/usr/lib/php/extensions/mysqlnd.so: undefined symbol: compress in Unknown on line 0



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



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


Thread (4 messages)

« previous php.bugs (#233521) next »