Edit report at https://bugs.php.net/bug.php?id=68302&edit=1
ID: 68302
Updated by: aharvey@php.net
Reported by: 0kaba0 at gmail dot com
Summary: impossible to compile php with zip support
-Status: Open
+Status: Feedback
Type: Bug
Package: Compile Failure
Operating System: Centos 6.5
PHP Version: 5.6.2
Block user comment: N
Private report: N
New Comment:
PHP 5.6.2 with --enable-zip builds OK for me on a stock CentOS 6.5 x86-64 VM (and passes the test
suite). What architecture and compiler are you running on?
Beyond that, the best thing to do is probably to attempt to isolate what combination of configure
options causes the build to fail: start with ./configure --enable-zip, and then gradually
reintroduce each --with and --enable option until the build fails. My suspicion is that one of the
custom library builds that is being used is somehow stomping on the SIZEOF_OFF_T #define.
Previous Comments:
------------------------------------------------------------------------
[2014-10-24 16:43:23] 0kaba0 at gmail dot com
Description:
------------
Compilation fails with the error:
/bin/sh /usr/local/src/php-5.6.2/libtool --silent --preserve-dup-deps --mode=compile cc -Iext/zip/
-I/usr/local/src/php-5.6.2/ext/zip/ -DPHP_ATOM_INC -I/usr/local/src/php-5.6.2/include
-I/usr/local/src/php-5.6.2/main -I/usr/local/src/php-5.6.2 -I/usr/local/src/php-5.6.2/ext/date/lib
-I/usr/local/src/php-5.6.2/ext/ereg/regex -I/opt/xml2/include/libxml2 -I/opt/pcre/include
-I/opt/curlssl//include -I/usr/X11 -I/usr/include/freetype2 -I/opt/php_with_imap_client//include
-I/usr/local/src/php-5.6.2/ext/mbstring/oniguruma -I/usr/local/src/php-5.6.2/ext/mbstring/libmbfl
-I/usr/local/src/php-5.6.2/ext/mbstring/libmbfl/mbfl -I/opt/libmcrypt//include -I/usr/include/mysql
-I/opt/tidy//include -I/opt/xslt/include -I/opt/xslt//include -I/usr/local/src/php-5.6.2/ext/zip/lib
-I/usr/local/src/php-5.6.2/TSRM -I/usr/local/src/php-5.6.2/Zend -I/usr/include -g -O2
-fvisibility=hidden -prefer-pic -c /usr/local/src/php-5.6.2/ext/zip/lib/zip_add.c -o
ext/zip/lib/zip_add.lo
In file included from /usr/local/src/php-5.6.2/ext/zip/lib/zip_add.c:37:
/usr/local/src/php-5.6.2/ext/zip/lib/zipint.h:118:2: error: #error unsupported size of off_t
make: *** [ext/zip/lib/zip_add.lo] Error 1
Test script:
---------------
./configure \
--prefix=/usr/local/php/5.6 \
--exec-prefix=/usr/local/php/5.6 \
--with-config-file-path=/usr/local/php/5.6 \
--disable-fileinfo \
--enable-bcmath \
--enable-calendar \
--enable-exif \
--enable-ftp \
--enable-gd-native-ttf \
--enable-libxml \
--enable-mbstring \
--enable-soap \
--enable-sockets \
--enable-wddx \
--with-bz2 \
--enable-zip \
--with-curl=/opt/curlssl/ \
--with-freetype-dir=/usr \
--with-gd \
--with-gettext \
--with-imap=/opt/php_with_imap_client/ \
--with-imap-ssl=/usr \
--with-jpeg-dir=/usr \
--with-kerberos \
--with-libdir=lib64 \
--with-libexpat-dir=/usr \
--with-libxml-dir=/opt/xml2 \
--with-libxml-dir=/opt/xml2/ \
--with-mcrypt=/opt/libmcrypt/ \
--with-mysql=/usr \
--with-mysql-sock=/var/lib/mysql/mysql.sock \
--with-mysqli=/usr/bin/mysql_config \
--with-openssl=/usr \
--with-openssl-dir=/usr \
--with-pcre-regex=/opt/pcre \
--with-sqlite3=shared \
--enable-pdo=shared \
--with-pdo-mysql=shared \
--with-pdo-sqlite=shared,/usr \
--with-pdo-pgsql=shared \
--with-pgsql=/usr \
--with-pic \
--with-png-dir=/usr \
--with-tidy=/opt/tidy/ \
--with-xmlrpc \
--with-xpm-dir=/usr \
--with-xsl=/opt/xslt/ \
--with-zlib \
--with-zlib-dir=/usr \
--with-iconv \
--enable-cli
Expected result:
----------------
compile without error
Actual result:
--------------
error
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=68302&edit=1