|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9932 Finds wrong -lz if there are lots of build options
Submitted: 2001-03-22 11:41 UTC Modified: 2001-04-28 15:51 UTC
From: pete_lancashire at columbia dot com Assigned:
Status: Closed Package: Installation problem
PHP Version: 4.0.4pl1 OS: Solaris 7 Sparc
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: pete_lancashire at columbia dot com
New email:
PHP Version: OS:


 [2001-03-22 11:41 UTC] pete_lancashire at columbia dot com
System has libz in two places
  in /usr/openwin/lib

  in /usr/local/lib
    /usr/local/lib/ ->
    /usr/local/lib/ ->

The following configure options find the correct libz
./configure \
 --with-apxs=/usr/local/apache/bin/apxs \
 --with-config-file-path=/usr/local/apache/httpd/conf \
 --enable-track-vars \
 --enable-ftp \
 --enable-bcmath=yes \
 --disable-debug \
 --enable-memory-limit=yes \

The following generates the error
  checking whether to include zlib support... yes
  checking for gzgets in -lz... no
  configure: error: Zlib module requires zlib >= 1.0.9.
./configure \
 --with-apxs=/usr/local/apache/bin/apxs \
 --with-config-file-path=/usr/local/apache/httpd/conf \
 --enable-track-vars \
 --with-zlib=/usr/local \
 --with-mysql=/usr/local/mysql \
 --enable-ftp \
 --with-tiff-dir=/usr/local \
 --with-jpeg-dir=/usr/local \
 --with-xpm-dir=/usr/X11R6 \
 --with-gd=/usr/local \
 --with-gdbm=/usr/local \
 --enable-bcmath=yes \
 --disable-debug \
 --enable-memory-limit=yes \
 --enable-calendar \
 --enable-magic-quotes \
 --with-db2=/usr/local/BerkeleyDB277 \

I tried to eliminate one at a time different options but
when I find one that by removing it will let the process
finish, and then put that option into the above "success"
configure above, the configure will work. I.e. it is not
just one option causing the conflict.

Current work around is to not use zlib for now.

UPDATE: Removing the libz from /usr/openwin/lib works


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-26 17:58 UTC]
Please check the config.log file for more info of what might be wrong.


 [2001-04-28 15:51 UTC]
No feedback

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun May 28 19:04:55 2023 UTC