Mail Archives: cygwin/2009/03/27/12:54:10
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.
>>=20
>>> "Unable to find jpeg_CreateDecompress in cygwin1.dll".
>> ^^^^^^^^^^^
>>=20
>>> 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?
>>=20
>> Did you, by chance, compile with gcc-4, and have -lm on your link
>> command? Try either compiling with gcc-3, or remove -lm.
>=20
> Or -lpthread. Yep, this is almost certainly the broken import
tables
> problem again.
>=20
> 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 AT 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=3Dpentium4 -mfpmath=3Dsse -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=3D\"\" -DPACKAGE_TARNAME=3D\"\" -DPACKAGE_VERSION=3D\"\"
-DPACKAGE_STRING=3D\"\" -DPACKAGE_BUGREPORT=3D\"\" -DPACKAGE=3D\"visual\"
-DVERSION=3D\"8.6\ alpha\" -DHAVE_LIBDWARF=3D1 -DHAVE_GEOTIFF=3D1
-DSTDC_HEADERS=3D1 -DHAVE_SYS_TYPES_H=3D1 -DHAVE_SYS_STAT_H=3D1
-DHAVE_STDLIB_H=3D1 -DHAVE_STRING_H=3D1 -DHAVE_MEMORY_H=3D1 -DHAVE_STRINGS_=
H=3D1
-DHAVE_INTTYPES_H=3D1 -DHAVE_STDINT_H=3D1 -DHAVE_UNISTD_H=3D1 -DHAVE_PTHREA=
D=3D1
-DSCRAMNET=3D1 -DWPCAP=3D1 -DHAVE_DIGUY=3D1 -D_POSIX_C_SOURCE=3D199506 -DV9=
=3D1
-DEMULATION=3D1 -DOpenGL=3D1 -DVPP=3D1 -I. -I../../../visual/vital/loader
-I../../../visual/include -I/usr/include/opengl -Wall -g -O2
-march=3Dpentium4 -mfpmath=3Dsse -c ../../../visual/vital/loader/decomp.c
--=20
Bryan Thrall
FlightSafety International
bryan DOT thrall AT flightsafety DOT 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/
- Raw text -