Bug #65571 [Com]: Compiling fails with - missing binary operator before token "extern"

From: Date: Wed, 08 Jan 2014 15:49:48 +0000
Subject: Bug #65571 [Com]: Compiling fails with - missing binary operator before token "extern"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-183649@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=65571&edit=1

 ID:                 65571
 Comment by:         akirchner dot hal at gmail dot com
 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:

Hi, i get the same error, but i use the version PHP 5.3.28:

PHP_Install/php-5.3.28/ext/date/lib -I/PHP_Install/php-5.3.28/ext/ereg/regex -I/usr/include/libxml2
-I/usr/include/mysql -I/PHP_Install/php-5.3.28/ext/sqlite3/libsqlite -I/PHP_Install/php-5.3.28/TSRM
-I/PHP_Install/php-5.3.28/Zend    -I/usr/include -g -O2  -c
/PHP_Install/php-5.3.28/Zend/zend_language_scanner.c -o Zend/zend_language_scanner.lo
In file included from Zend/zend_language_scanner.l:37:
Zend/zend_language_parser.h:40:1: missing binary operator before token "extern"
make: *** [Zend/zend_language_scanner.lo] Error 1

I use this option:

./configure --with-mysql=/usr/bin/ --with-libdir=lib64


i try to solve it with "Could you try to do a touch Zend/zend_language_parser.y
and then run make again" 

But the same error

Thank you for help


Previous Comments:
------------------------------------------------------------------------
[2013-10-01 17:09:27] pascal at nobus dot be

That worked!
Build complete.

I've also tried your trick with the old bison (1.35), and that works also.

------------------------------------------------------------------------
[2013-10-01 16:33:30] nikic@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] mike@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.

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


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


Thread (13 messages)

« previous php.bugs (#183649) next »