Re: [PHP4BETA] compiling for win32

From: Date: Sun, 08 Aug 1999 19:48:16 +0000
Subject: Re: [PHP4BETA] compiling for win32
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-3213@lists.php.net to get a copy of this message
At 20:17 08/08/99 , Philippe Verdy wrote:
Note: the original bison and flex sources DOES NOT have the undocumented options that specify the location of the skeleton file. This location is either built-in in the configuration file where you will install these tools, or specified in environment variables.
That's why you're instructed to use the Cygnus versions of bison and flex.
Shame: the current project workspaces for PHP4 makes use of these undocumented options, and/or specifies hard locations to CygWin32 installation directories. You'll have to patch these project workspaces to make them work on your development system. These undocumented options of flex and bison produce errors by bison and flex at compîle time if you don't patch the project workspaces. Without these options, you should launch MS-DevStudio from a command-line by first setting the environment variables to the appropriate skeleton files.
How is it a shame? You're supposed to use the Cygnus bison/flex, which support these options, just like the fact you're supposed to use an ANSI C/C++ compiler.
Shame again: PHP4 does not use the default skeleton files, but provide its own versions. I wonder why !!? I was able to compile libzend in thread safe version without using these modified skeleton files, i.e. using the standard skeletons that come with bison and flex, and which locations can be configured globally on the development system without requiring to exit DevStudio and relauching it with different environment variables settings.
They're not supposed to work, I had to hack the skeleton file to get it to work. What you describe as 'shame' seems a bit funny to me - since it's not problematic in any way. Use the right tools and you'll get the right results. Zeev -- Zeev Suraski <zeev@zend.com> http://www.zend.com/ For a PGP public key, finger bourbon@netvision.net.il

« previous php.version4 (#3213) next »