|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2017-08-22 07:02 UTC] 813577991 at qq dot com
Description:
------------
when I compile, following errors stoped the process:
/bin/sh /root/php-7.1.8/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -IZend/ -I/root/php-7.1.8/Zend/ -DPHP_ATOM_INC -I/root/php-7.1.8/include -I/root/php-7.1.8/main -I/root/php-7.1.8 -I/root/php-7.1.8/ext/date/lib -I/usr/include/libxml2 -I/root/php-7.1.8/ext/sqlite3/libsqlite -I/root/php-7.1.8/TSRM -I/root/php-7.1.8/Zend -I/usr/include -g -O2 -DZEND_SIGNALS -c /root/php-7.1.8/Zend/zend_ini_parser.c -o Zend/zend_ini_parser.lo
/root/php-7.1.8/Zend/zend_ini_parser.y: In function `yydestruct':
/root/php-7.1.8/Zend/zend_ini_parser.y:294: error: syntax error before '(' token
/root/php-7.1.8/Zend/zend_ini_parser.y:294: error: syntax error before '(' token
/root/php-7.1.8/Zend/zend_ini_parser.y:294: error: syntax error before '(' token
/root/php-7.1.8/Zend/zend_ini_parser.y:294: error: syntax error before '(' token
/root/php-7.1.8/Zend/zend_ini_parser.y:294: error: syntax error before '(' token
/root/php-7.1.8/Zend/zend_ini_parser.y:294: error: syntax error before '(' token
/root/php-7.1.8/Zend/zend_ini_parser.y:294: error: syntax error before '(' token
/root/php-7.1.8/Zend/zend_ini_parser.y:294: error: syntax error before '(' token
/root/php-7.1.8/Zend/zend_ini_parser.y:294: error: syntax error before '(' token
/root/php-7.1.8/Zend/zend_ini_parser.y:294: error: syntax error before '(' token
/root/php-7.1.8/Zend/zend_ini_parser.y:294: error: syntax error before '(' token
make: *** [Zend/zend_ini_parser.lo] Error 1
Patchesalpha (last revision 2017-08-22 07:03 UTC by 813577991 at qq dot com)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 08:00:01 2025 UTC |
For what it's worth, for anyone else finding this same issue (as I have) when building on older servers, the issue is in the test for valid versions of yacc/bison. The test sometimes fails to correctly identify that the version is too old. My fix was simply to add php_cv_bison_version=invalid to the section just before { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_bison_version" >&5 fi case $php_cv_bison_version in ""|invalid) in the configure file - since if you have an invalid bison version the recompile won't attempt to rebuild the parsers, which (if all you're doing is recompiling without changing the parser) doesn't matter anyway.