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: 2020-03-29 04:22 UTC
Votes:27
Avg. Score:4.3 ± 0.9
Reproduced:23 of 24 (95.8%)
Same Version:9 (39.1%)
Same OS:8 (34.8%)
From: pedro dot galan at camara dot es Assigned: cmb (profile)
Status: No Feedback Package: *Configuration Issues
PHP Version: 5.6.29 OS: RHEL5
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [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
 [2020-03-21 16:20 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2020-03-21 16:20 UTC] cmb@php.net
Does anybody still experience the originally reported issue with
any of the actively supported PHP versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [2020-03-29 04:22 UTC] 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.
 [2022-01-11 06:18 UTC] 1806680 at gmail dot com
The libzip path not found, you can add the path to '/etc/ld.so.conf',the path like this:
'/usr/local/lib'.
You can find the path with the command: `find / -namt libzip`.

Finally,DO NOT forget:
`ldconfig -v`
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 06:01:29 2024 UTC