Cygwin environment broken
Posted: 07 Oct 2006 12:26
There is a problem for using Cygwin as a compilation environment for VLC, FFmpeg, x264 etc. with the latest version of packages (at least since 7 oct. 2006).
VLC (svn 16959 but also later revisions) compile breaks at:
The contents of version.c (generated every compile by ./toolbox --update-version) appears flawed and shows the svn version nr. with a question mark "16959?"
Using a simple svnversion test the following output is created:
This is wrong since there is a missing " at the end. Reverting to older bash 3.1.17(6) does show a " at the end but still the version.c has the same problem with the question mark. This doesn't only affect VLC but also other sources such as x264 (svn 584) compilation:
Again the version nr. inside the generated config.h is not correct and shows a ? mark at the end. FFmpeg (svn 6572) already fails on configure:
The problem seems bash / dos2unix related.
The advice for now is if you have a working environment, DO NOT UPGRADE any package at this time. If you have any suggestions please post here. Downgrading binutils, bash etc. does not help.
Some threads referring to broken cygwin/binutils/gdb:
viewtopic.php?t=27504 - Compiling latest svn trunk (17130) fails
viewtopic.php?t=27372 - Debugging vlc in cygwin/gdb
viewtopic.php?t=27993 - Compiled 0.8.5 version okay, but can't execute on winXP
viewtopic.php?t=28204 - Can't compile VLC with cygwin
VLC (svn 16959 but also later revisions) compile breaks at:
Code: Select all
misc/version.c:6: error: missing terminating " character
misc/version.c:7: error: missing terminating " character
misc/version.c:7: error: parse error at end of input
make[4]: *** [misc/libvlc_a-version.o] Error 1
Using a simple svnversion test the following output is created:
Code: Select all
$ bash --version
GNU bash, version 3.1.17(9)-release (i686-pc-cygwin)
Copyright (C) 2005 Free Software Foundation, Inc.
$ test=`svnversion .`; echo \"$test\"
"16959
Code: Select all
In file included from x264.c:42:
config.h:5: error: missing terminating " character
x264.c: In function `Help':
x264.c:142: error: missing terminating " character
x264.c:142: error: parse error before ',' token
make: *** [x264.o] Error 1
Code: Select all
$ ./configure
: command not found:
: No such file or directoryull
'/configure: line 20: syntax error near unexpected token `{
'/configure: line 20: `show_help(){
The advice for now is if you have a working environment, DO NOT UPGRADE any package at this time. If you have any suggestions please post here. Downgrading binutils, bash etc. does not help.
Some threads referring to broken cygwin/binutils/gdb:
viewtopic.php?t=27504 - Compiling latest svn trunk (17130) fails
viewtopic.php?t=27372 - Debugging vlc in cygwin/gdb
viewtopic.php?t=27993 - Compiled 0.8.5 version okay, but can't execute on winXP
viewtopic.php?t=28204 - Can't compile VLC with cygwin