This is the mail archive of the cygwin 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: ldd differences


On 03/14/2016 03:50 PM, Roger Wells wrote:
> On 03/14/2016 03:09 PM, Achim Gratz wrote:
>> Roger Wells writes:
>>>> Try cygcheck rather than ldd.
>>>>
>>> Thanks for responding.
>>>
>>> Here's what happens:
>>>
>>> $ cygcheck ./z12.exe
>>> C:\cygwin64\home\roger\src\z12\z12.exe
>>>
>>> or
>>>
>>> $ cygcheck --verbose ./z12.exe
>>> C:\cygwin64\home\roger\src\z12\z12.exe (not x86_64 dll)
>>
>> Then it doesn't seem to be a Cygwin binary.  Is that the product of some
>> cross-compilation, perhaps?
>>
> 
> It was built with MinGW GCC 4.9.3 (32 bit)
> However, recall that the older 32 bit cygwin ldd had no problem with it.
> We have been using MinGW in a Cygwin environment for over two decades
> with out surprises.  I wonder if the fact that the executable is 32-bit
> is the culprit and the 64 bit Cygwin tools are expecting 64 bit items to
> work on?  I expect that ldd etc are attempting to do what the OS does
> when it loads the executable wrt identifying what resources (i.e. dll's)
> are required.  It shouldn't matter what tool built it and both 32 bit
> and 64 bit items are going to be around for a while and both need to be
> handled correctly.  I'll probably install 32 bit Cygwin and test the
> hypothesis.  I'll let you know.
> 
> 
> cheers,
> roger
> 
Here is what happens with cygcheck from a new 32 bit Cygwin install:

$ c:/cygwin/bin/cygcheck ./z12.exe
C:\cygwin64\home\roger\src\z12\z12.exe
  C:\WINDOWS\system32\KERNEL32.dll
    C:\WINDOWS\system32\ntdll.dll
    C:\WINDOWS\system32\KERNELBASE.dll
      C:\WINDOWS\system32\api-ms-win-eventing-provider-l1-1-0.dll
    C:\Program Files\TortoiseSVN\bin\api-ms-win-core-handle-l1-1-0.dll
    C:\WINDOWS\system32\api-ms-win-core-synch-l1-2-0.dll
    C:\WINDOWS\system32\api-ms-win-core-timezone-l1-1-0.dll
    C:\Program Files\TortoiseSVN\bin\api-ms-win-core-string-l1-1-0.dll
    C:\Program Files\TortoiseSVN\bin\api-ms-win-core-util-l1-1-0.dll
    C:\Program Files\TortoiseSVN\bin\api-ms-win-core-profile-l1-1-0.dll
    C:\WINDOWS\system32\api-ms-win-core-xstate-l2-1-0.dll
    C:\Program Files\TortoiseSVN\bin\api-ms-win-core-console-l1-1-0.dll
  C:\WINDOWS\system32\msvcrt.dll
  C:\cygwin64\home\roger\lib\libnmea0183.dll
    C:\MinGW\bin\libgcc_s_dw2-1.dll
    C:\MinGW\bin\libstdc++-6.dll
  C:\cygwin64\home\roger\lib\libsensors.dll
    C:\cygwin64\home\roger\lib\libutility.dll
      C:\WINDOWS\system32\ADVAPI32.DLL
        C:\WINDOWS\system32\SECHOST.dll
          C:\WINDOWS\system32\RPCRT4.dll
            C:\WINDOWS\system32\SspiCli.dll
              C:\WINDOWS\system32\CRYPTBASE.dll
                C:\WINDOWS\system32\bcryptPrimitives.dll
      C:\WINDOWS\system32\USER32.dll
        C:\WINDOWS\system32\GDI32.dll
      C:\WINDOWS\system32\WINMM.DLL
        C:\WINDOWS\system32\WINMMBASE.dll
      C:\WINDOWS\system32\WSOCK32.DLL
        C:\WINDOWS\system32\WS2_32.dll
  C:\cygwin64\home\roger\lib\libfilters.dll

Much more useful.

cheers again,
roger

>>
>> Regards,
>> Achim.
>>
> 
> 


-- 
Roger Wells, P.E.
leidos
221 Third St
Newport, RI 02840
401-847-4210 (voice)
401-849-1585 (fax)
roger.k.wells@leidos.com

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


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