[phc-general] Re: Hello World Compiler Error
Jacob Metcalfe
cubathy at gmail.com
Wed Feb 24 08:51:22 GMT 2010
I think I had similar errors with php 5.3.x and got around it by
building against 5.2. Can you verify you do not see the issues when
building against 5.2 and I'll look into it a bit further?
On 24 February 2010 05:06, Duncan McQueen <dwmcqueen at gmail.com> wrote:
> And a follow-up - a make test in the phc directory yields this error:
>
> -----Error----------
>
> ----Context---------
> $date_string => ;
>
>
> ----Backtrace-------
>
> Warning: get_class() called without object from outside a class in
> /root/phc/phc-0.2.0.3/test/framework/lib/header.php on line 162
> #0 date (D_d_M_H_i_s) at :
>
> Warning: get_class() called without object from outside a class in
> /root/phc/phc-0.2.0.3/test/framework/lib/header.php on line 162
> #1 date_string () at lib/header.php:574
> #2 called from driver.php:25
>
> ----Message---------
> Error (2): 'date(): It is not safe to rely on the system's timezone
> settings. You are *required* to use the date.timezone setting or the
> date_default_timezone_set() function. In case you used any of those
> methods and you are still getting this warning, you most likely
> misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no
> DST' instead' at
> /root/phc/phc-0.2.0.3/test/framework/lib/header.php:574
>
>
>
> On Tue, Feb 23, 2010 at 11:04 PM, Duncan McQueen <dwmcqueen at gmail.com> wrote:
>> 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?
>>
> _______________________________________________
> phc-general mailing list
> phc-general at phpcompiler.org
> https://nova.villiros.com/cgi-bin/mailman/listinfo/phc-general
>
More information about the phc-general
mailing list