Re: [PHP-DEV] PHP 4.0 Bug #8751: configure misdetects zlib on FreeBSD 4.1.1 From: Ignacio Vazquez-Abrams (ignacio <email protected>)
Date: 01/17/01

On 17 Jan 2001 webmaster <email protected> wrote:

> From: webmaster <email protected>
> Operating system: FreeBSD 4.1.1
> PHP version: 4.0.4pl1
> PHP Bug Type: PHP options/info functions
> Bug description: configure misdetects zlib on FreeBSD 4.1.1
>
> When running configure for PHP 4.0.4pl1 on FreeBSD 4.1.1/i386, configure fails to properly detect FreeBSD's builtin zlib support. Zlib version 1.1.3 is preinstalled in /usr/lib/libz.{a,so}, however when configure tries to verify zlib's presence it says "zlib support requires zlib version >= 1.0.9" and terminates. It also complains that it can't find gzgets in -lz.
>
> The exact command line I used was:
> ./configure --with-apxs --enable-sigchild \
> --enable-magic-quotes --enable-bcmath --with-bz2 \
> --with-gdbm --with-ndbm --enable-ftp --with-gd=/usr/local \
> --with-jpeg-dir=/usr/local --with-xpm-dir=/usr/X11R6 \
> --with-ttf --enable-gd-imgstrttf --with-imap \
> --with-java=/usr/local/jdk1.1.8 --with-ldap --with-mhash \
> --with-mysql=/usr/local --with-iodbc --with-pdflib \
> --with-zlib-dir=/usr --with-png-dir=/usr/local \
> --with-tiff-dir=/usr/local --with-mm --enable-trans-sid \
> --with-zlib=/usr --enable-sockets \
> --enable-inline-optimization --enable-memory-limit
>
> Upon removing the --with-zlib flag, php compiles fine and works normally.
>

Could you please configure PHP with --with-zlib and post the last 15-20 lines
of config.log. I don't have experience with PHP under FreeBSD, but usually the
zlib error indicates that something else is wrong.

-- 
Ignacio Vazquez-Abrams  <ignacio <email protected>>

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>