Re: [PHP-DEV] bison problems when compiling under win32 From: Toby Butzon (php-lists <email protected>)
Date: 12/24/00

Thanks for the reply, Zeev.

I looked at the results produced by bison --help and both versions (the one
included in win32build.zip on php.net/extras and the one included with the
latest version of cygwin [it is bison 1.28]) and both spew out

C:\cygwin\bin>bison --help
Usage: 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 bug-bison <email protected>

which doesn't say anything about a -S switch (GNU programs are supposed to
display all possible switches in the help screen, aren't they?). Here's the
output MSVC6 gives me, if it's of any use:

--------------------Configuration: ZendTS - Win32
Release_TS--------------------
Performing Custom Build Step on ".\zend_language_parser.y"
bison: invalid option -- S
Usage: 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 bug-bison <email protected>

(BTW, that's the other copy of bison I have - the copy that's packed in
win32build.zip.)

Any further help would be greatly appreciated. Thanks ;)

Toby Butzon
[ criticism spurs improvement ]

----- Original Message -----
From: "Zeev Suraski" <zeev <email protected>>
To: "Toby Butzon" <TButzon <email protected>>
Cc: <php-dev <email protected>>
Sent: Sunday, December 24, 2000 5:25 AM
Subject: Re: [PHP-DEV] bison problems when compiling under win32

: At 10:42 24/12/2000, Toby Butzon wrote:
: >Hi -
: >
: >Thanks to whoever sent the link for instructions on how to compile under
: >win32. Now I'm having another problem... bison is set to run
: >
: >bison --output=zend_language_parser.c -v -d -S
: >"%CYGWIN%\share\bison.simple" -p zend zend_language_parser.y
: >
: >but it's giving me command line argument errors... the first one is
: >something about "-S" not being a valid switch.
:
: You probably have an old version of bison...
:
: Zeev
:
: --
: Zeev Suraski <zeev <email protected>>
: CTO & co-founder, Zend Technologies Ltd. http://www.zend.com/
:
:
: --
: PHP Development Mailing List <http://www.php.net/>
: To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
: For additional commands, e-mail: php-dev-help <email protected>
: To contact the list administrators, e-mail: php-list-admin <email protected>
:
:

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>