Bug #69021 [Com]: failing when compiling extensions

From: Date: Sun, 14 Jul 2019 04:10:01 +0000
Subject: Bug #69021 [Com]: failing when compiling extensions
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-221763@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69021&edit=1 ID: 69021 Comment by: redscourge at gmail dot com Reported by: jfha73 at gmail dot com Summary: failing when compiling extensions Status: Closed Type: Bug Package: Compile Failure Operating System: Ubuntu14.04 PHP Version: 5.6.5 Assigned To: petk Block user comment: N Private report: N New Comment: I remember that these sorts of errors used to happen back in PHP 5.3 if you tried to compile CGI SAPI with ZLIB and also wanted to include used mysqlnd mysqlnd_net.o: undefined reference to symbol 'compress' As a result, I had to add --disable-mysqlnd-compression-support so that --with-zlib=shared,/usr and --with-mysql=mysqlnd would work together Previous Comments: ------------------------------------------------------------------------ [2018-08-25 20:02:31] petk@php.net Hello, I've tested this one with the following configurations: - Ubuntu 14.04+ - PHP 7.1+ ./configure \ --enable-mysqlnd=shared \ --with-mysqli=shared \ --with-pdo-mysql=shared \ --with-bz2=shared \ --with-ldap=shared make && make install Shared extensions were manually enabled in the /usr/local/lib/php.ini extension=mysqlnd.so extension=mysqli.so extension=pdo_mysql.so extension=ldap.so extension=bz2.so (note that mysqlnd.so needs to be enabled before the mysqli and pdo_mysql) And this seems to be working ok. In case you still experience this, please reopen this issue to check your particular configuration. Mainly your configure options and the installed system libraries. Thank you for reporting this issue and helping us make PHP better. ------------------------------------------------------------------------ [2015-02-10 00:59:15] jfha73 at gmail dot com Description: ------------ It fails at BZ2, LDAP, mysqlnd and I don't know how many more, I don't know if this is an Ubuntu thing, but I have been having tons of problems compiling PHP 5.6 and master on Ubuntu, any ideas? Expected result: ---------------- compile Actual result: -------------- MySQLnd /usr/bin/ld: ext/mysqlnd/.libs/mysqlnd_net.o: undefined reference to symbol 'uncompress' //lib/x86_64-linux-gnu/libz.so.1: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 BZ2 php-5.6.5/modules ext/bz2/bz2.lo ext/bz2/bz2_filter.lo -lbz2 /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libbz2.a(bzlib.o): relocation R_X86_64_32S against `BZ2_crc32Table' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libbz2.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status make: *** [ext/bz2/bz2.la] Error 1 LDAP (when compiled with others) checking for LDAP support... yes, shared checking for LDAP Cyrus SASL support... no checking size of long int... 8 checking for 3 arg ldap_set_rebind_proc... no checking for ldap_parse_result... no checking for ldap_parse_reference... no checking for ldap_start_tls_s... no checking for ldap_bind_s... no ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=69021&edit=1

« previous php.bugs (#221763) next »