|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59067 Can't compile make: *** [php_zip.lo] Error 1
Submitted: 2010-02-09 04:44 UTC Modified: 2012-06-27 09:33 UTC
From: tcapacci at acneuro dot com Assigned: pajoye (profile)
Status: Closed Package: zip (PECL)
PHP Version: 5.1.6 OS: Centos5.4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
4 + 20 = ?
Subscribe to this entry?

 [2010-02-09 04:44 UTC] tcapacci at acneuro dot com
pecl install zip

Reproduce code:
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /var/tmp/pear-build-root/zip-1.10.2/libtool --mode=compile gcc  -I. -I/tmp/pear/temp/zip -DPHP_ATOM_INC -I/var/tmp/pear-build-root/zip-1.10.2/include -I/var/tmp/pear-build-root/zip-1.10.2/main -I/tmp/pear/temp/zip -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/zip/php_zip.c -o php_zip.lo
mkdir .libs
 gcc -I. -I/tmp/pear/temp/zip -DPHP_ATOM_INC -I/var/tmp/pear-build-root/zip-1.10.2/include -I/var/tmp/pear-build-root/zip-1.10.2/main -I/tmp/pear/temp/zip -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/zip/php_zip.c  -fPIC -DPIC -o .libs/php_zip.o
/tmp/pear/temp/zip/php_zip.c:30:31: error: ext/pcre/php_pcre.h: No such file or directory
/tmp/pear/temp/zip/php_zip.c:715: error: initializer element is not constant
/tmp/pear/temp/zip/php_zip.c:715: error: (near initialization for 'zip_functions[0].fname')
/tmp/pear/temp/zip/php_zip.c:715: error: expected '}' before 'ZEND_RAW_FENTRY'
/tmp/pear/temp/zip/php_zip.c:1112: warning: initialization discards qualifiers from pointer target type
make: *** [php_zip.lo] Error 1
ERROR: `make' failed

Expected result:
make complete

Actual result:
make: *** [php_zip.lo] Error 1
ERROR: `make' failed

I have installed pcre
yum install pcre.x86_64 pcre-devel.x86_64

Running Centos 64 bits


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-02-09 04:55 UTC] pierre dot php at gmail dot com
We don't support 5.1.x anymor.
 [2010-02-09 05:12 UTC] tcapacci at acneuro dot com
Upgrade to PHP5.2 fixed it, thanks
 [2012-06-27 09:25 UTC] is dot wei at qq dot com
/root/zip-1.10.2/php_zip.c:668: error: expected ')' before numeric constant
/root/zip-1.10.2/php_zip.c:1112: error: 'zip_functions' undeclared here (not in a function)
make: *** [php_zip.lo] Error 1
 [2012-06-27 09:27 UTC] is dot wei at qq dot com
my php ver is 5.2.4
 [2012-06-27 09:33 UTC]
-Assigned To: +Assigned To: pajoye
 [2012-06-27 09:33 UTC]
@is dot wei at qq dot com

We don't support 5.2 anymore. Please upgrade to 5.3+
 [2014-04-02 13:26 UTC] davividal at gmail dot com
Is PHP 5.5.11 still supported?

If so, I'm facing this issue when compiling PHP:

In file included from /home/davi.vidal/.phpenv/php-src/ext/zip/php_zip.h:34:0,
                 from /home/davi.vidal/.phpenv/php-src/ext/zip/php_zip.c:32:
/home/davi.vidal/.phpenv/php-src/ext/zip/lib/zip.h:59:21: fatal error: zipconf.h: No such file or directory
 #include <zipconf.h>
compilation terminated.
make: *** [ext/zip/php_zip.lo] Error 1
 [2016-05-02 17:28 UTC] copyrenzhe at gmail dot com
php7 face the same issue.
compilation terminated.

some error code:
php_zip.c:1339:31: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1
php_zip.c:1514:37: error: macro "RETVAL_STRINGL" passed 3 arguments, but takes just 2
php_zip.c:1906:3: error: ‘RETVAL_STRING’ undeclared (first use in this function)
php_zip.c:2380:6: error: too many arguments to function ‘zend_hash_index_find’
make: *** [ext/zip/php_zip.lo] Error 1
 [2019-06-28 02:24 UTC] longzhiyongdxfncel at 163 dot com
In file included from /opt/php-7.3.6/ext/zip/php_zip.h:31:0,
                 from /opt/php-7.3.6/ext/zip/php_zip.c:36:
/usr/local/include/zip.h:59:21: 致命错误:zipconf.h:没有那个文件或目录
 #include <zipconf.h>
make: *** [ext/zip/php_zip.lo] 错误 1
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Mar 03 00:01:29 2024 UTC