PHP 5.3.28 compiling and installation reports "zendparse" error troubleshooting

Source: Internet
Author: User
Tags zts

The following error is reported in make when installing PHP 5.3.28 on the server guard agent today:

Php-5.3.28/Zend/zend_rjage_parser.h: 317: error: conflicting types for zendparse
Php-5.3.28/Zend/zend_globals_macros.h: 35: note: previous declaration of zendparse was here
Make: *** [ext/standard/basic_functions.lo] Error 1

The solution is to set int zendparse (void *) and zend_globals_macros.h 35 rows int zendparse (void * compiler_globals) in the zend_language_parser.h file to the same. Make is successful.

In this case, the following error occurs when the php extension ZendGuardLoader needs to be installed and php-fpm is started:

Failed loading/usr/local/php/lib/php/extensions/php-5.3.x/ZendGuardLoader. so:/usr/local/php/lib/php/extensions/php-5.3.x/ZendGuardLoader. so: undefined symbol: compiler_globals

As a result, the ZendGuardLoader extension package cannot be loaded successfully.

Final Solution:

When using./confingure to compile a thread, do not load the "-- enable-maintainer-zts" parameter. The "-- enable-maintainer-zts" parameter is used to enable thread security.

PHP details: click here
PHP: click here

Recommended reading:

Practical Production Environment-LNMP architecture compilation and installation + SSL encryption implementation

LNMP full-featured compilation and installation for CentOS 6.3 notes

Install LNMP in CentOS 6.3 (PHP 5.4, MyySQL5.6)

Nginx startup failure occurs during LNMP deployment.

Ubuntu install Nginx php5-fpm MySQL (LNMP environment setup)

Detailed php hd scanning PDF + CD source code + full set of teaching videos

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: 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.