This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: cygpath hangs from postinstall scripts when called like $(cygpath -S) but not otherwise


> From: Igor Pechtchanski
> Sent: Sunday, October 05, 2003 9:48 PM

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

$ cygcheck -s | head -5

Cygwin Win95/NT Configuration Diagnostics
Current System Time: Sun Oct 05 22:27:29 2003

Windows 2000 Advanced Server Ver 5.0 Build 2195 Service Pack 4

$ cygcheck shlwapi.dll
Error: could not find shlwapi.dll

$ cd /cygdrive/f/WINNT/system32/

$ cygcheck ./shlwapi.dll
.\shlwapi.dll
  .\msvcrt.dll
    .\KERNEL32.dll
      .\NTDLL.DLL
  .\GDI32.dll
    .\USER32.DLL
  .\ADVAPI32.dll
    .\RPCRT4.DLL

$ cygcheck ./shlwapi.dll-<TAB>
shlwapi.dll-MAIL  shlwapi.dll-OLD

$ cygcheck ./shlwapi.dll-OLD
.\shlwapi.dll-OLD
  .\GDI32.DLL
    .\NTDLL.DLL
    .\KERNEL32.DLL
    .\USER32.DLL
  .\ADVAPI32.DLL
    .\RPCRT4.DLL

$ cygcheck ./shlwapi.dll-MAIL
.\shlwapi.dll-MAIL
  .\msvcrt.dll
    .\KERNEL32.dll
      .\NTDLL.DLL
  .\GDI32.dll
    .\USER32.DLL
  .\ADVAPI32.dll
    .\RPCRT4.DLL

$ md5sum -b ./shlwapi.dll*
a39d8868e0480e6cfc5298ddc645650a *./shlwapi.dll		6.00.2800.1226
77e607bcfb09e6958fe58b0345ec48c6 *./shlwapi.dll-MAIL	6.00.2800.1106
4d80abc997e5e4876455e76a835b0f3d *./shlwapi.dll-OLD	5.00.3502.6601

I cannot use the -OLD one, this makes explorer.exe freak out.
Not very surprising IMO. I guess that it is a pre-SP1 version, or a IE5.0
version maybe - I have IE6 installed.

Trying the two 6.00 versions doesn't make any difference.

A guess could be that cygpath's behaviour depends in IE6 beeing installed or
not.

/Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E
-- UTC+01, DST -> UTC+02  --

To see the version of an Windows object: e.g.
Start -> Run -> "F:\WINNT\system32", Right click "shlwapi.dll"
choose -> Properties -> Version tab -> Product version

<change drive letter to suit your needs>

--END OF MESSAGE--


--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]