XCache 3. and 2. failing tests when compiled against PHP 5.4.11

123 views
Skip to first unread message

Andree Christaldi

unread,
Sep 4, 2013, 7:20:00 PM9/4/13
to xca...@googlegroups.com
Hi,

I have tried to build xcache 3.* and 2.*  (both the stable releases) with PHP 5.4.11 with no luck.

$PATH = /usr/local/php/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

I extract xcache-X.X into its directory;
then:
/usr/local/php/bin/phpize
./configure --with-php-config="/usr/local/php/bin/php-config" --enable-xcache
make
make test

.. 
Both 3.x and 2.x I'm getting fails at [see attached testresults.txt]

FAILED TEST SUMMARY
---------------------------------------------------------------------
xcache_set/get test [tests/xcache_var.phpt]


---------------------------------------------------------------------------------------------------

After this, I thought maybe I should try updating my PHP, to see if this helps, so I compiled php-5.5.3, with;

./configure --prefix="/usr/local/php" --with-apxs2="/usr/local/apache/bin/apxs" --enable-debug --with-gmp --enable-bcmath --with-openssl --with-zlib --enable-calendar --with-curl --with-curlwrappers --enable-ftp --enable-shared --with-gd --with-bz2 --with-freetype-dir --with-jpeg-dir --with-png-dir --with-vpx-dir --with-xpm-dir --with-mcrypt --with-mysql --with-mysqli --with-pdo-mysql --enable-soap --enable-sockets --enable-sysvmsg --with-xmlrpc=shared --with-xsl --with-regex=php --enable-zip --enable-mbstring --with-pear --enable-zend-signals --with-libdir="/lib/i386-linux-gnu"

I then re-extract a new xcache 3.0.3.. and repeat..
/usr/local/php/bin/phpize
./configure --with-php-config="/usr/local/php/bin/php-config" --enable-xcache
make

Only this time the make fails with error [see attached xcache-3.0.3-php-5.5.3-make-error.txt]: 
AUTOCHECK ERROR: ==== store zend_try_catch_element =================
AUTOCHECK ERROR: ==== store zend_op_array =================
AUTOCHECK ERROR: ==== restore zend_try_catch_element =================
AUTOCHECK ERROR: ==== restore zend_op_array =================
AUTOCHECK ERROR: ==== dprint zend_try_catch_element =================
AUTOCHECK ERROR: ==== dprint zend_op_array =================
AUTOCHECK ERROR: ==== dasm zend_try_catch_element =================
AUTOCHECK ERROR: ==== dasm zend_op_array =================
AUTOCHECK ERROR: ==== asm zend_try_catch_element =================
AUTOCHECK ERROR: ==== asm zend_op_array =================


---------------------------------------------------------------------------------------------------

After this, I try to compile a fresh extracted xcache-2.0.0 against php-5.5.3.. I repeat, 
cd xcache-2.0.0
/usr/local/php/bin/phpize
./configure --with-php-config="/usr/local/php/bin/php-config" --enable-xcache
make

.. again, the make fails at the same time;

AUTOCHECK INFO: xc_entry_php_t: processor looks good
AUTOCHECK INFO: xc_entry_var_t: processor looks good
AUTOCHECK ERROR: ==== store zend_try_catch_element =================
AUTOCHECK ERROR: ==== store zend_op_array =================
AUTOCHECK ERROR: ==== restore zend_try_catch_element =================
AUTOCHECK ERROR: ==== restore zend_op_array =================
AUTOCHECK ERROR: ==== dprint zend_try_catch_element =================
AUTOCHECK ERROR: ==== dprint zend_op_array =================
AUTOCHECK ERROR: ==== dasm zend_try_catch_element =================
AUTOCHECK ERROR: ==== dasm zend_op_array =================
AUTOCHECK ERROR: ==== asm zend_try_catch_element =================
AUTOCHECK ERROR: ==== asm zend_op_array =================
make: *** [processor.out] Error 1


---------------------------------------------------------------------------------------------------

Anyone got any ideas ? :) 




testresults.txt
xcache-3.0.3-php-5.5.3-make-error.txt

Andree Christaldi

unread,
Sep 4, 2013, 7:46:55 PM9/4/13
to xca...@googlegroups.com
EDIT / UPDATE

I have sucessfully managed to compile XCache 2.0.1 with PHP 5.4.11.

I did, 
recomiled php 5.4.11
extracted a new xcache-2.0.1
cd'd into xcache-2.0.1
ran:  /usr/local/php/bin/phpize
ran: ./configure --with-php-config="/usr/local/php/bin/php-config" --enable-xcache
ran: make
ran: make xcachetest
- All tests were okay'd
ran: make install
cp'd modules/xcache.so to my existing extensions directory (the make install put it in the wrong place)
cat xcache.ini > /path/to/php.ini
restarted apache

and viola... it's on there.. Woohoo :)  Now after that little side track.. back to coding.   .  . I mean I couldn't go to APC could I ? That thing segfaults all day and all night. lol 


xcache

unread,
Sep 4, 2013, 10:27:11 PM9/4/13
to xca...@googlegroups.com
yes, "make xcachetest" is the correct answer
please use 3.x, 2.x is deprecated
3.0.x compiles and works fine with PHP 5.4 or older

3.1.x compiles with PHP 5.5 and is still not stress tested nor proven
stable yet, but you can checkout svn trunk to get 3.1.x and see how
far it can go if you really like PHP 5.5

On 9/5/13, Andree Christaldi <tom.baby...@googlemail.com> wrote:
> *EDIT / UPDATE*
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "XCache" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to xcache+un...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
Reply all
Reply to author
Forward
0 new messages