Error compiling php 4.2.3 with zlib

From: Date: Mon, 30 Sep 2002 09:17:18 +0000
Subject: Error compiling php 4.2.3 with zlib
Groups: php.install 
Request: Send a blank email to php-install+get-8610@lists.php.net to get a copy of this message
Compiling PHP with zlib fails with the following errors. Exclude zlib support and it compiles without issue. Any help is appreciated. In file included from /usr/include/bits/xopen_lim.h:34,
                from /usr/include/limits.h:152,
                from /usr/src/php-4.2.3/Zend/zend.h:163,
                from /usr/src/php-4.2.3/main/php.h:34,
                from zlib_fopen_wrapper.c:22:
/usr/include/bits/stdio_lim.h:24: warning: `L_tmpnam' redefined /usr/local/include/stdio.h:16: warning: this is the location of the previous definition /usr/include/bits/stdio_lim.h:29: warning: `L_ctermid' redefined /usr/local/include/stdio.h:13: warning: this is the location of the previous definition /usr/include/bits/stdio_lim.h:30: warning: `L_cuserid' redefined /usr/local/include/stdio.h:14: warning: this is the location of the previous definition zlib_fopen_wrapper.c:55: parse error before `gz_cookie_functions' zlib_fopen_wrapper.c:57: warning: initialization makes integer from pointer without a cast zlib_fopen_wrapper.c:58: warning: excess elements in scalar initializer zlib_fopen_wrapper.c:58: warning: (near initialization for `gz_cookie_functions') zlib_fopen_wrapper.c:59: warning: excess elements in scalar initializer zlib_fopen_wrapper.c:59: warning: (near initialization for `gz_cookie_functions') zlib_fopen_wrapper.c:60: warning: excess elements in scalar initializer zlib_fopen_wrapper.c:60: warning: (near initialization for `gz_cookie_functions') zlib_fopen_wrapper.c:60: warning: data definition has no type or storage class zlib_fopen_wrapper.c: In function `zlib_fopen_wrapper': zlib_fopen_wrapper.c:88: warning: return makes pointer from integer without a cast make[3]: *** [zlib_fopen_wrapper.lo] Error 1 make[3]: Leaving directory `/usr/src/php-4.2.3/ext/zlib' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/src/php-4.2.3/ext/zlib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/php-4.2.3/ext' make: *** [all-recursive] Error 1

« previous php.install (#8610) next »