Did you get this figured out? I'm just starting to work on compiling PHP
under Windows too and am having the same trouble with the execution of
bison.

Greg Sohl
Cedar Rapids, IA

<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> dear sir,
>     I'm a new PHP developer and very interesting in PHP,and I want to
compile the PHP4.04pl1 source code in win32 myself,but failed.
> I have installed cygwin on my machine(windows98),and downloaded the
> win32build lib and include files,when I launch VC++, and then select File
=> Open Workspace and select php4ts, Then select Build=>Set Active
Configuration and select the desired configuration,Finally select
Build=>Rebuild All,but the compiler report such errors as below:
> --------------------Configuration: ZendTS - Win32 Release_TS--------
> Performing Custom Build Step on ".\zend_language_parser.y"
> /usr/bin/BISON: invalid option -- S
> Usage: /usr/bin/BISON [-dhklntvyV] [-b file-prefix] [-o outfile] [-p
name-prefix]
>        [--debug] [--defines] [--fixed-output-files] [--no-lines]
>        [--verbose] [--version] [--help] [--yacc]
>        [--no-parser] [--token-table]
>        [--file-prefix=prefix] [--name-prefix=prefix]
>        [--output=outfile] grammar-file
> Report bugs to [EMAIL PROTECTED]
> Performing Custom Build Step on .\zend_ini_parser.y
> /usr/bin/BISON: invalid option -- S
> Usage: /usr/bin/BISON [-dhklntvyV] [-b file-prefix] [-o outfile] [-p
name-prefix]
>        [--debug] [--defines] [--fixed-output-files] [--no-lines]
>        [--verbose] [--version] [--help] [--yacc]
>        [--no-parser] [--token-table]
>        [--file-prefix=prefix] [--name-prefix=prefix]
>        [--output=outfile] grammar-file
> Report bugs to [EMAIL PROTECTED]
> Performing Custom Build Step on ".\zend_language_scanner.l"
> Performing Custom Build Step on .\zend_ini_scanner.l
> Compiling...
> zend.c
> zend_alloc.c
> zend_API.c
> zend_builtin_functions.c
> zend_compile.c
> D:\wyc\php-4.0.4pl1.tar\php-4.0.4pl1\Zend\zend_compile.c(21) : fatal error
C1083: Cannot open include file: 'zend_language_parser.h': No such file or
directory
> zend_constants.c
> zend_dynamic_array.c
> zend_execute.c
> zend_execute_API.c
> zend_extensions.c
> zend_hash.c
> zend_highlight.c
> D:\wyc\php-4.0.4pl1.tar\php-4.0.4pl1\Zend\zend_highlight.c(22) : fatal
error C1083: Cannot open include file: 'zend_language_parser.h': No such
file or directory
> zend_indent.c
> D:\wyc\php-4.0.4pl1.tar\php-4.0.4pl1\Zend\zend_indent.c(25) : fatal error
C1083: Cannot open include file: 'zend_language_parser.h': No such file or
directory
> zend_ini.c
> zend_ini_parser.c
> fatal error C1083: Cannot open source file:
'D:\wyc\php-4.0.4pl1.tar\php-4.0.4pl1\Zend\zend_ini_parser.c': No such file
or directory
> Generating Code...
> Compiling...
> zend_ini_scanner.cpp
> zend_ini_scanner.l(22) : fatal error C1083: Cannot open include file:
'zend_ini_parser.h': No such file or directory
> Generating Code...
> Compiling...
> zend_language_parser.c
> fatal error C1083: Cannot open source file:
'D:\wyc\php-4.0.4pl1.tar\php-4.0.4pl1\Zend\zend_language_parser.c': No such
file or directory
> Generating Code...
> Compiling...
> zend_language_scanner.cpp
> zend_language_scanner.l(44) : fatal error C1083: Cannot open include file:
'zend_language_parser.h': No such file or directory
> Generating Code...
> Compiling...
> zend_list.c
> zend_llist.c
> zend_opcode.c
> zend_operators.c
> zend_ptr_stack.c
> zend_sprintf.c
> zend_stack.c
> zend_variables.c
> Generating Code...
> Error executing cl.exe.
>
> php.exe - 7 error(s), 0 warning(s)
>
> I don't know how to configue the custom build on *.y and *.l to let bison
genarate the .c and .h files.
> the custom build seting on zend_language_paraser.y is:
> if not "X%CYGWIN%"=="X" bison --output=zend_language_parser.c -v -d -S
"%CYGWIN%\share\bison.simple" -p zend zend_language_parser.y
> if "X%CYGWIN%"=="X" bison --output=zend_language_parser.c -v -d -S
"C:\Program Files\Cygnus\share\bison.simple" -p zend zend_language_parser.y
>
> I don't know how to configue the build about bison and flex,could you give
me a hand?
>  Thank you very much!
>               your sincerely,wyc
> ----------------------------------------------
> 欢迎使用 21CN 电子邮件系统 http://www.21cn.com
> Thank you for using 21cn.com Email system
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to