#18616 [NEW]: configure fails on --with-zlib
| From: | phpbugs at drcheap dot com | Date: | Sun, 28 Jul 2002 22:20:12 +0000 |
| Subject: | #18616 [NEW]: configure fails on --with-zlib | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-15453@lists.php.net to get a copy of this message | ||
From: phpbugs@drcheap.com
Operating system: Slackware Linux 8.0 (2.4.5 krnl)
PHP version: 4.2.2
PHP Bug Type: Compile Failure
Bug description: configure fails on --with-zlib
Was running PHP 4.1.2 no probs...
D/L PHP 4.2.2, unpack, then configure with same configure command that I
used on my 4.1.2 source:
./configure \
--with-apxs=/usr/local/apache/bin/apxs \
--with-mysql=/usr/local/mysql \
--with-zlib \
--with-zlib-dir==../zlib-1.1.4 \
--with-gd=../gd-1.8.4 \
--with-jpeg-dir=../jpeg-6b \
--with-png-dir=../libpng-1.2.1 \
--enable-sigchild \
--enable-track-vars
I get this error after 200 or so lines of output:
Configuring extensions
checking if the location of ZLIB install directory is defined... yes
checking for ZLIB support... yes
checking for gzgets in -lz... no
configure: error: ZLIB extension requires zlib >= 1.0.9
Here's the last bit of config.log:
configure:9674: checking if the location of ZLIB install directory is
defined
configure:9723: checking for ZLIB support
configure:10037: checking for gzgets in -lz
configure:10056: gcc -o conftest -g -O2 -DLINUX=22 -DMOD_SSL=208105
-DUSE_HSREG
EX -DEAPI -DUSE_EXPAT conftest.c -lz -lcrypt -lresolv -lm -ldl -lnsl
-lresolv
-lcrypt 1>&5
/tmp/ccxKPnPF.o: In function `main':
/usr/src/php-4.2.2/configure:10052: undefined reference to `gzgets'
collect2: ld returned 1 exit status
configure: failed program was:
#line 10045 "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; }
--
Edit bug report at http://bugs.php.net/?id=18616&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18616&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18616&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18616&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18616&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18616&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18616&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18616&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18616&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18616&r=globals