php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17623 compile error (zlib)
Submitted: 2002-06-06 06:26 UTC Modified: 2002-06-07 07:41 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: corporal_pisang at counter-strike dot com dot my Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.0CVS-2002-06-06 OS: Linux 2.4.17
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: corporal_pisang at counter-strike dot com dot my
New email:
PHP Version: OS:

 

 [2002-06-06 06:26 UTC] corporal_pisang at counter-strike dot com dot my
In file included from /usr/src/php4/ext/standard/php_standard.h:48,
                 from /usr/src/php4/ext/zlib/zlib.c:48:
/usr/src/php4/ext/standard/php_var.h:45: parse error before '*' token
In file included from /usr/src/php4/ext/zlib/zlib.c:50:
/usr/src/php4/ext/zlib/php_zlib.h:58: parse error before "php_stream_gzio_ops"
/usr/src/php4/ext/zlib/php_zlib.h:58: warning: data definition has no type or storage class
/usr/src/php4/ext/zlib/zlib.c:164: invalid operands to binary &
/usr/src/php4/ext/zlib/zlib.c:164: initializer element is not constant
/usr/src/php4/ext/zlib/zlib.c:164: (near initialization for `ini_entries[0].mh_arg1')
/usr/src/php4/ext/zlib/zlib.c:164: initializer element is not constant
/usr/src/php4/ext/zlib/zlib.c:164: (near initialization for `ini_entries[0]')
/usr/src/php4/ext/zlib/zlib.c:165: invalid operands to binary &
/usr/src/php4/ext/zlib/zlib.c:165: initializer element is not constant
/usr/src/php4/ext/zlib/zlib.c:165: (near initialization for `ini_entries[1].mh_arg1')
/usr/src/php4/ext/zlib/zlib.c:165: initializer element is not constant
/usr/src/php4/ext/zlib/zlib.c:165: (near initialization for `ini_entries[1]')
/usr/src/php4/ext/zlib/zlib.c:166: initializer element is not constant
/usr/src/php4/ext/zlib/zlib.c:166: (near initialization for `ini_entries[2]')
/usr/src/php4/ext/zlib/zlib.c: In function `zif_gzfile':
/usr/src/php4/ext/zlib/zlib.c:284: dereferencing pointer to incomplete type
/usr/src/php4/ext/zlib/zlib.c: In function `zif_gzopen':
/usr/src/php4/ext/zlib/zlib.c:331: dereferencing pointer to incomplete type
/usr/src/php4/ext/zlib/zlib.c: In function `zif_ob_gzhandler':
/usr/src/php4/ext/zlib/zlib.c:879: dereferencing pointer to incomplete type
/usr/src/php4/ext/zlib/zlib.c: In function `php_enable_output_compression':
/usr/src/php4/ext/zlib/zlib.c:964: dereferencing pointer to incomplete type
/usr/src/php4/ext/zlib/zlib.c: At top level:
/usr/include/gconv.h:172: warning: array `__data' assumed to have one element
/usr/include/bits/socket.h:237: warning: array `__cmsg_data' assumed to have one element
make: *** [ext/zlib/zlib.lo] Error 1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-06 06:37 UTC] corporal_pisang at counter-strike dot com dot my
my configure line

CFLAGS="-fPIC -O3 -march=i586 -mcpu=i586" ./configure --with-apxs2=/home/side/test123/bin/apxs --with-x --with-dbase --enable-trans-sid --enable-track-vars --with-imap=/usr --without-gd --with-gnu-ld --enable-memory-limit --enable-xml --with-ftp --with-gdbm --enable-sigchild --enable-ctype --enable-dbase --enable-url-include --enable-ucd-snmp-hack --with-tsrm-pth --enable-discard-path --enable-freetype-4bit-antialias-hack --with-mcrypt --enable-versioning --disable-debug --with-gettext --with-ttf --with-jpeg --with-mhash --enable-inline-optimization --with-mysql=/usr --disable-posix-threads --enable-ftp --with-mm=/usr/src/mm-1.1.3 --enable-shmop --enable-sysvshm --with-openssl=/usr/local/ssl --enable-sysvsem --with-jpeg-dir=/usr/lib --with-t1lib=/usr --enable-discard-path --enable-calendar --with-magic-quotes --enable-sockets --enable-calendar --with-ncurses --enable-wddx --with-png-dir=/usr --enable-dbase --enable-mime_magic --enable-filepro --enable-mbstr-enc-trans --enable-mbregex --enable-dio --with-dom --enable-dom --with-zlib=/usr --with-zlib-dir=/usr --with-zziplib=/usr --with-bz2 --enable-xslt --with-xslt-sablot
 [2002-06-06 10:39 UTC] sr@php.net
Can you try to trim your configure line in order to identify the exact source of the bug?

E.g. do you really want to use --with-tsrm-pth and not pthreads?

Does the error occur if you don't use the zlib extension (it looks like the source of this error is somewhere else)?
 [2002-06-07 04:31 UTC] corporal_pisang at counter-strike dot com dot my
ok i omit --with-tsrm-pth and the compile went on smoothly up to the openssl bit , the error as follows;

/bin/sh libtool --silent --mode=compile gcc  -Iext/openssl/ -I/usr/src/php4/ext/openssl/ -DPHP_ATOM_INC -I/usr/src/php4/include -I/usr/src/php4/main -I/usr/src/php4 -I/home/side/test123/include -I/usr/src/php4/Zend -I/usr/local/ssl/include -I/usr/include/libxml2 -I/usr/include/mysql -I/usr/src/php4/ext/xml/expat  -D_REENTRANT -I/usr/src/php4/TSRM -fPIC -O3 -march=i586 -mcpu=i586 -pthread -DZTS  -prefer-pic -c /usr/src/php4/ext/openssl/openssl.c -o ext/openssl/openssl.lo 
/usr/src/php4/ext/openssl/openssl.c:42:26: openssl/e_os.h: No such file or directory
/usr/src/php4/ext/openssl/openssl.c: In function `zm_startup_openssl':
/usr/src/php4/ext/openssl/openssl.c:582: `OPENSSL_CONF' undeclared (first use in this function)
/usr/src/php4/ext/openssl/openssl.c:582: (Each undeclared identifier is reported only once
/usr/src/php4/ext/openssl/openssl.c:582: for each function it appears in.)
/usr/src/php4/ext/openssl/openssl.c: In function `zif_openssl_pkey_export_to_file':
/usr/src/php4/ext/openssl/openssl.c:1802: warning: assignment discards qualifiers from pointer target type
/usr/src/php4/ext/openssl/openssl.c: In function `zif_openssl_pkey_export':
/usr/src/php4/ext/openssl/openssl.c:1853: warning: assignment discards qualifiers from pointer target type
/usr/src/php4/ext/openssl/openssl.c: In function `zif_openssl_pkcs7_encrypt':
/usr/src/php4/ext/openssl/openssl.c:2099: warning: assignment discards qualifiers from pointer target type
make: *** [ext/openssl/openssl.lo] Error 1

# openssl version
OpenSSL 0.9.7-beta1 01 Jun 2002
 [2002-06-07 07:41 UTC] sniper@php.net
Install a non-beta of openssl, and this will work just fine.
(and don't mess around with the thread stuff if you don't know what you're doing)


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 02:00:01 2026 UTC