Bug #68302 [Com]: impossible to compile php with zip support

From: Date: Mon, 08 Nov 2021 20:17:53 +0000
Subject: Bug #68302 [Com]: impossible to compile php with zip support
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-237630@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68302&edit=1

 ID:                 68302
 Comment by:         mtbox74 at gmail dot com
 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(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 :(


Previous Comments:
------------------------------------------------------------------------
[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

------------------------------------------------------------------------
[2016-07-10 04:22:36] php-bugs at lists dot php dot net

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.

------------------------------------------------------------------------


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


Thread (18 messages)

« previous php.bugs (#237630) next »