Bug #71655 [Com]: Fails when compiling Zip Modules
Edit report at https://bugs.php.net/bug.php?id=71655&edit=1
ID: 71655
Comment by: mtbox74 at gmail dot com
Reported by: aj at andrews-enterprise dot co dot uk
Summary: Fails when compiling Zip Modules
Status: Not a bug
Type: Bug
Package: Compile Failure
Operating System: Ubuntu 14 Trusty
PHP Version: master-Git-2016-02-23 (Git)
Block user comment: N
Private report: N
New Comment:
I'm trying to compile php 7.4 and getting a curious error when I combine --with-zlib --with-zip
--with-pdo-pgsql. It says:
ext/zip/.libs/php_zip.o: In function `c_ziparchive_setEncryptionName':
/trusty/Downloads/php-7.4.24/ext/zip/php_zip.c:2252: undefined reference to
`zip_file_set_encryption'
ext/zip/.libs/php_zip.o: In function `c_ziparchive_setEncryptionIndex':
/trusty/Downloads/php-7.4.24/ext/zip/php_zip.c:2276: undefined reference to
`zip_file_set_encryption'
ext/zip/.libs/php_zip.o: In function `zm_startup_zip':
/trusty/Downloads/php-7.4.24/ext/zip/php_zip.c:3197: undefined reference to
`zip_libzip_version'
ext/zip/.libs/php_zip.o: In function `zm_info_zip':
/trusty/Downloads/php-7.4.24/ext/zip/php_zip.c:3231: undefined reference to
`zip_libzip_version'
collect2: error: ld returned 1 exit status
Makefile:293: recipe for target 'sapi/cli/php' failed
make: *** [sapi/cli/php] Error 1
If I remove --with-pdo-pgsql no errors appears.
System: xbuntu 18.04. I've installed manually zlib 1.5.2 to use encryptions methods provided by
zip.
I can compile with pdo-mysql but not with pdo-pgsql :(
Trace: https://gist.github.com/nordin74/d5a784c907252d067c357eb332709339
Thanks!
Previous Comments:
------------------------------------------------------------------------
[2016-02-24 11:52:06] aj at andrews-enterprise dot co dot uk
Staffs reply confirmed to be working
------------------------------------------------------------------------
[2016-02-23 20:58:54] nikic@php.net
You need to rerun ./buildconf before ./config.nice. The bundled libzip has been updated and includes
a new file.
------------------------------------------------------------------------
[2016-02-23 20:50:21] aj at andrews-enterprise dot co dot uk
Description:
------------
Cleaned up environment, grabbed latest code and tried compiling the same way as always. Running
Ubuntu 14 Trusty all up to date.
Commands executed in order in test scripts section.
Test script:
---------------
apt-get clean && apt-get autoclean
apt-get update && apt-get -y upgrade && apt-get -y dist-upgrade && apt-get
-y --purge autoremove && do-release-upgrade
reboot
cd /usr/src/php-src
make clean
git pull
./config.nice
make -j2
Actual result:
--------------
ext/zip/lib/.libs/zip_delete.o: In function `zip_delete':
/usr/src/php-src/ext/zip/lib/zip_delete.c:57: undefined reference to `_zip_hash_delete'
ext/zip/lib/.libs/zip_discard.o: In function `zip_discard':
/usr/src/php-src/ext/zip/lib/zip_discard.c:61: undefined reference to `_zip_hash_free'
ext/zip/lib/.libs/zip_name_locate.o: In function `_zip_name_locate':
/usr/src/php-src/ext/zip/lib/zip_name_locate.c:92: undefined reference to `_zip_hash_lookup'
ext/zip/lib/.libs/zip_new.o: In function `_zip_new':
/usr/src/php-src/ext/zip/lib/zip_new.c:55: undefined reference to `_zip_hash_new'
ext/zip/lib/.libs/zip_open.o: In function `_zip_open':
/usr/src/php-src/ext/zip/lib/zip_open.c:237: undefined reference to `_zip_hash_add'
ext/zip/lib/.libs/zip_set_name.o: In function `_zip_set_name':
/usr/src/php-src/ext/zip/lib/zip_set_name.c:124: undefined reference to `_zip_hash_add'
/usr/src/php-src/ext/zip/lib/zip_set_name.c:129: undefined reference to `_zip_hash_delete'
/usr/src/php-src/ext/zip/lib/zip_set_name.c:124: undefined reference to `_zip_hash_add'
ext/zip/lib/.libs/zip_unchange.o: In function `_zip_unchange':
/usr/src/php-src/ext/zip/lib/zip_unchange.c:79: undefined reference to `_zip_hash_add'
/usr/src/php-src/ext/zip/lib/zip_unchange.c:83: undefined reference to `_zip_hash_delete'
/usr/src/php-src/ext/zip/lib/zip_unchange.c:84: undefined reference to `_zip_hash_delete'
ext/zip/lib/.libs/zip_unchange_all.o: In function `zip_unchange_all':
/usr/src/php-src/ext/zip/lib/zip_unchange_all.c:46: undefined reference to `_zip_hash_revert'
collect2: error: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
make: *** Waiting for unfinished jobs....
ext/zip/lib/.libs/zip_delete.o: In function `zip_delete':
/usr/src/php-src/ext/zip/lib/zip_delete.c:57: undefined reference to `_zip_hash_delete'
ext/zip/lib/.libs/zip_discard.o: In function `zip_discard':
/usr/src/php-src/ext/zip/lib/zip_discard.c:61: undefined reference to `_zip_hash_free'
ext/zip/lib/.libs/zip_name_locate.o: In function `_zip_name_locate':
/usr/src/php-src/ext/zip/lib/zip_name_locate.c:92: undefined reference to `_zip_hash_lookup'
ext/zip/lib/.libs/zip_new.o: In function `_zip_new':
/usr/src/php-src/ext/zip/lib/zip_new.c:55: undefined reference to `_zip_hash_new'
ext/zip/lib/.libs/zip_open.o: In function `_zip_open':
/usr/src/php-src/ext/zip/lib/zip_open.c:237: undefined reference to `_zip_hash_add'
ext/zip/lib/.libs/zip_set_name.o: In function `_zip_set_name':
/usr/src/php-src/ext/zip/lib/zip_set_name.c:124: undefined reference to `_zip_hash_add'
/usr/src/php-src/ext/zip/lib/zip_set_name.c:129: undefined reference to `_zip_hash_delete'
/usr/src/php-src/ext/zip/lib/zip_set_name.c:124: undefined reference to `_zip_hash_add'
ext/zip/lib/.libs/zip_unchange.o: In function `_zip_unchange':
/usr/src/php-src/ext/zip/lib/zip_unchange.c:79: undefined reference to `_zip_hash_add'
/usr/src/php-src/ext/zip/lib/zip_unchange.c:83: undefined reference to `_zip_hash_delete'
/usr/src/php-src/ext/zip/lib/zip_unchange.c:84: undefined reference to `_zip_hash_delete'
ext/zip/lib/.libs/zip_unchange_all.o: In function `zip_unchange_all':
/usr/src/php-src/ext/zip/lib/zip_unchange_all.c:46: undefined reference to `_zip_hash_revert'
collect2: error: ld returned 1 exit status
make: *** [sapi/fpm/php-fpm] Error 1
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71655&edit=1
Thread (4 messages)