#40042 [Fbk->Opn]: Cannot configure: ./configure: line 2333: test: =: unary operator expected

2007-01-11 Thread kherrera3 at gmail dot com
 ID:   40042
 User updated by:  kherrera3 at gmail dot com
 Reported By:  kherrera3 at gmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Compile Failure
 Operating System: Slackware v10
 PHP Version:  5.2.0
 New Comment:

GNU bash, version 2.05b.0(1)-release-(i386-slackware-linux-gnu)


Previous Comments:


[2007-01-11 10:03:27] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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

What kind of shell are you using?



[2007-01-06 20:53:37] kherrera3 at gmail dot com

echo "'$0' \\" >> config.nice
  if test `expr -- $0 : "'.*"` = 0; then
CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$0'"
  else
CONFIGURE_COMMAND="$CONFIGURE_COMMAND $0"
  fi
  for arg in $ac_configure_args; do
 if test `expr -- $arg : "'.*"` = 0; then
if test `expr -- $arg : "--.*"` = 0; then
  break;
fi
echo "'$arg' \\" >> config.nice
CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$arg'"
 else
if test `expr -- $arg : "'--.*"` = 0; then
  break;
fi
echo "$arg \\" >> config.nice
CONFIGURE_COMMAND="$CONFIGURE_COMMAND $arg"
 fi
  done
  echo '"$@"' >> config.nice
  chmod +x config.nice

----

[2007-01-06 16:43:58] [EMAIL PROTECTED]

Can you show the lines in question from the configure script?



[2007-01-06 11:06:58] kherrera3 at gmail dot com

Description:

I downloaded a new copy of PHP straight to the server via wget and
extracted to its directory.  I ran configure with the arguments found
in "Reproduce code" and I received 35 lines of error messages.  The
configure script continued but stopped at locating the header file for
Apache.  The path is correct yet it still did not find it.

Shell version:
GNU bash, version 2.05b.0(1)-release-(i386-slackware-linux-gnu)

Reproduce code:
---
./configure --with-apache=/usr/local/httpd/port-80/include
--with-openssl --with-zlib --enable-bcmath --with-bz2 --enable-calendar
--with-curl --with-curlwrappers --enable-exif --enable-ftp --with-gd
--with-ttf --with-t1lib --enable-gd-native-ttf --with-gettext
--with-gmp --with-mcrypt --with-mhash --with-ming --with-mysql
--enable-pcntl --with-readline --with-mm --with-snmp --enable-soap
--enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm
--with-tidy --enable-wddx --with-xsl --enable-zip
--with-pear=/usr/local/

Actual result:
--
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
expr: syntax error
./configure: line 2333: test: =: unary operator expected
expr: syntax error
./configure: line 2339: test: =: unary operator expected
expr: syntax error
./configure: line 2346: test: =: unary operator expected
expr: syntax error
./configure: line 2339: test: =: unary operator expected
expr: syntax error
./configure: line 2346: test: =: unary operator expected
expr: syntax error
./configure: line 2339: test: =: unary operator expected
expr: syntax error
./configure: line 2346: test: =: unary operator expected
expr: syntax error
./configure: line 2339: test: =: unary operator expected
expr: syntax error
./configure: line 2346: test: =: unary operator expected
expr: syntax error
./configure: line 2339: test: =: unary operator expected
expr: syntax error
./configure: line 2346: test: =: unary operator expected
expr: syntax error
./configure: line 2339: test: =: unary operator expected
expr: syntax error
./configure: line 2346: test: =: unary operator expected
expr: syntax error
./configure: line 2339: test: =: unary operator expected
expr: syntax error
./configure: line 2346: test: =: unary operator expected
expr: syntax error
./configure: line 2339: test: =: unary operator expected
expr: syntax error
./configure: line 2346: test: =: unary operator expected
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
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 whether ln -s works... yes
checking if 

#40042 [Fbk->Opn]: Cannot configure: ./configure: line 2333: test: =: unary operator expected

2007-01-06 Thread kherrera3 at gmail dot com
 ID:   40042
 User updated by:  kherrera3 at gmail dot com
 Reported By:  kherrera3 at gmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Compile Failure
 Operating System: Slackware v10
 PHP Version:  5.2.0
 New Comment:

echo "'$0' \\" >> config.nice
  if test `expr -- $0 : "'.*"` = 0; then
CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$0'"
  else
CONFIGURE_COMMAND="$CONFIGURE_COMMAND $0"
  fi
  for arg in $ac_configure_args; do
 if test `expr -- $arg : "'.*"` = 0; then
if test `expr -- $arg : "--.*"` = 0; then
  break;
fi
echo "'$arg' \\" >> config.nice
CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$arg'"
 else
if test `expr -- $arg : "'--.*"` = 0; then
  break;
fi
echo "$arg \\" >> config.nice
CONFIGURE_COMMAND="$CONFIGURE_COMMAND $arg"
 fi
  done
  echo '"$@"' >> config.nice
  chmod +x config.nice


Previous Comments:
----

[2007-01-06 16:43:58] [EMAIL PROTECTED]

Can you show the lines in question from the configure script?



[2007-01-06 11:06:58] kherrera3 at gmail dot com

Description:

I downloaded a new copy of PHP straight to the server via wget and
extracted to its directory.  I ran configure with the arguments found
in "Reproduce code" and I received 35 lines of error messages.  The
configure script continued but stopped at locating the header file for
Apache.  The path is correct yet it still did not find it.

Shell version:
GNU bash, version 2.05b.0(1)-release-(i386-slackware-linux-gnu)

Reproduce code:
---
./configure --with-apache=/usr/local/httpd/port-80/include
--with-openssl --with-zlib --enable-bcmath --with-bz2 --enable-calendar
--with-curl --with-curlwrappers --enable-exif --enable-ftp --with-gd
--with-ttf --with-t1lib --enable-gd-native-ttf --with-gettext
--with-gmp --with-mcrypt --with-mhash --with-ming --with-mysql
--enable-pcntl --with-readline --with-mm --with-snmp --enable-soap
--enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm
--with-tidy --enable-wddx --with-xsl --enable-zip
--with-pear=/usr/local/

Actual result:
--
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
expr: syntax error
./configure: line 2333: test: =: unary operator expected
expr: syntax error
./configure: line 2339: test: =: unary operator expected
expr: syntax error
./configure: line 2346: test: =: unary operator expected
expr: syntax error
./configure: line 2339: test: =: unary operator expected
expr: syntax error
./configure: line 2346: test: =: unary operator expected
expr: syntax error
./configure: line 2339: test: =: unary operator expected
expr: syntax error
./configure: line 2346: test: =: unary operator expected
expr: syntax error
./configure: line 2339: test: =: unary operator expected
expr: syntax error
./configure: line 2346: test: =: unary operator expected
expr: syntax error
./configure: line 2339: test: =: unary operator expected
expr: syntax error
./configure: line 2346: test: =: unary operator expected
expr: syntax error
./configure: line 2339: test: =: unary operator expected
expr: syntax error
./configure: line 2346: test: =: unary operator expected
expr: syntax error
./configure: line 2339: test: =: unary operator expected
expr: syntax error
./configure: line 2346: test: =: unary operator expected
expr: syntax error
./configure: line 2339: test: =: unary operator expected
expr: syntax error
./configure: line 2346: test: =: unary operator expected
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
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 whether ln -s works... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for re2c... no
configure: warning: You will need re2c 0.9.11 or later if you want to
regenerate PHP parsers.
checking for gawk... gawk
checking for bison... bison -y
checking for bison version... 1.35 (ok)
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for working const... yes
checking for flex version..

#40042 [NEW]: Cannot configure: ./configure: line 2333: test: =: unary operator expected

2007-01-06 Thread kherrera3 at gmail dot com
From: kherrera3 at gmail dot com
Operating system: Slackware v10
PHP version:  5.2.0
PHP Bug Type: Compile Failure
Bug description:  Cannot configure: ./configure: line 2333: test: =: unary 
operator expected

Description:

I downloaded a new copy of PHP straight to the server via wget and
extracted to its directory.  I ran configure with the arguments found in
"Reproduce code" and I received 35 lines of error messages.  The configure
script continued but stopped at locating the header file for Apache.  The
path is correct yet it still did not find it.

Shell version:
GNU bash, version 2.05b.0(1)-release-(i386-slackware-linux-gnu)

Reproduce code:
---
./configure --with-apache=/usr/local/httpd/port-80/include --with-openssl
--with-zlib --enable-bcmath --with-bz2 --enable-calendar --with-curl
--with-curlwrappers --enable-exif --enable-ftp --with-gd --with-ttf
--with-t1lib --enable-gd-native-ttf --with-gettext --with-gmp
--with-mcrypt --with-mhash --with-ming --with-mysql --enable-pcntl
--with-readline --with-mm --with-snmp --enable-soap --enable-sockets
--enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-tidy
--enable-wddx --with-xsl --enable-zip --with-pear=/usr/local/

Actual result:
--
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
expr: syntax error
./configure: line 2333: test: =: unary operator expected
expr: syntax error
./configure: line 2339: test: =: unary operator expected
expr: syntax error
./configure: line 2346: test: =: unary operator expected
expr: syntax error
./configure: line 2339: test: =: unary operator expected
expr: syntax error
./configure: line 2346: test: =: unary operator expected
expr: syntax error
./configure: line 2339: test: =: unary operator expected
expr: syntax error
./configure: line 2346: test: =: unary operator expected
expr: syntax error
./configure: line 2339: test: =: unary operator expected
expr: syntax error
./configure: line 2346: test: =: unary operator expected
expr: syntax error
./configure: line 2339: test: =: unary operator expected
expr: syntax error
./configure: line 2346: test: =: unary operator expected
expr: syntax error
./configure: line 2339: test: =: unary operator expected
expr: syntax error
./configure: line 2346: test: =: unary operator expected
expr: syntax error
./configure: line 2339: test: =: unary operator expected
expr: syntax error
./configure: line 2346: test: =: unary operator expected
expr: syntax error
./configure: line 2339: test: =: unary operator expected
expr: syntax error
./configure: line 2346: test: =: unary operator expected
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
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 whether ln -s works... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for re2c... no
configure: warning: You will need re2c 0.9.11 or later if you want to
regenerate PHP parsers.
checking for gawk... gawk
checking for bison... bison -y
checking for bison version... 1.35 (ok)
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for working const... yes
checking for flex version... 2.5.4 (ok)
checking whether to force non-PIC code in shared modules... yes
checking for pthreads_cflags... -pthread
checking for pthreads_lib... 

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
configure: error: Invalid Apache directory - unable to find httpd.h under
/usr/local/httpd/port-80/include

-- 
Edit bug report at http://bugs.php.net/?id=40042&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=40042&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=40042&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=40042&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40042&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=40042&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=40042&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=40042&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=40042&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=4004