Edit report at https://bugs.php.net/bug.php?id=65571&edit=1
ID: 65571 Comment by: pascal at nobus dot be Reported by: tony dot ar dot wright at bt dot com Summary: Compiling fails with - missing binary operator before token "extern" Status: Not a bug Type: Bug Package: Compile Failure Operating System: SuSE 9 PHP Version: 5.5.3 Block user comment: N Private report: N New Comment: That worked! Build complete. I've also tried your trick with the old bison (1.35), and that works also. Previous Comments: ------------------------------------------------------------------------ [2013-10-01 16:33:30] ni...@php.net @pascal: Could you try to do a `touch Zend/zend_language_parser.y` and then run `make` again? Likely the parser is not being regenerated, because it didn't change in the meantime. ------------------------------------------------------------------------ [2013-10-01 16:27:01] pascal at nobus dot be I couldn't compile 2.7, so tried first the latest from the 1-version. Now I tried 2.4.1, which I could compile. However the problem stays the same. /bin/sh /usr/local/src/php-5.4.20/libtool --silent --preserve-dup-deps -- mode=compile cc -IZend/ -I/usr/local/src/php-5.4.20/Zend/ -DPHP_ATOM_INC - I/usr/local/src/php-5.4.20/include -I/usr/local/src/php-5.4.20/main - I/usr/local/src/php-5.4.20 -I/usr/local/src/php-5.4.20/ext/date/lib - I/usr/local/src/php-5.4.20/ext/ereg/regex -I/usr/include/libxml2 - I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/src/php- 5.4.20/ext/sqlite3/libsqlite -I/usr/local/src/php-5.4.20/TSRM - I/usr/local/src/php-5.4.20/Zend -I/usr/include -g -O2 -c /usr/local/src/php- 5.4.20/Zend/zend_language_scanner.c -o Zend/zend_language_scanner.lo In file included from Zend/zend_language_scanner.l:40: Zend/zend_language_parser.h:40:1: missing binary operator before token "extern" make: *** [Zend/zend_language_scanner.lo] Error 1 # bison -V bison (GNU Bison) 2.4.1 ------------------------------------------------------------------------ [2013-10-01 15:54:53] m...@php.net Sorry for my ignorance, but (for me) 1.875 does not lie between 2.4 and 2.7 ------------------------------------------------------------------------ [2013-10-01 15:47:58] pascal at nobus dot be I updated to bison-1.875 (compiled from source), but this didn't matter indeed. The problem appeared in php-5.4.19 and was not there in php-5.4.18. I could build it just fine from complete source tarball. ------------------------------------------------------------------------ [2013-10-01 15:35:25] m...@php.net If you build release tarballs, the bison version should not matter, though. ------------------------------------------------------------------------ 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=65571 -- Edit this bug report at https://bugs.php.net/bug.php?id=65571&edit=1