Bug #65685 [Wfx]: PHP 5.3 git fails to compile with ZTS
| From: | yohgaki@php.net | Date: | Tue, 17 Sep 2013 19:47:25 +0000 |
| Subject: | Bug #65685 [Wfx]: PHP 5.3 git fails to compile with ZTS | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-181631@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65685&edit=1
ID: 65685
Updated by: yohgaki@php.net
Reported by: yohgaki@php.net
Summary: PHP 5.3 git fails to compile with ZTS
Status: Wont fix
Type: Bug
Package: Compile Failure
Operating System: any
PHP Version: 5.5Git-2013-09-16 (Git)
Block user comment: N
Private report: N
New Comment:
Ok. Thanks. I'll try it later.
Previous Comments:
------------------------------------------------------------------------
[2013-09-17 03:55:51] laruence@php.net
please use a older version bison.
------------------------------------------------------------------------
[2013-09-16 20:15:15] yohgaki@php.net
Description:
------------
When ZTS is enabled, PHP 5.3 fails to compile due to conflicting declaration.
(I found this by building php with multi threaded apache MPM by mistake. I
haven't check if this is applicable to 5.4 or later)
php-5.3/Zend/zend_language_parser.h:317:5: error: conflicting types for
'zendparse'
int zendparse (void);
^
In file included from /home/yohgaki/prove-dev/php-5.3/Zend/zend_globals.h:28:0,
from /home/yohgaki/prove-dev/php-5.3/Zend/zend_compile.h:342,
from /home/yohgaki/prove-dev/php-5.3/Zend/zend_modules.h:26,
from /home/yohgaki/prove-dev/php-5.3/Zend/zend_API.h:26,
from /home/yohgaki/prove-dev/php-5.3/main/php.h:38,
from /home/yohgaki/prove-dev/php-
5.3/ext/standard/basic_functions.c:22:
php-5.3/Zend/zend_globals_macros.h:35:5: note: previous declaration of
'zendparse' was here
int zendparse(void *compiler_globals);
^
make: *** [ext/standard/basic_functions.lo] Error 1
php-5.3/Zend/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 */
php-5.3/Zend/zend_globals_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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65685&edit=1