Bug #67849 [NEW]: error compiling mysqlnd if zlib is compiled shared

From: Date: Fri, 15 Aug 2014 14:35:41 +0000
Subject: Bug #67849 [NEW]: error compiling mysqlnd if zlib is compiled shared
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-187141@lists.php.net to get a copy of this message
From: public at grik dot net Operating system: OSX 10.9 PHP version: 5.6.0RC4 Package: Zlib related Bug Type: Bug Bug description:error compiling mysqlnd if zlib is compiled shared Description: ------------ trying to compile php 5.6 RC4 separately pdo-mysql and zlib extensions compile successfully, as well as if zlib is not shared, but if zlib is configured as shared, pdo-mysql extension fails to be built Test script: --------------- php-5.6.0RC4 gri$ ./configure --disable-all --enable-pdo --with-pdo-mysql --with-zlib=shared ... php-5.6.0RC4 gri$ make ... Undefined symbols for architecture x86_64: "_compress", referenced from: _php_mysqlnd_net_encode_pub in mysqlnd_net.o "_uncompress", referenced from: _php_mysqlnd_net_decode_pub in mysqlnd_net.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [sapi/cli/php] Error 1 Expected result: ---------------- build successful Actual result: -------------- Undefined symbols for architecture x86_64: "_compress", referenced from: _php_mysqlnd_net_encode_pub in mysqlnd_net.o "_uncompress", referenced from: _php_mysqlnd_net_decode_pub in mysqlnd_net.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [sapi/cli/php] Error 1 -- Edit bug report at https://bugs.php.net/bug.php?id=67849&edit=1 --

« previous php.bugs (#187141) next »