php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7265 ./configure --with-zlib fails
Submitted: 2000-10-16 22:29 UTC Modified: 2000-11-29 06:19 UTC
From: elkner at linofee dot org Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.3pl1 OS: Linux-slackware 7.0
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: elkner at linofee dot org
New email:
PHP Version: OS:

 

 [2000-10-16 22:29 UTC] elkner at linofee dot org
./configure --prefix=/opt/php4 ... --with-zlib-dir=/usr --with-zlib=/usr ...

...
checking for compress in -lz... yes
...
checking for gzgets in -lz... no
configure: error: Zlib module requires zlib >= 1.0.9.

Environment: 
gcc 2.95.2
/usr/include
/usr/include/zconf.h
/usr/include/zlib.h
/usr/lib
/usr/lib/libz.a
/usr/lib/libz.so
/usr/lib/libz.so.1
/usr/lib/libz.so.1.1.3


libz.a as well as libz.so contain gzgets() for sure and compilation of:
#include "confdefs.h"
char gzgets();int main() { gzgets() ; return 0; }

compiles without any errors linked against -lz and returns 0. There are no other libz s on the system.


So why complains configure about not having gzgets() ?
Any hints, how to fix/debug that problem ?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-17 15:28 UTC] sr@php.net
Have a look at the end of your config.log, there should be the full error message of the compiler/linker, why the zlib test compile fails.

Often there are unresolved dependencies from libraries used by other extensions (which don't do a test compile run), so if a fix isn't obviously through looking at the end of config.log, please update this bug report with the error of the zlib test compile from config.log and your complete (!) configure line.
 [2000-11-29 06:19 UTC] stas@php.net
no feedback
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 02:00:01 2026 UTC