cygcheck doesn't work on DLLs and executables in current working directory

Marco Atzeri marco.atzeri@gmail.com
Mon Oct 5 15:50:16 GMT 2020


On 05.10.2020 17:20, Hamish McIntyre-Bhatty via Cygwin wrote:
> On 02/10/2020 17:33, Marco Atzeri via Cygwin wrote:
>> On 02.10.2020 17:59, Hamish McIntyre-Bhatty via Cygwin wrote:
>>> Hi,
>>>
>>> I've noticed that cygcheck doesn't work when run against executables and
>>> DLLs in the current working directory. Has anyone else experienced this?
>>>
>>> Hamish
>>>
>>>
>>
>> how are you calling it ?
>>
>>
>> $ cygcheck ./hello_c.exe
>> d:\cyg_pub\devel\openmpi\examples64\hello_c.exe
>>    D:\cygwin64\bin\cygwin1.dll
>>      C:\WINDOWS\system32\KERNEL32.dll
>>        C:\WINDOWS\system32\ntdll.dll
>>        C:\WINDOWS\system32\KERNELBASE.dll
>>    D:\cygwin64\bin\cygmpi-40.dll
>>      D:\cygwin64\bin\cygopen-pal-40.dll
>>        D:\cygwin64\bin\cygz.dll
>>        D:\cygwin64\bin\cyggcc_s-seh-1.dll
>>      D:\cygwin64\bin\cygopen-rte-40.dll
>> -- 
>> Problem reports:      https://cygwin.com/problems.html
>> FAQ:                  https://cygwin.com/faq/
>> Documentation:        https://cygwin.com/docs.html
>> Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
> 
> Irritatingly, I can't reproduce that now. It might well have been
> something to do with my setup because VirtualBox is causing all sorts of
> annoying problems at the moment. I'll reply again with output if it
> happens again.
> 
> I did find something else though:
> 
> If I make a temporary directory and move into it, and then copy
> /bin/bash and /bin/cygwin1.dll into it, if I run "cygcheck
> /bin/bash.exe" it then says it depends on the cygwin1 DLL in the current
> directory rather than the one in /bin:
> 

that is expected. It is as Windows works

the shared libs in the same directory have precedence
on the one on the path.







More information about the Cygwin mailing list