php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73943 Problem when configuring with zip support
Submitted: 2017-01-16 08:13 UTC Modified: -
Votes:24
Avg. Score:4.3 ± 0.9
Reproduced:22 of 22 (100.0%)
Same Version:9 (40.9%)
Same OS:7 (31.8%)
From: pedro dot galan at camara dot es Assigned:
Status: Open Package: *Configuration Issues
PHP Version: 5.6.29 OS: RHEL5
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 — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
33 + 21 = ?
Subscribe to this entry?

 
 [2017-01-16 08:13 UTC] 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




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-03-03 11:38 UTC] 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.
 [2018-12-12 14:12 UTC] agiokov at gmail dot com
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.
 [2019-05-09 06:41 UTC] 852110755 at qq dot com
It is means the lib path not found, you can add the path to '/etc/ld.so.conf', and  retry configure, like this:

cat '/usr/local/bin
/usr/include/lib
/usr/bin
'

ldconfig -v

good luck
 [2019-05-09 09:53 UTC] spam2 at rhsoft dot net
stop giving entirely wrong advises

bin and includes don't belong to ldconfig at all and put /usr/local stuff to system wide configs defeats completly the purpose of compile own stuff without overwrite distribution packages
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Sep 17 22:01:28 2019 UTC