php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #16669 bug ? configure .. with-zlib=path ..
Submitted: 2002-04-17 16:16 UTC Modified: 2002-04-18 18:59 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: PLancashire at Columbia dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 4.1.2 OS: Solaris 2.8
Private report: No CVE-ID: None
 [2002-04-17 16:16 UTC] PLancashire at Columbia dot com
with just either one, configure is ok

Solaris Sparc 2.8 Patchkit as of 5/Apr/2002
Gcc 3.0.3 (Sunfreeware)
binutils 2.11.2 (Sunfreeware)
make GNU Make version 3.79.1 (Sunfreeware)
libtool GNU libtool 1.4 (1.920 2001/04/24 23:26:18) (Sunfreeware)
java j2sdk1_3_1_03 (have also tried with stock java1.2)
php 4.1.2
---------------------------------------
./configure --with-zlib=/usr/local 

I spotted in the configure output ..

Configuring extensions
checking if the location of ZLIB install directory is defined... no
checking whether to include ZLIB support... yes

configure help says you can place the directory on --with-zlib

 ./configure --help | grep zlib
  --with-zlib-dir=<DIR>   Define the location of zlib install directory
  --with-zlib[=DIR]       Include zlib support (requires zlib >= 1.0.9).
                          DIR is the zlib install directory.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-17 16:17 UTC] PLancashire at Columbia dot com
delete first line of submission and java version, was preparing for another submission
 [2002-04-17 16:44 UTC] PLancashire at Columbia dot com
change from configuration to documentation issue
 [2002-04-18 15:09 UTC] sniper@php.net
What's the bug here?

 [2002-04-18 17:08 UTC] PLancashire at Columbia dot com
It is easy to miss --with-zlib-dir=<DIR>
If you do not use this option running configure will give
checking if the location of ZLIB install directory is defined... no

and could then one use the wrong zlib ?

if you just use the --with-zlib=<dir> then it looks like
the directory is not getting set. At least by the output
from configure.

-pete
 [2002-04-18 18:59 UTC] sniper@php.net
Well..you're the first one who actually has even noticed
that. I can assure you that it is not a bug and it doesn't
need any documentation either. :)

Just use --with-zlib as always, you can ignore the other
setting as it's there only for convinience. 

Difference is that when you use --with-zlib=<dir> (ie. with the path) the configure will ONLY look for zlib installation
in that directory. If you use --with-zlib-dir=<dir>, then that directory will be added to the search path but it doesn't necessarily need to contain any 'valid' path to zlib
installation, provided that it's found in some 'standard' path.

This was added to fix some issues..but I can't remember now
what those were.. :I

Just use --with-zlib=<dir> 

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 18:01:35 2024 UTC