php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64461 Zend/zend_language_parser.h error with --enable-maintainer-zts in tarballs
Submitted: 2013-03-20 11:43 UTC Modified: 2013-04-25 15:16 UTC
Votes:3
Avg. Score:3.7 ± 0.9
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:0 (0.0%)
From: kevin dot waterson at gmail dot com Assigned: laruence (profile)
Status: Closed Package: Compile Failure
PHP Version: 5.5.0beta1 OS: Centos 6.3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: kevin dot waterson at gmail dot com
New email:
PHP Version: OS:

 

 [2013-03-20 11:43 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-03-20 20:20 UTC] aharvey@php.net
-Status: Open +Status: Feedback
 [2013-03-20 20:20 UTC] aharvey@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 23:11 UTC] kevin dot waterson at gmail dot com
OK! Fixed in latest snap. Thanks for looking
Kev
 [2013-03-20 23:11 UTC] kevin dot waterson at gmail dot com
-Status: Feedback +Status: Open
 [2013-03-20 23:16 UTC] sixd@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: aharvey
 [2013-03-20 23:16 UTC] sixd@php.net
Closing as per previous comment
 [2013-03-22 00:29 UTC] aharvey@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-22 00:29 UTC] aharvey@php.net
-Summary: /Zend/zend_language_parser.h error +Summary: Zend/zend_language_parser.h error with --enable-maintainer-zts in tarballs -Status: Closed +Status: Re-Opened -PHP Version: 5.5.0alpha5 +PHP Version: 5.5.0beta1 -Assigned To: aharvey +Assigned To:
 [2013-03-22 00:32 UTC] aharvey@php.net
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 */
 [2013-03-22 09:20 UTC] remi@php.net
5.5.0beta1 parser is generated with bison 2.6.1
snapshot parser is generated with bison 2.4.1

And snapshot works.
 [2013-04-25 15:16 UTC] laruence@php.net
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.

fixed in:975d26667bf7dbd0f4b739eca2e49d398105980a
 [2013-04-25 15:16 UTC] laruence@php.net
-Status: Re-Opened +Status: Closed -Assigned To: +Assigned To: laruence
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 15 20:01:35 2024 UTC