Re: [PHP-DEV] ask for help

2001-03-12 Thread Yury Faktorovich

I posted my answer for it on [EMAIL PROTECTED] Unfortunately I deleted the
local copy
of my
post. Please let me know if you can or can not find it in archives I'll
post it
again.
Yury

Greg Sohl wrote:

 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 

Re: [PHP-DEV] for help (fwd)

2001-03-08 Thread Yury Faktorovich

Sorry for reply all, I though it might worth a while because I saw at least two 
similar complaints on dejanews (coogle). If it's a wrong place to talk about this 
please let me know, I'll make sure  that I don;t post it here anymore.
Thanks.
=

Hi! I've had the same problem. Here is what I did:
1. Follow directions on
http://www.php.net/version4/win32build.php, I mean literally
2. I just removed this weird -S option from bison. In your msdev project go to
php4dllts/Parsers/parsedate.y and select "settings" Under custom build make sure that
you have this under commands:

if not "X%CYGWIN%"=="X" bison --output=parsedate.c -v -d -S 
"%CYGWIN%\share\bison.simple" parsedate.y
if "X%CYGWIN%"=="X" bison --output=parsedate.c -v -d -S "C:\Program 
Files\Cygnus\share\bison.simple" parsedate.y

You'll get bunch of warnings - I just ignored them
Email me at [EMAIL PROTECTED] if you have any issues with this.

Good luck. Yury.

Do the same for files under ZendTS/parsers
[EMAIL PROTECTED] wrote:

 can someone help this guy out?
 please reply directly to his e-mail address.

 thanks,

 - avi

 -- Forwarded message --
 Date: Mon, 05 Mar 2001 16:07:56 +0800
 From: wyc [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: for help

 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