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

From: Date: Tue, 19 Jul 2016 16:35:03 +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-202425@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:         pzawora at gmail dot com
 Reported by:        0kaba0 at gmail dot com
 Summary:            impossible to compile php with zip support
 Status:             No Feedback
 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:

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


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

------------------------------------------------------------------------
[2016-06-28 18:41:34] cmb@php.net

> error: #error unsupported size of off_t

I wonder to what SIZEOF_OFF_T is defined. See main/php_config.h.

------------------------------------------------------------------------
[2016-05-24 05:52:04] nulash2010cool at gmail dot com

I also have the same error.. Pls help.

My specification: CentOs 6.5, MySQL 5.6.30 Apache 2.4.20 Php 5.6.21

The line i used to configure:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysqli=/usr/local/mysql/bin/mysql_config
--with-pdo-mysql=/usr/local/mysql/

Output obtained:
/usr/local/src/php/php-5.6.21/ext/dom/node.c:1901: undefined reference to
`xmlOutputBufferGetSize'
/usr/local/src/php/php-5.6.21/ext/dom/node.c:1907: undefined reference to
`xmlOutputBufferGetContent'
ext/dom/.libs/documenttype.o: In function `dom_documenttype_internal_subset_read':
/usr/local/src/php/php-5.6.21/ext/dom/documenttype.c:214: undefined reference to
`xmlOutputBufferGetSize'
/usr/local/src/php/php-5.6.21/ext/dom/documenttype.c:214: undefined reference to
`xmlOutputBufferGetContent'
/usr/local/src/php/php-5.6.21/ext/dom/documenttype.c:214: undefined reference to
`xmlOutputBufferGetSize'
/usr/local/src/php/php-5.6.21/ext/dom/documenttype.c:214: undefined reference to
`xmlOutputBufferGetSize'
ext/simplexml/.libs/simplexml.o: In function `zim_simplexml_element_asXML':
/usr/local/src/php/php-5.6.21/ext/simplexml/simplexml.c:1428: undefined reference to
`xmlOutputBufferGetContent'
/usr/local/src/php/php-5.6.21/ext/simplexml/simplexml.c:1428: undefined reference to
`xmlOutputBufferGetSize'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

------------------------------------------------------------------------
[2016-03-16 18:12:00] michael dot duelm at giata dot de

Compilation also fails with 5.6.18 and 5.6.19

./php-5.6.18/ext/zip/lib/zipint.h:118:2: error: #error unsupported size of off_t
make: *** [ext/zip/lib/zip_add.lo] Error 1

'./configure' \
'--with-libdir=lib64' \
'--with-jpeg-dir' \
'--enable-ftp' \
'--with-mysql=/usr/local/mysql' \
'--with-mysqli=/usr/local/mysql/bin/mysql_config' \
'--enable-pdo' \
'--with-pdo-mysql=/usr/local/mysql' \
'--with-pdo-sqlite' \
'--with-pdo-firebird=shared,/opt/firebird' \
'--with-libxml-dir=/usr/local/lib' \
'--enable-soap' \
'--with-zlib' \
'--disable-cgi' \
'--with-gd' \
'--with-xsl' \
'--with-mcrypt=/usr/lib' \
'--with-openssl' \
'--enable-mbstring' \
'--enable-mbregex' \
'--with-interbase=shared,/opt/firebird' \
'--enable-zip' \
'--enable-bcmath'

------------------------------------------------------------------------
[2015-09-10 04:39:43] ax at jentian dot com

Remove --with-pdo-pgsql  pass.

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


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 (#202425) next »