php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7461 Compile fails during "make" of zlib.c (--with-zlib)
Submitted: 2000-10-25 15:17 UTC Modified: 2000-10-27 09:13 UTC
From: martin at math dot ohiou dot edu Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0 Latest CVS (25/10/2000) OS: Redhat 7.0 (glibc 2.1.92-14)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: martin at math dot ohiou dot edu
New email:
PHP Version: OS:

 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-25 15:20 UTC] martin at math dot ohiou dot edu
Here is my configure line:

./configure --with-zlib --with-mm --with-mysql=/usr/local/mysql --with-mcal=../libmcal --with-ldap --with-imap=../imap --with-gettext --enable-ftp --with-db3=/usr/local/BerkeleyDB.3.1 --with-apache=../apache --with-sablot

"./configure" finishes fine. It's when I do the "make" that zlib.c fails to compile. Here are the messages I get:


 [2000-10-25 15:21 UTC] martin at math dot ohiou dot edu
gcc  -I. -I/root/php4/ext/zlib -I/root/php4 -I/root/php4/main -I/root/apache/src/include -I/root/apache/src/os/unix -I/root/php4/Zend -I/root/php4 -I/usr/local/BerkeleyDB.3.1/include -I/usr/local/include -I/root/imap/c-client -I/root/libmcal -I/usr/local/mysql/include -I/root/php4/ext/xml/expat/xmltok -I/root/php4/ext/xml/expat/xmlparse -I/root/php4/TSRM  -DXML_BYTE_ORDER=12 -g -O2  -c zlib.c && touch zlib.lo
zlib.c: In function `gz_seeker':
zlib.c:788: incompatible type for argument 2 of `gzseek'
zlib.c: At top level:
zlib.c:803: warning: initialization from incompatible pointer type
make[3]: *** [zlib.lo] Error 1
make[3]: Leaving directory `/root/php4/ext/zlib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/php4/ext/zlib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/php4/ext'
make: *** [all-recursive] Error 1
 [2000-10-25 15:22 UTC] martin at math dot ohiou dot edu
Here is the function "gz_seeker" from zlib.c:

static int gz_seeker(void *cookie,fpos_t position, int whence) {
        return gzseek(((struct gz_cookie *)cookie)->gz_file,position,whence);
 [2000-10-27 06:25 UTC] mrobinso@php.net
Looks like the same sort of error we got in curl.c
and gd.c from that mega-patch.

I got the same error in a snapshot from Oct 26, 11:45am.
Inadvertently filed a dupe report (#7462).

Error was:

zlib.c: In function `gz_seeker':
zlib.c:787: incompatible type for argument 2 of `gzseek'
zlib.c: At top level:
zlib.c:802: warning: initialization from incompatible pointer type
zlib.c: In function `zlib_fopen_wrapper':
zlib.c:831: warning: return makes pointer from integer without a cast
make[3]: *** [zlib.lo] Error 1
make[3]: Leaving directory `/usr/src/php4-200010261145/ext/zlib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/php4-200010261145/ext/zlib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/php4-200010261145/ext'
make: *** [all-recursive] Error 1


 [2000-10-27 09:13 UTC] sniper@php.net
This seems to be fixed now. Do a cvs update.

--Jani
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Oct 12 07:00:02 2026 UTC