#32710 [Opn]: Configure test script doesn't detect zlib. gzgets in -lz test fails.

From: Date: Fri, 15 Apr 2005 01:56:58 +0000
Subject: #32710 [Opn]: Configure test script doesn't detect zlib. gzgets in -lz test fails.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-77573@lists.php.net to get a copy of this message
 ID:               32710
 User updated by:  software-php at interfasys dot ch
 Reported By:      software-php at interfasys dot ch
 Status:           Open
 Bug Type:         Compile Failure
 Operating System: FreeBSD 5.3
 PHP Version:      4.3.11
 New Comment:

From config.log:
configure: failed program was:
#line 18132 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gzgets();

int main() {
gzgets()
; return 0; }


Previous Comments:
------------------------------------------------------------------------

[2005-04-15 03:55:18] software-php at interfasys dot ch

Description:
------------
I can compile 4.3.10 just fine with this config:

./configure \
        --with-apxs \
        --disable-ipv6 \
        --with-curl=/usr/local/lib \
        --with-gd=/usr/local \
        --with-jpeg-dir=/usr/local \
        --with-png-dir=/usr/local \
        --with-zlib-dir=/usr/local/lib \
        --enable-gd-native-ttf \
        --with-ttf \
        --with-freetype-dir=/usr/local \
        --with-gettext \
        --with-kerberos \
        --with-mcrypt \
        --with-mhash \
        --with-mysql=/usr/local/mysql \
        --with-pear \
        --with-dom \
        --with-dom-xslt \
        --with-dom-exslt \
        --with-zlib \
        --with-zip \
        --with-openssl \
        --enable-bcmath \
        --enable-calendar \
        --enable-ftp \
        --enable-magic-quotes \
        --enable-sockets \
        --enable-track-vars \
        --with-iconv=/usr/local \
        --with-imap \
        --with-imap-ssl \
        --with-bz2 \
        --enable-mbstring

but if I try with 4.3.11 I get this:
checking for ZLIB support... yes
checking if the location of ZLIB install directory is defined...
/usr/local/lib
checking for gzgets in -lz... no
configure: error: ZLIB extension requires zlib >= 1.0.9

The latest Zlib has been compiled and the phpinfo in 4.3.10 shows
this:
ZLib Support 	enabled
Compiled Version 	1.2.2
Linked Version 	1.2.1


If I use the configure file from 4.3.10 then all checks are passed and
make can be started (it only fails at the end of the make process
because mbstring also has a problem).

I've tried with a .12 snapshot and I got the same result.




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=32710&edit=1


Thread (11 messages)

« previous php.bugs (#77573) next »