X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [1.7] Unable to find jpeg_CreateDecompress but linked against cygjpeg-62.dll OK Date: Fri, 27 Mar 2009 12:53:47 -0500 Message-ID: <297343D29C14AA4D822142893ABEAEF306318EA3@srv1163ex1.flightsafety.com> In-Reply-To: <49CD02C1.6000603@gmail.com> References: <297343D29C14AA4D822142893ABEAEF306318DFF AT srv1163ex1 DOT flightsafety DOT com> <49CCFD57 DOT 8030906 AT cwilson DOT fastmail DOT fm> <49CD02C1 DOT 6000603 AT gmail DOT com> From: "Thrall, Bryan" To: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 -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/