#39835 [Com]: Configure script fails with expr: syntax error

From: Date: Tue, 12 Jun 2007 09:49:58 +0000
Subject: #39835 [Com]: Configure script fails with expr: syntax error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-113680@lists.php.net to get a copy of this message
ID: 39835 Comment by: aklx at ee dot cuhk dot edu dot hk Reported By: cheetah at tanabi dot org Status: No Feedback Bug Type: *Compile Issues Operating System: Solaris 10 PHP Version: 5.2.0 New Comment: I had similar problem with php5.2.3 and php4.4.7. I was building php for my horde package and the following was observed when running configure(Sun Sparc Solaris 2.9): # ./configure --prefix=/usr/local/php.5.23 > --with-apxs=/usr/apache2/bin/apxs \ > > >> --with-gettext --with-dom \ > >> --with-iconv --enable-mbstring=all --enable-mbregex \ > >> --with-mysql=/usr/local/mysql > >> > creating cache ./config.cache > checking for Cygwin environment... no > checking for mingw32 environment... no checking for egrep... egrep > checking for a sed that does not truncate output... /usr/local/bin/sed > expr: syntax error > ../configure: test: argument expected I used gnu sed when I had the problem when using the Solairs sed. Previous Comments: ------------------------------------------------------------------------ [2007-03-13 15:23:11] v2 at petrov dot ks dot ua Have same error when try to compile php-4.4.6 # ./configure loading cache ./config.cache checking for egrep... grep -E checking for a sed that does not truncate output... /bin/sed expr: syntax error ./configure: test: =: unary operator expected ... OS Red Hat 7.3 # bash --version GNU bash, version 2.05a.0(1)-release (i686-pc-linux-gnu) Copyright 2001 Free Software Foundation, Inc. # expr --version expr (GNU sh-utils) 2.0.11 Written by Mike Parker. ------------------------------------------------------------------------ [2006-12-23 01:00:00] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2006-12-15 09:59:10] tony2001@php.net What kind of Bash are you using? What is the version #? ------------------------------------------------------------------------ [2006-12-15 04:52:58] cheetah at tanabi dot org Okay; I upgraded the bash on the system and made sure configure was using it (it was using /bin/sh, which is Sun's 'sh' and therefore could be problematic). Bash is now at 3.2 and now when I run configure (same command as mentioned in the original bug): loading cache ./config.cache checking for Cygwin environment... no checking for mingw32 environment... no checking for egrep... egrep checking for a sed that does not truncate output... /usr/local/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 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 ==== Then it continues on normally. This problem looks like another problem I saw in the bug system, so I'll take a look around again for it. The build was successful, so I'm inclined to not really care as much anymore :) But if it's a real problem I'd like to help track it down all the same. ------------------------------------------------------------------------ [2006-12-15 03:45:33] toomuchphp-phpbugs at yahoo dot com I had the some problem on OS X upgrading to 5.2, you just need to upgrade your shell (e.g., bash). ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/39835 -- Edit this bug report at http://bugs.php.net/?id=39835&edit=1

« previous php.bugs (#113680) next »