php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71655 Fails when compiling Zip Modules
Submitted: 2016-02-23 20:50 UTC Modified: 2016-02-24 11:52 UTC
From: aj at andrews-enterprise dot co dot uk Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: master-Git-2016-02-23 (Git) OS: Ubuntu 14 Trusty
Private report: No CVE-ID: None
 [2016-02-23 20:50 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-02-23 20:58 UTC] nikic@php.net
-Status: Open +Status: Not a bug
 [2016-02-23 20:58 UTC] nikic@php.net
You need to rerun ./buildconf before ./config.nice. The bundled libzip has been updated and includes a new file.
 [2016-02-24 11:52 UTC] aj at andrews-enterprise dot co dot uk
Staffs reply confirmed to be working
 [2021-11-08 20:31 UTC] mtbox74 at gmail dot com
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!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 14:01:28 2024 UTC