Bug #69055 [Com]: Bison 3.0.2 not supported

From: Date: Wed, 27 Jul 2016 05:52:46 +0000
Subject: Bug #69055 [Com]: Bison 3.0.2 not supported
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202633@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69055&edit=1 ID: 69055 Comment by: ju1ius at laposte dot net Reported by: worldoffame at hotmail dot com Summary: Bison 3.0.2 not supported Status: Wont fix Type: Bug Package: *Compile Issues Operating System: Ubuntu 14 PHP Version: 5.5Git-2015-02-15 (Git) Block user comment: N Private report: N New Comment: This bug still exists as of today using PHP-5.6 git branch. Bison 2 is not available in debian stable anymore. https://packages.debian.org/search?keywords=bison According to the docs, 3.0.4 should work, but configure does not accept it. Previous Comments: ------------------------------------------------------------------------ [2016-07-15 02:28:45] pbw at pbw dot id dot au The bison check excludes bison 3.0, but the PHP manual at http://php.net/manual/en/install.unix.php says of the bison requirement for building 5.6 bison: PHP 5.6: 2.4 or later, excluding 3.0 only (3.0.1 and later are OK) Is this true? If it is, then the bison test needs to be extended to accommodate major.minor.whatever, so that the exclusion is specific to 3.0. If not, the documentation needs to be changed. ------------------------------------------------------------------------ [2015-06-09 15:11:25] hek2mgl at metashock dot net Even PHP 5.6 requires bison 2 ------------------------------------------------------------------------ [2015-02-15 13:24:31] worldoffame at hotmail dot com Okay, thanks. The code works, I use Bison 2.7.1 now. ------------------------------------------------------------------------ [2015-02-15 08:57:32] rasmus@php.net Use PHP 5.6, or install an older Bison: wget http://launchpadlibrarian.net/140087283/libbison-dev_2.7.1.dfsg-1_amd64.deb wget http://launchpadlibrarian.net/140087282/bison_2.7.1.dfsg-1_amd64.deb dpkg -i libbison-dev_2.7.1.dfsg-1_amd64.deb dpkg -i bison_2.7.1.dfsg-1_amd64.deb ------------------------------------------------------------------------ [2015-02-15 08:25:10] worldoffame at hotmail dot com Description: ------------ Well it appears that for PHP 5.5 Bison 3.0 is not supported. I use command sudo apt-get install bison, which acquires Bison 3.0.2 for me. When I run the ./configure command as specified by PHP internal book on building PHP from source, I get an error message: Documentation: http://www.phpinternalsbook.com/build_system/building_php.html Error Message: checking for bison... bison -y checking for bison version... invalid configure: WARNING: bison versions supported for regeneration of the Zend/PHP parsers: 1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 2.4 2.4.1 2.4.2 2.4.3 2.5 2.5.1 2.6 2.6.1 2.6.2 2.6.3 2.6.4 2.6.5 2.7 (found 3.0). This appears to be a major problem as the only bison version I can get is Bison 3.0.2 using apt-get install bison. Tried Bison 2.7.1 with apt-get install bison=2:2.7.1.dfsg-1, but it says version number is invalid. For this reason, I am stuck with Bison 3.0.2. It is very inconvenient that Bison 3.0.2 is not supported for PHP 5.5, please fix this or maybe, release a patch? ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=69055&edit=1

« previous php.bugs (#202633) next »