Bug #73943 [Com]: Problem when configuring with zip support

From: Date: Wed, 12 Dec 2018 14:12:15 +0000
Subject: Bug #73943 [Com]: Problem when configuring with zip support
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218421@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73943&edit=1

 ID:                 73943
 Comment by:         agiokov at gmail dot com
 Reported by:        pedro dot galan at camara dot es
 Summary:            Problem when configuring with zip support
 Status:             Open
 Type:               Bug
 Package:            *Configuration Issues
 Operating System:   RHEL5
 PHP Version:        5.6.29
 Block user comment: N
 Private report:     N

 New Comment:

In my case, the issue was caused by the correct path to libzip library missing from the
LD_LIBRARY_PATH environment variable. Adding it there solved it.


Previous Comments:
------------------------------------------------------------------------
[2018-03-03 11:38:59] office at jiripik dot com

I have the same problem with the latest libzip and php-7.2.3 on AWS EC2 Linux.

I have talked to the Libzip team and they advised that the problem is with PHP configure script.

Please advise if I can provide further help.

------------------------------------------------------------------------
[2017-01-16 08:13:36] pedro dot galan at camara dot es

Description:
------------
When enabling ZIP Support (enable-zip):

./configure '--prefix=/usr/local/php537' '--with-apxs2'
'--with-config-file-path=/usr/local/php537/lib' '--disable-debug'
'--disable-rpath' '--enable-inline-optimization' '--with-curl'
'--enable-gd-native-ttf' '--without-gdbm' '--with-gettext'
'--with-iconv' '--with-pcre-regex' '--with-zlib'
'--enable-bcmath' '--enable-exif' '--enable-ftp'
'--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem'
'--enable-sysvshm' '--enable-wddx' '--with-pear'
'--with-kerberos' '--with-ldap' '--with-mysql'
'--with-mysqli' '--with-pgsql'
'--enable-ucd-snmp-hack' '--enable-shmop' '--enable-calendar'
'--enable-mbstring' '--enable-mbregex' '--enable-pcntl' 
'--with-gd' '--with-jpeg-dir=/usr/lib' '--enable-soap'
'--with-mcrypt' '--with-xsl=/usr/lib' '--with-imap'
'--with-imap-ssl' '--enable-zip' '--with-libzip=/usr/local'
'--with-pdo-mysql' '--with-freetype-dir=/usr' '--with-openssl'
'--enable-opcache=no'


I get following error:

checking for zip archive read/writesupport... yes
checking pcre install prefix... no
checking libzip... /usr/local
checking for the location of zlib... /usr
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for libzip... from option: found in /usr/local
checking for zip_open in -lzip... yes
checking for int8_t... (cached) yes
checking for int16_t... (cached) yes
checking for int32_t... (cached) yes
checking for int64_t... (cached) yes
checking for uint8_t... (cached) yes
checking for uint16_t... (cached) yes
checking for uint32_t... (cached) yes
checking for uint64_t... (cached) yes
checking for ssize_t... yes
checking size of short... (cached) 2
checking size of int... (cached) 4
checking size of long... (cached) 4
checking size of long long... (cached) 8
checking size of off_t... 0
configure: error: off_t undefined; check your library configuration





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



--
Edit this bug report at https://bugs.php.net/bug.php?id=73943&edit=1


Thread (8 messages)

« previous php.bugs (#218421) next »