Bug #17623 Updated: compile error (zlib)

From: Date: Fri, 07 Jun 2002 08:31:12 +0000
Subject: Bug #17623 Updated: compile error (zlib)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-9728@lists.php.net to get a copy of this message
ID: 17623 Updated by: corporal_pisang@counter-strike.com.my Reported By: corporal_pisang@counter-strike.com.my -Status: Feedback +Status: Open Bug Type: Compile Failure Operating System: Linux 2.4.17 PHP Version: 4.0CVS-2002-06-06 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2002-06-06 10:39:44] 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-06 06:37:30] corporal_pisang@counter-strike.com.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 06:26:52] corporal_pisang@counter-strike.com.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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17623&edit=1

« previous php.bugs (#9728) next »