Bug #66915 [NEW]: mysqlnd with compression support : missing explicit dependency to zlib

From: Date: Mon, 17 Mar 2014 10:41:12 +0000
Subject: Bug #66915 [NEW]: mysqlnd with compression support : missing explicit dependency to zlib
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184809@lists.php.net to get a copy of this message
From:             mblancha at free dot fr
Operating system: Linux
PHP version:      5.5.10
Package:          *Compile Issues
Bug Type:         Bug
Bug description:mysqlnd with compression support : missing explicit dependency to zlib

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 bug report at https://bugs.php.net/bug.php?id=66915&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=66915&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=66915&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=66915&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=66915&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=66915&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=66915&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=66915&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=66915&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=66915&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=66915&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=66915&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=66915&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=66915&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66915&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=66915&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=66915&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=66915&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66915&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=66915&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=66915&r=mysqlcfg



Thread (4 messages)

« previous php.bugs (#184809) next »