Problems encountered during RHEL5 eAccelerator0.9.6.1 Compilation

Source: Internet
Author: User
I have long known that this module can accelerate PHP operations, but seeing the version number makes people feel stuck, less than 1.0 of the availability ...... However, it seems pretty good to run on other servers. But in RHEL5 machine compilation eaccelerator0.9.6.1 found the error bird, the prompt information is as follows gcc-I .-I/root/eaccelerator-0.9.6.1-DPHP_ATOM_INC-I/root/eaccel very early know that this module can accelerate PHP operations, however, when we see the version number, we can't help but make people stick to it. It's less than 1.0 usable ...... However, it seems pretty good to run on other servers. However, an error occurred when compiling eaccelerator 0.9.6.1 on RHEL 5. The following message is displayed:

Gcc-I. -I/root/eaccelerator-0.9.6.1-DPHP_ATOM_INC-I/root/eaccelerator-0.9.6.1/include-I/root/eaccelerator-0.9.6.1/main-I/root/eaccelerator-0.9.6.1-I/usr/include/php-I /usr/include/php/main-I/usr/include/php/TSRM-I/usr/include/php/Zend-I/usr/include/php/ext-DHAVE_CONFIG_H -g-O2-c/root/eaccelerator-0.9.6.1/ea_store.c-fPIC-DPIC-o. libs/ea_store.o
/Root/eaccelerator-0.9.6.1/ea_store.c: In function 'store _ property_access_check ':
/Root/eaccelerator-0.9.6.1/ea_store.c: 683: error: 'zend _ property_info 'has no member named 'ce'
Make: *** [ea_store.lo] Error 1

Due to the early release of RHEL 5, PHP version 5.1 is still available, instead of the popular version 5.2, and eaccelerator is the latest version 0.9.6.1. Therefore, it is initially considered to be caused by version mismatch.

Then I went to the eaccelerator official website and turned around to find that it was indeed an error in the eaccelerator's judgment on the Zend version. www.linuxidc.com was able to solve the problem by finding the cause. I wrote an ea_store.RHEL5.patch (Click here to download ), decompress the package to obtain the ea_store.RHEL5.patch.

  1. Patch-p0 <ea_store.RHEL5 _. patch

The source code is as follows:

  1. --- Ea_store.c.orig 2010-09-13 10:22:28. 000000000 + 0800
  2. +++ Ea_store.c 2010-09-13 10:17:03. 000000000 + 0800
  3. @-680,7 + 680,9 @@
  4. Zend_property_info * child_info = (zend_property_info *) p-> pData;
  5. Zend_property_info * parent_info = NULL;
  6. + # Ifdef ZEND_ENGINE_2_2
  7. Return (child_info-> ce! = From );
  8. + # Endif
  9. If (parent & zend_hash_quick_find (& parent-> properties_info, p-> arKey, p-> nKeyLength, p-> h, (void **) & parent_info) = SUCCESS) {
  10. If (parent_info-> flags & ZEND_ACC_PRIVATE ){
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.