From:             amd at store20 dot com
Operating system: Gentoo GNU/Linux
PHP version:      5.0.3
PHP Bug Type:     Compile Failure
Bug description:  PHP fails to compile with gcc 4.0.0-alpha20050213 snapshot

Description:
------------
PHP fails to compile with Gcc-4.0.0 snapshot.



Reproduce code:
---------------
/bin/sh /var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/libtool --silent
--preserve-dup-deps --mode=compile gcc  -Iext/openssl/
-I/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/ -DPHP_ATOM_INC
-I/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/include
-I/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/main
-I/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3
-I/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/Zend -I/usr/include/libxml2
-I/usr/include/freetype2 -I/usr/include/imap
-I/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/mbstring/oniguruma
-I/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/mbstring/libmbfl
-I/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/mbstring/libmbfl/mbfl
-I/usr/include/mysql -I/usr/include/pspell 
-I/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/TSRM  -O2 -mtune=pentium3 
-prefer-pic -c
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c -o
ext/openssl/openssl.lo
In file included from
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/Zend/zend_API.h:27,
                 from
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/main/php.h:39,
                 from
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/libxml/libxml.c:29:
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/Zend/zend_modules.h:34:
error: array type has incomplete element type
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/Zend/zend_modules.h:35:
error: array type has incomplete element type
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/Zend/zend_modules.h:36:
error: array type has incomplete element type
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/Zend/zend_modules.h:37:
error: array type has incomplete element type
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/Zend/zend_modules.h:38:
error: array type has incomplete element type
make: *** [ext/libxml/libxml.lo] Error 1
make: *** Waiting for unfinished jobs....
In file included from
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/Zend/zend_API.h:27,
                 from
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/main/php.h:39,
                 from
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c:28:
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/Zend/zend_modules.h:34:
error: array type has incomplete element type
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/Zend/zend_modules.h:35:
error: array type has incomplete element type
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/Zend/zend_modules.h:36:
error: array type has incomplete element type
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/Zend/zend_modules.h:37:
error: array type has incomplete element type
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/Zend/zend_modules.h:38:
error: array type has incomplete element type
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c: In
function 'add_assoc_name_entry':
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c:248:
warning: pointer targets in passing argument 4 of 'add_assoc_stringl_ex'
differ in signedness
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c:251:
warning: pointer targets in passing argument 4 of 'add_assoc_stringl_ex'
differ in signedness
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c: In
function 'add_assoc_asn1_string':
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c:259:
warning: pointer targets in passing argument 4 of 'add_assoc_stringl_ex'
differ in signedness
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c: In
function 'asn1_time_to_time_t':
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c:282:
warning: pointer targets in passing argument 1 of '_estrdup' differ in
signedness
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c: In
function 'zif_openssl_x509_parse':
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c:917:
warning: pointer targets in assignment differ in signedness
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c: In
function 'php_openssl_make_REQ':
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c:1236:
warning: pointer targets in passing argument 3 of
'zend_hash_get_current_key_ex' differ in signedness
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c:1236:
warning: pointer targets in passing argument 4 of
'zend_hash_get_current_key_ex' differ in signedness
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c:1310:
warning: pointer targets in passing argument 3 of
'zend_hash_get_current_key_ex' differ in signedness
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c:1310:
warning: pointer targets in passing argument 4 of
'zend_hash_get_current_key_ex' differ in signedness
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c: In
function 'zif_openssl_pkey_export_to_file':
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c:1994:
warning: pointer targets in passing argument 4 of
'PEM_write_bio_PrivateKey' differ in signedness
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c: In
function 'zif_openssl_pkey_export':
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c:2045:
warning: pointer targets in passing argument 4 of
'PEM_write_bio_PrivateKey' differ in signedness
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c: In
function 'zif_openssl_private_encrypt':
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c:2594:
warning: pointer targets in passing argument 2 of 'RSA_private_encrypt'
differ in signedness
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c:2603:
warning: pointer targets in initialization differ in signedness
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c: In
function 'zif_openssl_private_decrypt':
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c:2652:
warning: pointer targets in passing argument 2 of 'RSA_private_decrypt'
differ in signedness
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c:2668:
warning: pointer targets in initialization differ in signedness
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c: In
function 'zif_openssl_public_encrypt':
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c:2717:
warning: pointer targets in passing argument 2 of 'RSA_public_encrypt'
differ in signedness
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c:2727:
warning: pointer targets in initialization differ in signedness
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c: In
function 'zif_openssl_public_decrypt':
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c:2776:
warning: pointer targets in passing argument 2 of 'RSA_public_decrypt'
differ in signedness
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c:2794:
warning: pointer targets in initialization differ in signedness
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c: In
function 'zif_openssl_sign':
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c:2876:
warning: pointer targets in passing argument 3 of 'EVP_SignFinal' differ
in signedness
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c:2879:
warning: pointer targets in initialization differ in signedness
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c: In
function 'zif_openssl_verify':
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c:2915:
warning: pointer targets in passing argument 2 of 'EVP_VerifyFinal' differ
in signedness
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c: In
function 'zif_openssl_seal':
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c:2983:
warning: pointer targets in passing argument 4 of 'EVP_EncryptUpdate'
differ in signedness
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c:2995:
warning: pointer targets in initialization differ in signedness
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c: In
function 'zif_openssl_open':
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c:3059:
warning: pointer targets in passing argument 3 of 'EVP_OpenInit' differ in
signedness
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/openssl/openssl.c:3059:
warning: pointer targets in passing argument 4 of 'EVP_DecryptUpdate'
differ in signedness
make: *** [ext/openssl/openssl.lo] Error 1


Expected result:
----------------
Compile clean.


-- 
Edit bug report at http://bugs.php.net/?id=32150&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32150&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32150&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32150&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=32150&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=32150&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=32150&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=32150&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=32150&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=32150&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=32150&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=32150&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=32150&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=32150&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32150&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=32150&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=32150&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=32150&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32150&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=32150&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32150&r=mysqlcfg

Reply via email to