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

Ask a Question related to PHP Bugs, Design and Development.

  1. #1

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

    From: cheetah at tanabi dot org
    Operating system: Solaris 10
    PHP version: 5.2.0
    PHP Bug Type: *Compile Issues
    Bug description: Configure script fails with expr: syntax error

    Description:
    ------------
    Two notes; I have tried this on two separate Solaris 10 machines and I get
    this exact same error on both. On both machines, past versions of PHP have
    successfully compiled -- namely PHP 5.1.6 and a few earlier ones as well.

    Not doing anything particularly special here other than a 64 bit build (we
    use a large memory application with this) WHICH worked perfectly fine with
    5.1.6... The flags to build 64 bit are in CFLAGS and LDFLAGS, namely
    -mcpu=ultrasparc -m64 here's what happens:

    ../configure --prefix=/usr/local/64 --enable-sysvmsg --enable-sysvsem
    --enable-sysvshm --enable-sockets --with-pgsql=/usr/local/64/pgsql
    --with-pdo-pgsql=/usr/local/64/pgsql --with-libxml-dir=/usr/local/64
    --enable-ftp --without-iconv
    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: test: argument expected


    'expr' shows up only about 60 billion times in the file, and I have been
    unable to reasonably isolate which one is actually failing. Too bad shell
    scripts aren't nice enough to provide a line number! :) I'm hoping someone
    can help me out here, and appologies if this has already been reported -- I
    did search the bug DB for quite awhile before posting :)


    Thanks!


    Reproduce code:
    ---------------
    N/A

    Expected result:
    ----------------
    N/A

    Actual result:
    --------------
    N/A

    --
    Edit bug report at [url]http://bugs.php.net/?id=39835&edit=1[/url]
    --
    Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=39835&r=trysnapshot44[/url]
    Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=39835&r=trysnapshot52[/url]
    Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=39835&r=trysnapshot60[/url]
    Fixed in CVS: [url]http://bugs.php.net/fix.php?id=39835&r=fixedcvs[/url]
    Fixed in release: [url]http://bugs.php.net/fix.php?id=39835&r=alreadyfixed[/url]
    Need backtrace: [url]http://bugs.php.net/fix.php?id=39835&r=needtrace[/url]
    Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=39835&r=needscript[/url]
    Try newer version: [url]http://bugs.php.net/fix.php?id=39835&r=oldversion[/url]
    Not developer issue: [url]http://bugs.php.net/fix.php?id=39835&r=support[/url]
    Expected behavior: [url]http://bugs.php.net/fix.php?id=39835&r=notwrong[/url]
    Not enough info: [url]http://bugs.php.net/fix.php?id=39835&r=notenoughinfo[/url]
    Submitted twice: [url]http://bugs.php.net/fix.php?id=39835&r=submittedtwice[/url]
    register_globals: [url]http://bugs.php.net/fix.php?id=39835&r=globals[/url]
    PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=39835&r=php3[/url]
    Daylight Savings: [url]http://bugs.php.net/fix.php?id=39835&r=dst[/url]
    IIS Stability: [url]http://bugs.php.net/fix.php?id=39835&r=isapi[/url]
    Install GNU Sed: [url]http://bugs.php.net/fix.php?id=39835&r=gnused[/url]
    Floating point limitations: [url]http://bugs.php.net/fix.php?id=39835&r=float[/url]
    No Zend Extensions: [url]http://bugs.php.net/fix.php?id=39835&r=nozend[/url]
    MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=39835&r=mysqlcfg[/url]
    cheetah at tanabi dot org Guest

  2. Similar Questions and Discussions

    1. #25809 [Fbk->Opn]: attempting to configure with xslt option breaks configure script for yp
      ID: 25809 User updated by: xirkus at z1r0 dot com Reported By: xirkus at z1r0 dot com -Status: Feedback +Status: ...
    2. #25809 [Fbk]: attempting to configure with xslt option breaks configure script for yp
      ID: 25809 Updated by: sniper@php.net Reported By: xirkus at z1r0 dot com Status: Feedback Bug Type: ...
    3. #25809 [Opn->Fbk]: attempting to configure with xslt option breaks configure script for yp
      ID: 25809 Updated by: sniper@php.net Reported By: xirkus at z1r0 dot com -Status: Open +Status: ...
    4. #25809 [Bgs->Opn]: attempting to configure with xslt option breaks configure script for yp
      ID: 25809 User updated by: xirkus at z1r0 dot com Reported By: xirkus at z1r0 dot com -Status: Bogus +Status: ...
    5. #25809 [NEW]: attempting to configure with xslt option breaks configure script for yp
      From: xirkus at z1r0 dot com Operating system: Linux Kernel 2.4.21 PHP version: 4.3.2 PHP Bug Type: *Compile Issues Bug...
  3. #2

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

    ID: 39835
    Comment by: toomuchphp-phpbugs at yahoo dot com
    Reported By: cheetah at tanabi dot org
    Status: Open
    Bug Type: *Compile Issues
    Operating System: Solaris 10
    PHP Version: 5.2.0
    New Comment:

    I had the some problem on OS X upgrading to 5.2, you just need to
    upgrade your shell (e.g., bash).


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

    [2006-12-14 22:05:55] cheetah at tanabi dot org

    Description:
    ------------
    Two notes; I have tried this on two separate Solaris 10 machines and I
    get this exact same error on both. On both machines, past versions of
    PHP have successfully compiled -- namely PHP 5.1.6 and a few earlier
    ones as well.

    Not doing anything particularly special here other than a 64 bit build
    (we use a large memory application with this) WHICH worked perfectly
    fine with 5.1.6... The flags to build 64 bit are in CFLAGS and
    LDFLAGS, namely -mcpu=ultrasparc -m64 here's what happens:

    ../configure --prefix=/usr/local/64 --enable-sysvmsg --enable-sysvsem
    --enable-sysvshm --enable-sockets --with-pgsql=/usr/local/64/pgsql
    --with-pdo-pgsql=/usr/local/64/pgsql --with-libxml-dir=/usr/local/64
    --enable-ftp --without-iconv
    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: test: argument expected


    'expr' shows up only about 60 billion times in the file, and I have
    been unable to reasonably isolate which one is actually failing. Too
    bad shell scripts aren't nice enough to provide a line number! :) I'm
    hoping someone can help me out here, and appologies if this has already
    been reported -- I did search the bug DB for quite awhile before posting
    :)


    Thanks!


    Reproduce code:
    ---------------
    N/A

    Expected result:
    ----------------
    N/A

    Actual result:
    --------------
    N/A


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


    --
    Edit this bug report at [url]http://bugs.php.net/?id=39835&edit=1[/url]
    toomuchphp-phpbugs at yahoo dot com Guest

  4. #3

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

    ID: 39835
    User updated by: cheetah at tanabi dot org
    Reported By: cheetah at tanabi dot org
    Status: Open
    Bug Type: *Compile Issues
    Operating System: Solaris 10
    PHP Version: 5.2.0
    New Comment:

    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.


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

    [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).

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

    [2006-12-14 22:05:55] cheetah at tanabi dot org

    Description:
    ------------
    Two notes; I have tried this on two separate Solaris 10 machines and I
    get this exact same error on both. On both machines, past versions of
    PHP have successfully compiled -- namely PHP 5.1.6 and a few earlier
    ones as well.

    Not doing anything particularly special here other than a 64 bit build
    (we use a large memory application with this) WHICH worked perfectly
    fine with 5.1.6... The flags to build 64 bit are in CFLAGS and
    LDFLAGS, namely -mcpu=ultrasparc -m64 here's what happens:

    ../configure --prefix=/usr/local/64 --enable-sysvmsg --enable-sysvsem
    --enable-sysvshm --enable-sockets --with-pgsql=/usr/local/64/pgsql
    --with-pdo-pgsql=/usr/local/64/pgsql --with-libxml-dir=/usr/local/64
    --enable-ftp --without-iconv
    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: test: argument expected


    'expr' shows up only about 60 billion times in the file, and I have
    been unable to reasonably isolate which one is actually failing. Too
    bad shell scripts aren't nice enough to provide a line number! :) I'm
    hoping someone can help me out here, and appologies if this has already
    been reported -- I did search the bug DB for quite awhile before posting
    :)


    Thanks!


    Reproduce code:
    ---------------
    N/A

    Expected result:
    ----------------
    N/A

    Actual result:
    --------------
    N/A


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


    --
    Edit this bug report at [url]http://bugs.php.net/?id=39835&edit=1[/url]
    cheetah at tanabi dot org Guest

  5. #4

    Default #39835 [Opn->Fbk]: Configure script fails with expr: syntax error

    ID: 39835
    Updated by: [email]tony2001@php.net[/email]
    Reported By: cheetah at tanabi dot org
    -Status: Open
    +Status: Feedback
    Bug Type: *Compile Issues
    Operating System: Solaris 10
    PHP Version: 5.2.0
    New Comment:

    What kind of Bash are you using? What is the version #?


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

    [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).

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

    [2006-12-14 22:05:55] cheetah at tanabi dot org

    Description:
    ------------
    Two notes; I have tried this on two separate Solaris 10 machines and I
    get this exact same error on both. On both machines, past versions of
    PHP have successfully compiled -- namely PHP 5.1.6 and a few earlier
    ones as well.

    Not doing anything particularly special here other than a 64 bit build
    (we use a large memory application with this) WHICH worked perfectly
    fine with 5.1.6... The flags to build 64 bit are in CFLAGS and
    LDFLAGS, namely -mcpu=ultrasparc -m64 here's what happens:

    ../configure --prefix=/usr/local/64 --enable-sysvmsg --enable-sysvsem
    --enable-sysvshm --enable-sockets --with-pgsql=/usr/local/64/pgsql
    --with-pdo-pgsql=/usr/local/64/pgsql --with-libxml-dir=/usr/local/64
    --enable-ftp --without-iconv
    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: test: argument expected


    'expr' shows up only about 60 billion times in the file, and I have
    been unable to reasonably isolate which one is actually failing. Too
    bad shell scripts aren't nice enough to provide a line number! :) I'm
    hoping someone can help me out here, and appologies if this has already
    been reported -- I did search the bug DB for quite awhile before posting
    :)


    Thanks!


    Reproduce code:
    ---------------
    N/A

    Expected result:
    ----------------
    N/A

    Actual result:
    --------------
    N/A


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


    --
    Edit this bug report at [url]http://bugs.php.net/?id=39835&edit=1[/url]
    tony2001@php.net Guest

  6. #5

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

    ID: 39835
    Comment by: v2 at petrov dot ks dot ua
    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:

    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.


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

    [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] [email]tony2001@php.net[/email]

    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).

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

    [2006-12-14 22:05:55] cheetah at tanabi dot org

    Description:
    ------------
    Two notes; I have tried this on two separate Solaris 10 machines and I
    get this exact same error on both. On both machines, past versions of
    PHP have successfully compiled -- namely PHP 5.1.6 and a few earlier
    ones as well.

    Not doing anything particularly special here other than a 64 bit build
    (we use a large memory application with this) WHICH worked perfectly
    fine with 5.1.6... The flags to build 64 bit are in CFLAGS and
    LDFLAGS, namely -mcpu=ultrasparc -m64 here's what happens:

    ../configure --prefix=/usr/local/64 --enable-sysvmsg --enable-sysvsem
    --enable-sysvshm --enable-sockets --with-pgsql=/usr/local/64/pgsql
    --with-pdo-pgsql=/usr/local/64/pgsql --with-libxml-dir=/usr/local/64
    --enable-ftp --without-iconv
    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: test: argument expected


    'expr' shows up only about 60 billion times in the file, and I have
    been unable to reasonably isolate which one is actually failing. Too
    bad shell scripts aren't nice enough to provide a line number! :) I'm
    hoping someone can help me out here, and appologies if this has already
    been reported -- I did search the bug DB for quite awhile before posting
    :)


    Thanks!


    Reproduce code:
    ---------------
    N/A

    Expected result:
    ----------------
    N/A

    Actual result:
    --------------
    N/A


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


    --
    Edit this bug report at [url]http://bugs.php.net/?id=39835&edit=1[/url]
    v2 at petrov dot ks dot ua Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139