Edit report at https://bugs.php.net/bug.php?id=68302&edit=1
ID: 68302
Updated by: cmb@php.net
Reported by: 0kaba0 at gmail dot com
Summary: impossible to compile php with zip support
Status: Closed
Type: Bug
Package: Compile Failure
Operating System: Centos 6.5
PHP Version: 5.6.2
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
> I'm getting something similar [â¦]
That does not look related; please open a new bug report.
Previous Comments:
------------------------------------------------------------------------
[2021-11-08 20:17:53] mtbox74 at gmail dot com
I'm getting something similar(PHP 7.4) when combining --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 :(
------------------------------------------------------------------------
[2016-10-17 10:09:23] bwoebi@php.net
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=48198e4c257825ab89ee027bff5a93fc2cd59601
Log: Fix #68302: impossible to compile php with zip support
------------------------------------------------------------------------
[2016-08-17 10:50:57] cmb@php.net
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=48198e4c257825ab89ee027bff5a93fc2cd59601
Log: Fix #68302: impossible to compile php with zip support
------------------------------------------------------------------------
[2016-07-19 17:29:38] cmb@php.net
@pzawora Thanks.
------------------------------------------------------------------------
[2016-07-19 16:34:59] pzawora at gmail dot com
It happens when SIZEOF_OFF_T is set to ZERO
To determine SIZEOF_OFF_T ./configure does not check errors on compilation.
Error could be caused by any missing library (ie pg.so).
configure:106255: cc -o conftest -I/usr/include ....... -lxml2 -lz -lm -ldl >&5
To reproduce try to remove any (usable) library from ldconfig path
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=68302
--
Edit this bug report at https://bugs.php.net/bug.php?id=68302&edit=1