Edit report at https://bugs.php.net/bug.php?id=64461&edit=1

 ID:                 64461
 Updated by:         ahar...@php.net
 Reported by:        kevin dot waterson at gmail dot com
 Summary:            Zend/zend_language_parser.h error with
                     --enable-maintainer-zts in tarballs
 Status:             Re-Opened
 Type:               Bug
 Package:            Compile Failure
 Operating System:   Centos 6.3
 PHP Version:        5.5.0beta1
 Block user comment: N
 Private report:     N

 New Comment:

The tarball version of Zend/zend_language_parser.h has the following extra 
declarations (at the end of the file, just before the last #endif) compared to 
the generated version in my git checkout:

#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 */


Previous Comments:
------------------------------------------------------------------------
[2013-03-22 00:29:58] ahar...@php.net

Mea culpa; I should have dug into this a little more. I can now reproduce this 
with beta 1, after seeing another report on IRC.

Short version: configuring tarball builds with --enable-maintainer-zts results 
in 
the error in the original report. I can't reproduce this if I run buildconf 
myself in a Git tree, so it's something peculiar to the distributed tarballs.

------------------------------------------------------------------------
[2013-03-20 23:16:46] s...@php.net

Closing as per previous comment

------------------------------------------------------------------------
[2013-03-20 23:11:11] kevin dot waterson at gmail dot com

OK! Fixed in latest snap. Thanks for looking
Kev

------------------------------------------------------------------------
[2013-03-20 20:20:16] ahar...@php.net

I don't seem to be able to reproduce this. So, a few questions for you:

1. How did you get PHP? Tarball, git checkout, something else?
2. Does the error still occur with a blank configure line (ie just ./configure)?
3. Does it still happen with the latest 5.5 snapshot from http://snaps.php.net/?

------------------------------------------------------------------------
[2013-03-20 11:43:44] kevin dot waterson at gmail dot com

Description:
------------
Config options
./configure  --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin 
--sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include 
--libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var 
--sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info 
--cache-file=../config.cache --with-config-file-path=/etc 
--enable-force-cgi-redirect --enable-fastcgi --enable-pic --disable-rpath  
--prefix=/usr/local/apache/php --enable-track-vars --enable-force-cgi-redirect 
--disable-cgi  --with-exec-dir=/usr/bin  --enable-ftp --enable-magic-quotes 
--disable-short-tags --enable-sigchild --enable-trans-sid 
--with-apxs2=/usr/sbin/apxs  --with-pear=/usr/local/lib/php --with-openssl  
--with-bz2 --with-tiff-dir=/usr  --enable-dba --enable-pdo --with-fam 
--with-ttf --enable-gd-native-ttf --with-gettext --with-gmp --with-gd 
--with-jpeg-dir=/usr --with-zlib --enable-bcmath  --enable-exif 
--enable-sockets --enable-sysvshm --enable-sysvsem --enable-sysvmsg 
--enable-discard-path --enable-yp --enable-wddx --enable-memory-limit 
--enable-shmop --enable-versioning --enable-calendar --with-png-dir=/usr  
--enable-debug --with-regex=system --with-xsl  --disable-short-tags 
--enable-zip  --enable-maintainer-zts --with-pgsql=/usr --with-pdo-pgsql=/usr 
--with-pdo-mysql=mysqlnd

/home/kevin/php/php-5.5.0alpha5/Zend/zend_language_parser.h:331: error: 
conflicting types for ‘zendparse’
make: *** [ext/standard/basic_functions.lo] Error 1

Test script:
---------------
Compile error

Expected result:
----------------
Build

Actual result:
--------------
Compile Fails


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=64461&edit=1

Reply via email to