[1.7] Unable to find jpeg_CreateDecompress but linked against cygjpeg-62.dll OK

Thrall, Bryan bryan.thrall@flightsafety.com
Fri Mar 27 16:21:00 GMT 2009


I recently installed 1.7 (C:\cygwin_1.7) alongside 1.5 (C:\cygwin) on my
workstation, then reconfigured and rebuilt my application (vital), which
worked just fine under 1.5 but doesn't under 1.7.

Under 1.7, vital now exits immediately with return 127. Running it under
strace pops up a Windows dialog reporting "Unable to find
jpeg_CreateDecompress in cygwin1.dll". I assume it's looking in
cygwin1.dll because it can't find it anywhere else, but it is linked
against cygjpeg-62.dll:

$ cygcheck ./vital.exe
E:\home\thrall\clouddev\v9win\vital\vital.exe
  C:\cygwin_1.7\bin\cygwin1.dll
    C:\WINDOWS\system32\ADVAPI32.DLL
      C:\WINDOWS\system32\ntdll.dll
      C:\WINDOWS\system32\KERNEL32.dll
      C:\WINDOWS\system32\RPCRT4.dll
  C:\cygwin_1.7\bin\cygjpeg-62.dll
  C:\cygwin_1.7\bin\cygtiff-5.dll
    C:\cygwin_1.7\bin\cygz.dll
  C:\cygwin_1.7\bin\cygxml2-2.dll
    C:\cygwin_1.7\bin\cygiconv-2.dll
  C:\WINDOWS\system32\ddraw.dll
    C:\WINDOWS\system32\msvcrt.dll
    C:\WINDOWS\system32\USER32.dll
      C:\WINDOWS\system32\GDI32.dll
    C:\WINDOWS\system32\DCIMAN32.dll
  C:\WINDOWS\system32\GLU32.DLL
    C:\WINDOWS\system32\OPENGL32.dll
  C:\WINDOWS\system32\WINMM.DLL

and the symbols in vital look OK:

$ nm vital.exe
...
0c922ae8 I _imp__jpeg_CreateDecompress
...
00504174 T jpeg_CreateDecompress

and cygjpeg-62.dll is executable and exports jpeg_CreateDecompress
(according to the Depends tool, which also says vital imports that
symbol by name), so I'm at a loss to explain why that symbol isn't being
found. Perhaps it is a red herring?

The full strace output from my attempt is:
----8<----
$ strace vital.exe
--- Process 4912, exception C0000139 at 7C964ED1
--- Process 4912, exception C0000139 at 7C964ED1
----8<----

Any ideas on how to debug this further?

cygcheck.out for 1.7 attached.

Thanks,
--
Bryan Thrall
FlightSafety International
bryan.thrall@flightsafety.com
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck_03252009.out
Type: application/octet-stream
Size: 13832 bytes
Desc: cygcheck_03252009.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20090327/030ee94a/attachment.obj>
-------------- next part --------------
--
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/


More information about the Cygwin mailing list