Re: PHP 4.0 Bug #7461 Updated: Compile fails during "make" of zlib.c (--with-zlib)
| From: | Scott Martin | Date: | Fri, 27 Oct 2000 12:50:16 +0000 |
| Subject: | Re: PHP 4.0 Bug #7461 Updated: Compile fails during "make" of zlib.c (--with-zlib) | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-36154@lists.php.net to get a copy of this message | ||
Looks like it is. Still got a warning in the zlib section but it built.
----- Original Message -----
From: "Bug Database" <php-dev@lists.php.net>
To: <martin@math.ohiou.edu>
Sent: Friday, October 27, 2000 9:13 AM
Subject: PHP 4.0 Bug #7461 Updated: Compile fails during "make" of zlib.c
(--with-zlib)
> ID: 7461
> Updated by: sniper
> Reported By: martin@math.ohiou.edu
> Status: Closed
> Bug Type: Compile Failure
> Assigned To:
> Comments:
>
> This seems to be fixed now. Do a cvs update.
>
> --Jani
>
> Previous Comments:
> --------------------------------------------------------------------------
-
>
> [2000-10-27 06:25:41] 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-25 15:22:19] martin@math.ohiou.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-25 15:21:37] martin@math.ohiou.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/us
r/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:20:30] martin@math.ohiou.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 --wit
h-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:17:20] martin@math.ohiou.edu
>
>
> --------------------------------------------------------------------------
-
>
> The remainder of the comments for this report are too long. To view the
rest of the comments, please view the bug report online.
>
> Full Bug description available at: http://bugs.php.net/?id=7461
>
>