Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Sun, 5 Oct 2003 15:48:25 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Cliff Hones cc: cygwin AT cygwin DOT com Subject: Re: cygpath hangs from postinstall scripts when called like $(cygpath -S) but not otherwise In-Reply-To: <015901c38a92$75aa28d0$12760251@ximenes> Message-ID: References: <1065241514 DOT 18546 DOT 19 DOT camel AT localhost> <00dd01c38a7b$fbfc91f0$12760251 AT ximenes> <015901c38a92$75aa28d0$12760251 AT ximenes> Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sat, 4 Oct 2003, Cliff Hones wrote: > Igor Pechtchanski wrote: > > > Oh, and this might explain why I'm not seeing the hang on my machine: > > > > $ cygcheck /bin/cygpath.exe > > C:/cygwin/bin/cygpath.exe > > C:/cygwin/bin\cygwin1.dll > > C:\WINNT\System32\KERNEL32.dll > > C:\WINNT\System32\NTDLL.DLL > > C:\WINNT\System32\SHELL32.DLL > > C:\WINNT\System32\GDI32.DLL > > C:\WINNT\System32\USER32.DLL > > C:\WINNT\System32\ADVAPI32.DLL > > C:\WINNT\System32\RPCRT4.DLL > > C:\WINNT\System32\SHLWAPI.DLL > > C:\WINNT\System32\COMCTL32.DLL > > $ cygpath --version > > cygpath (cygwin) 1.29 > > Path Conversion Utility > > Copyright 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. > > Compiled on Sep 20 2003 > > $ cygcheck -cd cygwin > > Cygwin Package Information > > Package Version > > cygwin 1.5.5-1 > > $ uname -a > > CYGWIN_NT-5.0 pechtcha 1.5.5(0.94/3/2) 2003-09-20 16:31 i686 unknown unknown Cygwin > > $ > > > > I'm running on Win2k, which may be significant. > > Well, that is strange. I am also on Win2k, and cygcheck --version > shows exactly the same output as yours (which isn't surprising - my > machine is pretty well up to date). > > Having said that, I've never experienced the hangup which others are > reporting - though I have seen the postinstall script in question > take ages to complete on an older, slower NT box. > > The dependence is coming from shlwapi.dll. Here is some info: > > $ ls -l /d/winnt/system32/shlwapi.dll > -rwxrwxr-x+ 1 Administ SYSTEM 395264 Jul 13 16:05 /d/winnt/system32/shlwapi.dll > > $ cygcheck /d/winnt/system32/shlwapi.dll > D:/winnt/system32/shlwapi.dll > D:/winnt/system32\msvcrt.dll > D:/winnt/system32\KERNEL32.dll > D:/winnt/system32\NTDLL.DLL > D:/winnt/system32\GDI32.dll > D:/winnt/system32\USER32.DLL > D:/winnt/system32\ADVAPI32.dll > D:/winnt/system32\RPCRT4.DLL > > I suspect you will see something different. I guess if on some Windows > systems shlwapi.dll has a dependence on msvcrt.dll, it is not safe > to call this from any cygwin app. > > -- Cliff Bingo. I think we have different service packs applied or something. I'm getting the following on my machine: $ cygcheck -s | head -5 Cygwin Win95/NT Configuration Diagnostics Current System Time: Sun Oct 05 15:46:24 2003 Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 2 $ ls -l /mnt/c/WINNT/system32/shlwapi.dll -rwxrwxr-x+ 1 Administ SYSTEM 300816 Oct 20 2000 /mnt/c/WINNT/system32/shlwapi.dll* $ cygcheck /mnt/c/WINNT/system32/shlwapi.dll c:/WINNT/system32/shlwapi.dll c:/WINNT/system32\GDI32.dll c:/WINNT/system32\NTDLL.DLL c:/WINNT/system32\KERNEL32.DLL c:/WINNT/system32\USER32.DLL c:/WINNT/system32\ADVAPI32.dll c:/WINNT/system32\RPCRT4.DLL $ Curiously enough, $ cygcheck /cygdrive/c/WINNT/system32/shlwapi.dll C:/cygwin/cygdrive/c/WINNT/system32/shlwapi.dll - Cannot open $ It looks like cygcheck's mount processing code doesn't understand the cygdrive prefix... Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "I have since come to realize that being between your mentor and his route to the bathroom is a major career booster." -- Patrick Naughton -- 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/