php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44627 Compile fails; Error in tokenizer.c
Submitted: 2008-04-03 13:07 UTC Modified: 2008-04-05 17:42 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: php6 at andrieslouw dot nl Assigned:
Status: Closed Package: Compile Failure
PHP Version: 6CVS-2008-04-03 (snap) OS: CentOS 5
Private report: No CVE-ID: None
 [2008-04-03 13:07 UTC] php6 at andrieslouw dot nl
Description:
------------
Trying to build PHP6 from the latest snapshot fails since 31-Mar-2008.

Reproduce code:
---------------
cd /tmp
rm -f -r php6.0-*
wget http://snaps.php.net/php6.0-latest.tar.gz
tar -xzvf php6.0-latest.tar.gz
cd php6.0-*/
./configure --prefix=/usr/local/php6 --with-curl=/usr/local/lib --with-gd --enable-gd-native-ttf --with-gettext --with-icu-dir=/usr/local/icu --with-jpeg-dir=/usr/local/lib --with-freetype-dir=/usr/local/lib --with-kerberos --with-openssl --with-mcrypt --with-mhash --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config --with-png-dir=/usr/local/lib --with-zlib --with-zlib-dir=/usr/local/lib --enable-zip --with-iconv=/usr/local --enable-bcmath --enable-calendar --enable-ftp --enable-sockets --enable-mbstring --disable-mbregex
make && make install

Expected result:
----------------
An CGI-install in the /usr/local/php6 dir, my code worked since February 2008, but fails since 31 of March 2008. 

Actual result:
--------------
## Config succeeds, but make fails, last lines: ##

/bin/sh /tmp/php6.0-200804031230/libtool --silent --preserve-dup-deps --mode=compile gcc  -Iext/tokenizer/ -I/tmp/php6.0-200804031230/ext/tokenizer/ -DPHP_ATOM_INC -I/tmp/php6.0-200804031230/include -I/tmp/php6.0-200804031230/main -I/tmp/php6.0-200804031230 -I/usr/local/icu/include -I/tmp/php6.0-200804031230/ext/ereg/regex -I/usr/local/include/libxml2 -I/usr/kerberos/include -I/tmp/php6.0-200804031230/pcrelib -I/usr/local/include -I/tmp/php6.0-200804031230/ext/date/lib -I/usr/local/include/freetype2 -I/tmp/php6.0-200804031230/ext/mbstring/libmbfl -I/tmp/php6.0-200804031230/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/tmp/php6.0-200804031230/TSRM -I/tmp/php6.0-200804031230/Zend    -I/usr/local/include -g -O2 -fvisibility=hidden  -c /tmp/php6.0-200804031230/ext/tokenizer/tokenizer.c -o ext/tokenizer/tokenizer.lo
/tmp/php6.0-200804031230/ext/tokenizer/tokenizer.c: In function 'zif_token_get_all':
/tmp/php6.0-200804031230/ext/tokenizer/tokenizer.c:169: error: 'yycINITIAL' undeclared (first use in this function)
/tmp/php6.0-200804031230/ext/tokenizer/tokenizer.c:169: error: (Each undeclared identifier is reported only once
/tmp/php6.0-200804031230/ext/tokenizer/tokenizer.c:169: error: for each function it appears in.)
make: *** [ext/tokenizer/tokenizer.lo] Error 1
[root@server1 home]#

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-04-03 13:12 UTC] php6 at andrieslouw dot nl
Oh, the phpinfo since 31 March 2008 can be found here:
http://www.easy2c.nl/phpinfo.php6

As you can see, the Reproduce code is executed every 12 hours, but failed since Mar 31 2008 12:00:00 (last succeeded at Mar 31 2008 03:00:17). The problem started in the snapshot between those 2 dates/times.
 [2008-04-03 13:45 UTC] scottmac@php.net
The version of re2c is out of date on the snaps box and is causing this error.
 [2008-04-03 13:49 UTC] php6 at andrieslouw dot nl
Is there something that I can do to solve the error? Like installing from another source?
 [2008-04-05 17:42 UTC] php6 at andrieslouw dot nl
I don't know exactly what changed, but my installation updates again. So this bug is solved.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat May 23 04:00:02 2026 UTC