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

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


Dave Korn wrote on Friday, March 27, 2009 11:46 AM:

> Charles Wilson wrote:
>> Thrall, Bryan wrote:
>>> 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.
>> 
>>> "Unable to find jpeg_CreateDecompress in cygwin1.dll".
>>                                            ^^^^^^^^^^^
>> 
>>> 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?
>> 
>> Did you, by chance, compile with gcc-4, and have -lm on your link
>> command? Try either compiling with gcc-3, or remove -lm.
> 
>   Or -lpthread.  Yep, this is almost certainly the broken import
tables
> problem again.
> 
>     cheers,
>       DaveK

Yes, -lm, no -lpthread, but gcc 3.4.4:

$ gcc --version
gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

thrall@pc1163-8413-xp ~/clouddev/v9win/util/host
$ cygcheck -cd gcc-core
Cygwin Package Information
Package              Version
gcc-core             3.4.4-999

$ make vital.exe
gcc -Wall -g -O2 -march=pentium4 -mfpmath=sse  -o vital.exe
-Wl,--large-address-aware <bunch of .o and .a files> -lm -ltiff -ljpeg
-lddraw -lwinmm -lglu32 -lopengl32 -lgdi32 -L/usr/local/lib -ldwarf
-L/usr/local/libelf -lelf  -lz  -L/usr/lib -lxml2 -lz -liconv -lm

Here's the build for the .o that actually references
jpeg_CreateDecompress (in case it matters):

gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"visual\"
-DVERSION=\"8.6\ alpha\" -DHAVE_LIBDWARF=1 -DHAVE_GEOTIFF=1
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_PTHREAD=1
-DSCRAMNET=1 -DWPCAP=1 -DHAVE_DIGUY=1 -D_POSIX_C_SOURCE=199506 -DV9=1
-DEMULATION=1 -DOpenGL=1 -DVPP=1 -I. -I../../../visual/vital/loader
-I../../../visual/include -I/usr/include/opengl   -Wall  -g -O2
-march=pentium4 -mfpmath=sse -c ../../../visual/vital/loader/decomp.c

-- 
Bryan Thrall
FlightSafety International
bryan.thrall@flightsafety.com

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