I've encountered an odd problem installing cygwin on Windows Server 2003
R2, Enterprise x64 edition. This is a default installation of cygwin
from yesterday on a fresh Windows installation on a Xen VM hosted by
SLES10SP1.
The installer runs normally, but most of the postinstall scripts fail.
I eventually traced the problem to a failure with bash's builtin "test"
and "[" commands.
If I run a basic "test" command like this:
$ test -e /
then the shell simply exits, without printing any error messages. There
are no errors reported in the Windows error log. If I try this:
$ test -e / ; echo hi
then the shell exits without echoing, and without printing any error
messages. If I use the external test command:
$ /bin/test -e / ; echo hi
then "hi" is echoed as expected. This happens with almost all arguments
to "test" that I've tried... even "test 1" kills the shell in the same
way. However, just "test" with no arguments doesn't trigger the problem.
Cygwin1.dll and bash from various time periods fail in the same way.
Cygwin versions which work on other machines with other versions of
Windows fail on this machine. So it appears to be an issue with this
particular Windows installation.
Any suggestions on what to try? I see from the mailing list that others
have cygwin working on Windows Server 2003 64-bit.
Cygcheck output is below. Strace output available on request. (Note
that cygcheck shows Microsoft's SUA is installed. It failed the same
way before and after I installed SUA.)
Thanks,
--
Brian J. Johnson
--------------------------------------------------------------------
Ils ne savaient pas que c'etait impossible alors ils l'ont fait
-- Quoted by Antoine Percher
Cygwin Configuration Diagnostics
Current System Time: Wed Jan 30 16:59:41 2008
Windows 2003 Enterprise Server Ver 5.2 Build 3790 Service Pack 2
Running under WOW64 on AMD64
Running in Terminal Service session
Path: C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
c:\WINDOWS\system32
c:\WINDOWS
c:\WINDOWS\System32\Wbem
c:\WINDOWS\SUA\common\
c:\WINDOWS\SUA\usr\lib\
Output from C:\cygwin\bin\id.exe (nontsec)
UID: 400(Administrator) GID: 401(mkpasswd)
401(mkpasswd)
Output from C:\cygwin\bin\id.exe (ntsec)
UID: 400(Administrator) GID: 401(mkpasswd)
401(mkpasswd)
SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS
LD_LIBRARY_PATH = '/usr/lib/x86:/usr/X11R6/lib'
PWD = '/cygdrive/c/ab'
CYGWIN = 'binmode ntsec tty'
HOME = '/cygdrive/c/Documents and Settings/Administrator'
HOMEPATH = '\Documents and Settings\Administrator'
APPDATA = 'C:\Documents and Settings\Administrator\Application Data'
PROGRAMW6432 = 'C:\Program Files'
XKEYSYMDB = '/usr/X11R6/lib/X11/XKeysymDB'
TERM = 'cygwin'
PROCESSOR_IDENTIFIER = 'EM64T Family 6 Model 15 Stepping 4, GenuineIntel'
WINDIR = 'C:\WINDOWS'
COMMONPROGRAMW6432 = 'C:\Program Files\Common Files'
OLDPWD = '/usr/bin'
USERDOMAIN = 'YOUR-246198A2E3'
COMMONPROGRAMFILES(X86) = 'C:\Program Files (x86)\Common Files'
OS = 'Windows_NT'
ALLUSERSPROFILE = 'C:\Documents and Settings\All Users'
XAPPLRESDIR = '/usr/X11R6/lib/X11/app-defaults'
XCMSDB = '/usr/X11R6/lib/X11/Xcms.txt'
TEMP = '/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/1'
COMMONPROGRAMFILES = 'C:\Program Files (x86)\Common Files'
XNLSPATH = '/usr/X11R6/lib/X11/locale'
SFUDIR = 'C:\WINDOWS\SUA\'
USERNAME = 'Administrator'
SUA_ROOT = '/dev/fs/C/WINDOWS/SUA/'
CLUSTERLOG = 'C:\WINDOWS\Cluster\cluster.log'
PROCESSOR_LEVEL = '6'
INTERIX_ROOT = '/dev/fs/C/WINDOWS/SUA/'
FP_NO_HOST_CHECK = 'NO'
SYSTEMDRIVE = 'C:'
PROCESSOR_ARCHITEW6432 = 'AMD64'
EDITOR = 'vi'
USERPROFILE = 'C:\Documents and Settings\Administrator'
CLIENTNAME = 'PC-BJOHNSON'
LOGONSERVER = '\\YOUR-246198A2E3'
PROCESSOR_ARCHITECTURE = 'x86'
!C: = 'C:\cygwin\bin'
SHLVL = '1'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
INTERIX_ROOT_WIN = 'C:\WINDOWS\SUA\'
HOMEDRIVE = 'C:'
SFUDIR_INTERIX = '/dev/fs/C/WINDOWS/SUA/'
PROMPT = '$P$G'
COMSPEC = 'C:\WINDOWS\system32\cmd.exe'
TMP = '/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/1'
SYSTEMROOT = 'C:\WINDOWS'
PROCESSOR_REVISION = '0f04'
PROGRAMFILES = 'C:\Program Files (x86)'
OPENNT_ROOT = '/dev/fs/C/WINDOWS/SUA/'
DISPLAY = 'localhost:0.0'
NUMBER_OF_PROCESSORS = '1'
PROGRAMFILES(X86) = 'C:\Program Files (x86)'
SESSIONNAME = 'RDP-Tcp#1'
COMPUTERNAME = 'YOUR-246198A2E3'
_ = '/bin/cygcheck'
HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
(default) = '/cygdrive'
cygdrive flags = 0x00000022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
(default) = 'C:\cygwin'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
(default) = 'C:\cygwin/bin'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
(default) = 'C:\cygwin/lib'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options
c: hd NTFS 28600Mb 14% CP CS UN PA FC
d: cd CDFS 841Mb 100% CS CD_ROM
C:\cygwin / system binmode
C:\cygwin/bin /usr/bin system binmode
C:\cygwin/lib /usr/lib system binmode
. /cygdrive system binmode,cygdrive
Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: c:\WINDOWS\SUA\common\cat.exe
Warning: C:\cygwin\bin\cat.exe hides c:\WINDOWS\SUA\common\cat.exe
Found: C:\cygwin\bin\cp.exe
Found: c:\WINDOWS\SUA\common\cp.exe
Warning: C:\cygwin\bin\cp.exe hides c:\WINDOWS\SUA\common\cp.exe
Not Found: cpp (good!)
Not Found: crontab
Found: C:\cygwin\bin\find.exe
Found: c:\WINDOWS\SUA\common\find.exe
Warning: C:\cygwin\bin\find.exe hides c:\WINDOWS\SUA\common\find.exe
Not Found: gcc
Not Found: gdb
Found: C:\cygwin\bin\grep.exe
Found: c:\WINDOWS\SUA\common\grep.exe
Warning: C:\cygwin\bin\grep.exe hides c:\WINDOWS\SUA\common\grep.exe
Found: C:\cygwin\bin\kill.exe
Not Found: ld
Found: C:\cygwin\bin\ls.exe
Found: c:\WINDOWS\SUA\common\ls.exe
Warning: C:\cygwin\bin\ls.exe hides c:\WINDOWS\SUA\common\ls.exe
Not Found: make
Found: C:\cygwin\bin\mv.exe
Found: c:\WINDOWS\SUA\common\mv.exe
Warning: C:\cygwin\bin\mv.exe hides c:\WINDOWS\SUA\common\mv.exe
Not Found: patch
Not Found: perl
Found: C:\cygwin\bin\rm.exe
Found: c:\WINDOWS\SUA\common\rm.exe
Warning: C:\cygwin\bin\rm.exe hides c:\WINDOWS\SUA\common\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: c:\WINDOWS\SUA\common\sed.exe
Warning: C:\cygwin\bin\sed.exe hides c:\WINDOWS\SUA\common\sed.exe
Not Found: ssh
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe
Found: C:\cygwin\bin\test.exe
Found: c:\WINDOWS\SUA\common\vi.exe
Not Found: vim
61k 2006/11/10 C:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
"cygbz2-1.dll" v0.0 ts=2006/11/10 15:42
7k 2003/10/19 C:\cygwin\bin\cygcrypt-0.dll - os=4.0 img=1.0 sys=4.0
"cygcrypt-0.dll" v0.0 ts=2003/10/19 0:57
40k 2006/11/15 C:\cygwin\bin\cygform-8.dll - os=4.0 img=1.0 sys=4.0
"cygform-8.dll" v0.0 ts=2006/11/14 23:06
25k 2008/01/04 C:\cygwin\bin\cyghistory6.dll - os=4.0 img=1.0 sys=4.0
"cyghistory6.dll" v0.0 ts=2008/1/3 19:31
271k 2007/08/24 C:\cygwin\bin\cygicons-0.dll - os=4.0 img=1.0 sys=4.0
"cygicons-0.dll" v0.0 ts=2007/8/24 0:24
976k 2006/10/22 C:\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
"cygiconv-2.dll" v0.0 ts=2006/10/22 16:44
31k 2005/11/20 C:\cygwin\bin\cygintl-3.dll - os=4.0 img=1.0 sys=4.0
"cygintl-3.dll" v0.0 ts=2005/11/19 18:04
31k 2006/10/23 C:\cygwin\bin\cygintl-8.dll - os=4.0 img=1.0 sys=4.0
"cygintl-8.dll" v0.0 ts=2006/10/22 17:12
21k 2006/11/15 C:\cygwin\bin\cygmenu-8.dll - os=4.0 img=1.0 sys=4.0
"cygmenu-8.dll" v0.0 ts=2006/11/14 23:05
67k 2006/11/15 C:\cygwin\bin\cygncurses++-8.dll - os=4.0 img=1.0 sys=4.0
"cygncurses++-8.dll" v0.0 ts=2006/11/14 23:13
237k 2006/11/15 C:\cygwin\bin\cygncurses-8.dll - os=4.0 img=1.0 sys=4.0
"cygncurses-8.dll" v0.0 ts=2006/11/14 23:02
12k 2006/11/15 C:\cygwin\bin\cygpanel-8.dll - os=4.0 img=1.0 sys=4.0
"cygpanel-8.dll" v0.0 ts=2006/11/14 23:04
133k 2007/06/27 C:\cygwin\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0
"cygpcre-0.dll" v0.0 ts=2007/6/26 20:49
303k 2007/06/27 C:\cygwin\bin\cygpcrecpp-0.dll - os=4.0 img=1.0 sys=4.0
"cygpcrecpp-0.dll" v0.0 ts=2007/6/26 20:50
7k 2007/06/27 C:\cygwin\bin\cygpcreposix-0.dll - os=4.0 img=1.0 sys=4.0
"cygpcreposix-0.dll" v0.0 ts=2007/6/26 20:50
22k 2002/06/09 C:\cygwin\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0
"cygpopt-0.dll" v0.0 ts=2002/6/8 22:45
155k 2008/01/04 C:\cygwin\bin\cygreadline6.dll - os=4.0 img=1.0 sys=4.0
"cygreadline6.dll" v0.0 ts=2008/1/3 19:31
1829k 2007/12/14 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
"cygwin1.dll" v0.0 ts=2007/12/14 10:22
Cygwin DLL version info:
DLL version: 1.5.25
DLL epoch: 19
DLL bad signal mask: 19005
DLL old termios: 5
DLL malloc env: 28
API major: 0
API minor: 156
Shared data: 4
DLL identifier: cygwin1
Mount registry: 2
Cygnus registry name: Cygnus Solutions
Cygwin registry name: Cygwin
Program options name: Program Options
Cygwin mount registry name: mounts v2
Cygdrive flags: cygdrive flags
Cygdrive prefix: cygdrive prefix
Cygdrive default prefix:
Build date: Fri Dec 14 19:21:07 CET 2007
CVS tag: cr-0x5f1
Shared id: cygwin1S4
Can't find the cygrunsrv utility, skipping services check.
Cygwin Package Information
Last downloaded files to: C:\ab\dl
Last downloaded files from: C:\ab\dl
Package Version
_update-info-dir 00578-1
alternatives 1.3.29a-1
ash 20040127-3
base-files 3.7-1
base-passwd 2.2-1
bash 3.2.33-18
bzip2 1.0.3-2
coreutils 6.9-5
crypt 1.1-1
cygutils 1.3.2-1
cygwin 1.5.25-7
cygwin-doc 1.4-4
editrights 1.01-2
findutils 4.3.11-1
gawk 3.1.6-1
grep 2.5.1a-4
groff 1.18.1-2
gzip 1.3.12-2
less 382-1
libbz2_1 1.0.3-2
libiconv2 1.11-1
libintl3 0.14.5-1
libintl8 0.15-1
libncurses8 5.5-3
libpcre0 7.2-1
libpopt0 1.6.4-4
libreadline6 5.2.12-10
login 1.9-7
man 1.6e-1
mktemp 1.5-4
rebase 2.4.3-1
run 1.1.10-1
sed 4.1.5-2
tar 1.19-1
termcap 20050421-1
terminfo 5.5_20061104-1
texinfo 4.8a-1
tzcode 2007h-2
which 2.19-1
Use -h to see help about each section
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/