编译PHP5.3.29 For windows时 nmake失败
我按照网上教程https://wiki.php.net/internals/windows/stepbystepbuild的步骤编译php源代码,在nmake阶段遇到下列问题:
...
zend_ini.c
zend_ini_parser.c
bison.simple(558) : error C2065: 'yytname' : undeclared identifier
bison.simple(560) : error C2065: 'yytname' : undeclared identifier
bison.simple(560) : error C2109: subscript requires array or pointer type
bison.simple(560) : error C2168: 'strlen' : too few actual parameters for intrinsic function
bison.simple(570) : error C2065: 'yytname' : undeclared identifier
bison.simple(574) : error C2065: 'yytname' : undeclared identifier
bison.simple(574) : error C2109: subscript requires array or pointer type
bison.simple(574) : error C2168: 'strcat' : too few actual parameters for intrinsic function
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\Bin\cl.exe"' : return code '0x2'
Stop.
不知是否有哪位大侠能帮助解决或指点个方向,不胜感激。
PS: bison的版本是2.4
c:\php-sdk\phpdev\vc9\x86\php-5.3.29-src>bison -V
bison (GNU Bison) 2.4.1
Written by Robert Corbett and Richard Stallman.