[PHP-DEV] Can't compile new Zlib interface From: Michael Kunze (mkunze <email protected>)
Date: 05/31/98

Hi all,

my attempt to compile the new zlib interface with php3 RC5 fails.

Platform is Linux 2.33 with very fresh zlib v 1.1.2.

Here is my configure call:

./configure --with-shared-apache=/web/apache --with-gd=/usr/local/gd
--with-mysql=/usr/local --with-zlib

When compiling i get the following error output:

gcc -O2 -fpic -fpic -I. -I. -I/web/apache/src/include
-I/web/apache/src/os/unix -I/usr/local/include/mysql
-I/usr/local/gd/include -g -Wall -c functions/zlib.c -o
functions/zlib.o
functions/zlib.c: In function `php3_minit_zlib':
functions/zlib.c:160: warning: implicit declaration of function
`ZLIB_GLOBAL'
functions/zlib.c:160: invalid lvalue in assignment
functions/zlib.c: At top level:
functions/zlib.c:164: warning: static declaration for
`php3_mshutdown_zlib' follows non-static
functions/zlib.c: In function `php3_info_zlib':
functions/zlib.c:189: warning: passing arg 1 of `php3_apache_puts'
discards `const' from pointer target type
functions/zlib.c: In function `php3_gzopen':
functions/zlib.c:368: `ZLIB_TLS_VARS' undeclared (first use this
function)
functions/zlib.c:368: (Each undeclared identifier is reported only once
functions/zlib.c:368: for each function it appears in.)
functions/zlib.c:401: invalid lvalue in assignment
functions/zlib.c: In function `php3_gzclose':
functions/zlib.c:411: `ZLIB_TLS_VARS' undeclared (first use this
function)
functions/zlib.c: In function `php3_gzeof':
functions/zlib.c:432: `ZLIB_TLS_VARS' undeclared (first use this
function)
functions/zlib.c: In function `php3_gzgets':
functions/zlib.c:457: `ZLIB_TLS_VARS' undeclared (first use this
function)
functions/zlib.c: In function `php3_gzgetc':
functions/zlib.c:495: `ZLIB_TLS_VARS' undeclared (first use this
function)
functions/zlib.c: In function `php3_gzgetss':
functions/zlib.c:528: `ZLIB_TLS_VARS' undeclared (first use this
function)
functions/zlib.c:566: invalid lvalue in assignment
functions/zlib.c:595: invalid lvalue in assignment
functions/zlib.c:598: invalid lvalue in assignment
functions/zlib.c:618: invalid lvalue in assignment
functions/zlib.c: In function `php3_gzwrite':
functions/zlib.c:642: `ZLIB_TLS_VARS' undeclared (first use this
function)
functions/zlib.c: In function `php3_gzrewind':
functions/zlib.c:686: `ZLIB_TLS_VARS' undeclared (first use this
function)
functions/zlib.c: In function `php3_gztell':
functions/zlib.c:707: `ZLIB_TLS_VARS' undeclared (first use this
function)
functions/zlib.c: In function `php3_gzseek':
functions/zlib.c:728: `ZLIB_TLS_VARS' undeclared (first use this
function)
functions/zlib.c: In function `php3_gzpassthru':
functions/zlib.c:804: `ZLIB_TLS_VARS' undeclared (first use this
function)
functions/zlib.c: In function `php3_gzread':
functions/zlib.c:833: `ZLIB_TLS_VARS' undeclared (first use this
function)
make: *** [functions/zlib.o] Error 1