Bug #77150 [NEW]: ZIP Extension cannot be compiled against latest version of libzip
| From: | s dot pfalz at webcookies dot de | Date: | Wed, 14 Nov 2018 10:35:25 +0000 |
| Subject: | Bug #77150 [NEW]: ZIP Extension cannot be compiled against latest version of libzip | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-217951@lists.php.net to get a copy of this message | ||
From: s dot pfalz at webcookies dot de
Operating system: CentOS 7.5
PHP version: 7.2.12
Package: Compile Failure
Bug Type: Bug
Bug description:ZIP Extension cannot be compiled against latest version of libzip
Description:
------------
If you compile the zip extension against the latest libzip Version
1.5.1a the compile run fails:
In file included from /opt/libzip/include/zip.h:45:0,
from /usr/src/php-7.2.12/ext/zip/php_zip.h:31,
from /usr/src/php-7.2.12/ext/zip/php_zip.c:36:
/usr/src/php-7.2.12/ext/zip/php_zip.c: In function
âphp_zip_object_free_storageâ:
/opt/libzip/include/zipconf.h:14:30: error: invalid suffix "a" on
integer constant
#define LIBZIP_VERSION_MICRO 1a
^
/usr/src/php-7.2.12/ext/zip/php_zip.c:1029:63: note: in expansion of
macro âLIBZIP_VERSION_MICROâ
#if LIBZIP_VERSION_MAJOR == 1 && LIBZIP_VERSION_MINOR == 3 &&
LIBZIP_VERSION_MICRO == 1
^
/usr/src/php-7.2.12/ext/zip/php_zip.c: In function
âc_ziparchive_closeâ:
/opt/libzip/include/zipconf.h:14:30: error: invalid suffix "a" on
integer constant
#define LIBZIP_VERSION_MICRO 1a
^
/usr/src/php-7.2.12/ext/zip/php_zip.c:1542:63: note: in expansion of
macro âLIBZIP_VERSION_MICROâ
#if LIBZIP_VERSION_MAJOR == 1 && LIBZIP_VERSION_MINOR == 3 &&
LIBZIP_VERSION_MICRO == 1
^
make: *** [ext/zip/php_zip.lo] Error 1
make: *** Waiting for unfinished jobs....
That's maybe an error on the libzip code itself using 1a as define, but
I'm not sure so I'll post it here for reference.
Expected result:
----------------
Compile should be completed without a failure
Actual result:
--------------
Compile run failed.
--
Edit bug report at https://bugs.php.net/bug.php?id=77150&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77150&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77150&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77150&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=77150&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=77150&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=77150&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=77150&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=77150&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=77150&r=support
Expected behavior: https://bugs.php.net/fix.php?id=77150&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=77150&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=77150&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=77150&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77150&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=77150&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=77150&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=77150&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77150&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=77150&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=77150&r=mysqlcfg