Edit report at https://bugs.php.net/bug.php?id=65460&edit=1
ID: 65460 Updated by: m...@php.net Reported by: stu at coe dot uky dot edu Summary: PHP 5.4.18 fails to compile with Apache 2.4.6 Status: Assigned Type: Bug Package: Compile Failure Operating System: Slackware64 14.0 PHP Version: 5.4.18 Assigned To: stas Block user comment: N Private report: N New Comment: Sorry for not being explicit enough! I can reproduce with $ ./configure --enable-maintainer-zts --disable-all --prefix=$(pwd)/usr so, enabling ZTS should cause the issue. Previous Comments: ------------------------------------------------------------------------ [2013-08-19 07:10:26] s...@php.net Mike, so which options should I use to reproduce it? Because I used with-apxs2 and it worked fine. Should apache be built with some special options? IIRC, it usually does not build ZTS version, so what is the config for you that doesn't work? ------------------------------------------------------------------------ [2013-08-19 07:03:45] m...@php.net I also doubt that it's about Apache, but rather about ZTS. Looking at the tarball files I see: in zend_global_macros.h: /* Compiler */ #ifdef ZTS # define CG(v) TSRMG(compiler_globals_id, zend_compiler_globals *, v) int zendparse(void *compiler_globals); #else # define CG(v) (compiler_globals.v) extern ZEND_API struct _zend_compiler_globals compiler_globals; int zendparse(void); #endif Note the #ifdef ZTS zendparse declaration ...and in zend_language_parser.h: #ifdef YYPARSE_PARAM #if defined __STDC__ || defined __cplusplus int zendparse (void *YYPARSE_PARAM); #else int zendparse (); #endif #else /* ! YYPARSE_PARAM */ #if defined __STDC__ || defined __cplusplus int zendparse (void); #else int zendparse (); #endif #endif /* ! YYPARSE_PARAM */ ...where YYPARSE_PARAM is defined in the source (.c) file. ------------------------------------------------------------------------ [2013-08-19 00:28:49] s...@php.net 5.4 compiles fine for me on CentOS 6.3 and on Mac. Apache is older there but I don't think this should have any consequence for zendparse. ------------------------------------------------------------------------ [2013-08-18 19:11:35] m...@php.net Looks like something was wrongly or not completely merged into 5.4? ------------------------------------------------------------------------ [2013-08-18 02:16:58] giamteckchoon at gmail dot com I overcome this error by following the steps outline in https://bugs.php.net/bug.php?id=64503 (note you need to install bison): 1. Apply the patch at https://bugs.php.net/patch-display.php?bug_id=64503&patch=bison_build_2.patch&revision=latest 2. rm -f Zend/zend_{language,ini}_parser.[ch] 3. Regenerate Zend/zend_language_parser.c etc. ./genfiles 4. Compile as usual. Tested in SL6.4/CentOS6.4. Hope this helps! ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=65460 -- Edit this bug report at https://bugs.php.net/bug.php?id=65460&edit=1