问题1:
    在安装xcache时,make遇到下面的问题,rhel5,rhel6都试了,问题依然存在。终于在http://serverfault.com/questions/527180/make-processor-out-c-error-1 找到了答案。
    原来xcache3.0.0版本在安装时容易出现这个问题,换成3.1后安装正常。

  1. /usr/bin/m4 -B 102400 -D srcdir='`'"/root/xcache-3.0.0'" -D builddir='`'".'"  /root/xcache-3.0.0/processor/main.m4 > ./processor.out.c.tmp
  2. /usr/bin/m4: Warning: `m4 -B' may be removed in a future release
  3. AUTOCHECK INFO: runtime autocheck Disabled (optimized build)
  4. AUTOCHECK INFO: zend_compiled_variable: processor looks good
  5. AUTOCHECK ERROR: ==== calc zend_try_catch_element =================
  6. AUTOCHECK expected: "try_op","catch_op","finally_op","finally_end"
  7. AUTOCHECK missing : "finally_op" "finally_end" 
  8. AUTOCHECK INFO: zend_brk_cont_element: processor looks good
  9. AUTOCHECK INFO: HashTable: processor looks good
  10. AUTOCHECK INFO: zval: processor looks good
  11. AUTOCHECK INFO: zend_arg_info: processor looks good
  12. AUTOCHECK INFO: zend_constant: processor looks good
  13. AUTOCHECK INFO: zend_property_info: processor looks good
  14. AUTOCHECK INFO: zend_trait_method_reference: processor looks good
  15. AUTOCHECK INFO: zend_trait_alias: processor looks good
  16. AUTOCHECK INFO: zend_trait_precedence: processor looks good
  17. AUTOCHECK INFO: zend_class_entry: processor looks good
  18. AUTOCHECK INFO: znode: processor looks good
  19. AUTOCHECK INFO: zend_op: processor looks good
  20. AUTOCHECK INFO: zend_literal: processor looks good
  21. AUTOCHECK ERROR: ==== calc zend_op_array =================
  22. AUTOCHECK expected: "type","function_name","scope","fn_flags","prototype","num_args","required_num_args","arg_info","refcount","opcodes","last","vars","last_var","T","nested_calls","used_stack","brk_cont_array","last_brk_cont","try_catch_array","last_try_catch","has_finally_block","static_variables","this_var","filename","line_start","line_end","doc_comment","doc_comment_len","early_binding","literals","last_literal","run_time_cache","last_cache_slot","reserved"
  23. AUTOCHECK missing : "nested_calls" "used_stack" "has_finally_block" 
  24. AUTOCHECK INFO: xc_constinfo_t: processor looks good
  25. AUTOCHECK INFO: xc_op_array_info_detail_t: processor looks good
  26. AUTOCHECK INFO: xc_op_array_info_t: processor looks good
  27. AUTOCHECK INFO: xc_funcinfo_t: processor looks good
  28. AUTOCHECK INFO: xc_classinfo_t: processor looks good
  29. AUTOCHECK INFO: xc_autoglobal_t: processor looks good
  30. AUTOCHECK INFO: xc_compilererror_t: processor looks good
  31. AUTOCHECK INFO: xc_entry_data_php_t: processor looks good
  32. AUTOCHECK INFO: xc_entry_t: processor looks good
  33. AUTOCHECK INFO: xc_entry_php_t: processor looks good
  34. AUTOCHECK INFO: xc_entry_var_t: processor looks good
  35. AUTOCHECK ERROR: ==== store zend_try_catch_element =================
  36. AUTOCHECK ERROR: ==== store zend_op_array =================
  37. AUTOCHECK ERROR: ==== restore zend_try_catch_element =================
  38. AUTOCHECK ERROR: ==== restore zend_op_array =================
  39. AUTOCHECK ERROR: ==== dprint zend_try_catch_element =================
  40. AUTOCHECK ERROR: ==== dprint zend_op_array =================
  41. AUTOCHECK ERROR: ==== dasm zend_try_catch_element =================
  42. AUTOCHECK ERROR: ==== dasm zend_op_array =================
  43. AUTOCHECK ERROR: ==== asm zend_try_catch_element =================
  44. AUTOCHECK ERROR: ==== asm zend_op_array =================
  45. make: *** [processor.out.c] Error 1
问题2
    在启动php-fpm时出现如下报错
  1. NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php2/lib/php/extensions/no-debug-non-zts-20100525/xcache.so' - /usr/local/php2/lib/php/extensions/no-debug-non-zts-20100525/xcache.so: undefined symbol: core_globals_id in Unknown on line 0
  2.  done
问题所在:
    之前php是以模块的方式编译的,xcache在这种环境下编译。
    此次php是以fcgi方式编译的。我直接在xcache上次的源码文件下重新编译了xcache,应该是上次编译产生了一些文件导致了上面的错误。重新解压xcache编译,测试OK。
    

XCache

XCache Version3.1.1
Modules Builtcacher

DirectiveLocal ValueMaster Value
xcache.coredump_directoryno valueno value
xcache.disable_on_crashOffOff
xcache.experimentalOffOff
xcache.testOffOff

XCache Cacher

XCache Cacher Moduleenabled
Readonly Protectiondisabled
Page Request Time2016-05-15 11:11:05
Cache Init Time2016-05-15 11:10:48
Cache Instance Id8592
Opcode Cacheenabled, 62,914,560 bytes, 1 split(s), with 8192 slots each
Variable Cacheenabled, 4,194,304 bytes, 1 split(s), with 8192 slots each
Shared Memory Schemesmmap