ID:               20756
 Comment by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Feedback
 Bug Type:         Compile Failure
 Operating System: Solaris 2.8
 PHP Version:      4.3.0RC2
 Assigned To:      iliaa
 New Comment:

Same thing.
-----

pwd && ./configure --enable-trans-sid --with-mysql=/usr/local/mysql
--with-apxs2=/usr/local/apache2/bin/apxs --with-gd=/usr/local
--with-jpeg-dir=/usr/local --with-png-dir=/usr/local
--with-zlib-dir=/usr
/usr/home/evan/php4-200212020630
loading cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for working sed... sed
checking host system type... sparc-sun-solaris2.8
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking if compiler supports -R... yes
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for gawk... gawk
checking for bison... no
checking for byacc... no
configure: warning: You will need bison if you want to regenerate the
PHP parsers.
checking for flex... lex
checking for yywrap in -ll... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... no
checking for working const... yes
checking flex version... lex: Software Generation Utilities (SGU)
Solaris-ELF (4.0)

And it justs hangs again. The solaris version of lex prints it's
version on standard err and then enters processing mode, so like most
solaris things you just need to cater to the way it works. Echoing
nothing to $LEX -V, while dumping a lot of garbage on the screen,
allows configure to continue and still works with GNU flex install as
well.

Here's a unified diff.

--- configure.bak       Mon Dec  2 02:16:42 2002
+++ configure   Mon Dec  2 02:32:16 2002
@@ -2632,7 +2632,7 @@
 
 echo $ac_n "checking flex version""... $ac_c" 1>&6
 echo "configure:2635: checking flex version" >&5
-set `$LEX -V | grep 'version' | cut -d ' ' -f 3 | sed -e 's/\./ /g' |
sed -e 's/^0-9 //g'`
+set `echo '' | $LEX -V | grep 'version' | cut -d ' ' -f 3 | sed -e
's/\./ /g' | sed -e 's/^0-9 //g'`
 if test "${1}" != "2" -o "${2}" != "5" -o "${3}" -lt "4"; then
         echo "configure: warning: You will need flex 2.5.4 or later if
you want to regenerate Zend/PHP lexical parsers." 1>&2
 fi


Previous Comments:
------------------------------------------------------------------------

[2002-12-02 01:03:44] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip



------------------------------------------------------------------------

[2002-12-02 00:07:02] [EMAIL PROTECTED]

Configure command:
./configure --enable-trans-sid --with-mysql=/usr/local/mysql
--with-apxs2=/usr/local/apache2/bin/apxs --with-gd=/usr/local
--with-jpeg-dir=/usr/local --with-png-dir=/usr/local
--with-zlib-dir=/usr

Configure output:
checking for working sed... sed
checking build system type... sparc-sun-solaris2.8
checking host system type... sparc-sun-solaris2.8
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking if compiler supports -R... yes
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for gawk... gawk
checking for bison... no
checking for byacc... no
configure: WARNING: You will need bison if you want to regenerate the
PHP parsers.
checking for flex... no
checking for lex... lex
checking for yywrap in -lfl... no
checking for yywrap in -ll... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... no
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking flex version... lex: Software Generation Utilities (SGU)
Solaris-ELF (4.0)


The script just hangs and waits indefinitley at this point.
Installing the GNU version of flex, obviously, solved the problem.

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=20756&edit=1

Reply via email to