[phc-general] Hello World Compiler Error

Duncan McQueen dwmcqueen at gmail.com
Wed Feb 24 05:04:38 GMT 2010


I am on Ubuntu 9.10 64bit and compiled PHP 5.3.1 for the embedded
piece.  When I tried a simple compilation of the hello world example,
I get this:

root at signal1:~# phc -c hello.php -o hello
<stdin>: In function ‘ht_debug’:
<stdin>:71: error: ‘zval’ has no member named ‘refcount’
<stdin>:72: error: ‘zval’ has no member named ‘is_ref’
<stdin>: In function ‘in_copy_on_write’:
<stdin>:149: error: ‘zval’ has no member named ‘refcount’
<stdin>:149: error: ‘zval’ has no member named ‘is_ref’
<stdin>: In function ‘in_change_on_write’:
<stdin>:155: error: ‘zval’ has no member named ‘refcount’
<stdin>:155: error: ‘zval’ has no member named ‘is_ref’
<stdin>: In function ‘copy_into_ref’:
<stdin>:197: error: ‘zval’ has no member named ‘is_ref’
<stdin>:198: error: ‘zval’ has no member named ‘refcount’
<stdin>: In function ‘write_var’:
<stdin>:238: error: ‘zval’ has no member named ‘is_ref’
<stdin>:242: error: ‘zval’ has no member named ‘is_ref’
<stdin>:248: error: ‘zval’ has no member named ‘refcount’
<stdin>: In function ‘get_st_entry’:
<stdin>:272: error: ‘zval’ has no member named ‘refcount’
<stdin>: In function ‘get_ht_entry’:
<stdin>:637: error: ‘zval’ has no member named ‘refcount’
<stdin>: In function ‘push_and_index_ht’:
<stdin>:747: error: ‘zval’ has no member named ‘refcount’
<stdin>: In function ‘fetch_var_arg_by_ref’:
<stdin>:814: error: ‘zval’ has no member named ‘is_ref’
<stdin>: In function ‘fetch_var_arg’:
<stdin>:823: error: ‘zval’ has no member named ‘is_ref’
<stdin>:834: error: ‘zval’ has no member named ‘refcount’
<stdin>: In function ‘phc_setup_error’:
<stdin>:858: error: ‘zend_executor_globals’ has no member named
‘function_state_ptr’
<stdin>:865: error: ‘zend_executor_globals’ has no member named
‘function_state_ptr’
<stdin>:873: error: ‘zend_executor_globals’ has no member named
‘function_state_ptr’
<stdin>: In function ‘initialize_function_call’:
<stdin>:887: warning: passing argument 2 of ‘zend_fcall_info_init’
makes integer from pointer without a cast
/opt/phpembed//include/php/Zend/zend_API.h:443: note: expected ‘uint’
but argument is of type ‘struct zend_fcall_info *’
<stdin>:887: warning: passing argument 3 of ‘zend_fcall_info_init’
from incompatible pointer type
/opt/phpembed//include/php/Zend/zend_API.h:443: note: expected ‘struct
zend_fcall_info *’ but argument is of type ‘struct
zend_fcall_info_cache *’
<stdin>:887: error: too few arguments to function ‘zend_fcall_info_init’
<stdin>: In function ‘get_var_var’:
<stdin>:1063: error: ‘zval’ has no member named ‘refcount’
<stdin>: In function ‘zif___MAIN__’:
<stdin>:1497: error: ‘zval’ has no member named ‘refcount’
<stdin>:1500: error: ‘zval’ has no member named ‘is_ref’
<stdin>: In function ‘main’:
<stdin>:1592: warning: useless type name in empty declaration
Error: gcc exited with error 256 (executed via 'gcc
-I/opt/phpembed//include/php -I/opt/phpembed//include/php/main
-I/opt/phpembed//include/php/TSRM -I/opt/phpembed//include/php/Zend
-L/opt/phpembed//lib -Wl,-R/opt/phpembed//lib -lphp5 -xc - -ggdb3 -O0
-ohello ')

Any thoughts?


More information about the phc-general mailing list