Menu

#266 configure not working under cygwin

Portability
closed-invalid
nobody
5
2007-07-11
2007-05-24
No

(tested with 3.98b3)

./configure script doesn't work anymore under cygwin:

./configure: line 13:
: command not found
./configure: line 21: syntax error near unexpected token `elif'
./configure: line 21: `elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
'

Discussion

  • Robert Hegemann

    Robert Hegemann - 2007-06-28

    Logged In: YES
    user_id=1106
    Originator: NO

    What version of Cygwin are you using?
    I tried the latest Cygwin and I'm seeing completely different problems:
    - sometimes configure waites on some already crashed sh processes
    - if not like above then configure freezes my Notebook at some point
    and I can only turn off the computer

    But I never run into the problems you got. Btw while setting up Cygwin
    I checked "DOS line endings"

    + a normal make -f Makefile.unix CFG=RH PREC=SINGLE results in an executable LAME

    Is Cygwin worth the trouble?

    Ciao Robert

     
  • Robert Hegemann

    Robert Hegemann - 2007-06-28

    Logged In: YES
    user_id=1106
    Originator: NO

    What version of Cygwin are you using?
    I tried the latest Cygwin and I'm seeing completely different problems:
    - sometimes configure waites on some already crashed sh processes
    - if not like above then configure freezes my Notebook at some point
    and I can only turn off the computer

    But I never run into the problems you got. Btw while setting up Cygwin
    I checked "DOS line endings"

    + a normal make -f Makefile.unix CFG=RH PREC=SINGLE results in an executable LAME

    Is Cygwin worth the trouble?

    Ciao Robert

     
  • Gabriel Bouvigne

    Logged In: YES
    user_id=1056
    Originator: YES

    Tryed with an up to date cygwin today:

    $ ./configure
    ./configure: line 13: $'\r': command not found
    ./configure: line 21: syntax error near unexpected token `elif'
    ./configure: line 21: `elif test -n "${BASH_VERSION+set}" && (set -o posix) >/de
    '/null 2>&1; then

    If cygwin is freezing your computer, I think that there is something seriously wrong with either your cygwin install or your OS install.

    Is it worth supporting cygwin:
    For several years, cygwin was my main way to check if Lame was working fine under *nixes and gcc. It also allowed me to run the python test script.
    But I will let you choose if you want to keep this as a blocker for 3.98 or not.

     
  • Alexander Leidinger

    Logged In: YES
    user_id=90585
    Originator: NO

    I had a look at the current configure script. Line 13 is a blank line in my tree. Then follows a test if it is started in zsh or bash. These are the first real command there and are inserted by autoconf itself. Any bug there is either in cygwin or in autoconf.

    Can you please try the same again in unix-line-endings-mode instead of DOS-line-endings mode?

    If this fails to, I try to get a little bit of time and have a look at the most recent version of autoconf (which is available in the package system of FreeBSD).

     
  • Gabriel Bouvigne

    • status: open --> closed-invalid
     
  • Gabriel Bouvigne

    Logged In: YES
    user_id=1056
    Originator: YES

    Found the problem.
    If you setup cygwin with dos-line-ending, it does not work.
    If you setup cygwin with unix-line-ending and checkout from within cygwin, it works.
    If you setup cygwin with unix-line-ending and checkout from another tool using dos-line-ending, it does not work. (that was my case, as I used winCVS to checkout/update)

    Closing the issue.

     

Log in to post a comment.