Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <39EE629D.A6765C85@ece.gatech.edu> Date: Wed, 18 Oct 2000 22:55:25 -0400 From: "Charles S. Wilson" X-Mailer: Mozilla 4.75 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Jerome Benoit CC: Cygnus Subject: Re: ImageMagick References: <39EE57CC DOT F1D69F6D AT Wanadoo DOT fr> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Jerome Benoit wrote: > > Hi ! > > I try to build ImageMagick: > the `configure' script (generate by `autoconf' since > the distributed one fails) recognizes some packages (jpeg,z) > not someothers (bzip2,png): > it seem that the mecanism > AC_CHECK_LIB(jpeg,jpeg_read_header, [...] ) > works for some lib*.a and not for some other ! > > How can we fix it ? the bzip2 package in cygwin doesn't contain libbz2.a (or libbz2.dll[.a] for that matter) -- so it cannot be found. However, try Michael Ring's package at ftp://sourceware.cygnus.com/pub/cygwin/private/cygwin-rpm-712/tar/ or my (older) version at http://cygutils.netpedia.net/V1.1/bzip2-0.9.5d/ the library interface of libpng is slightly different depending on whether you link dynamically (default) or statically. This is all handled as described in /usr/doc/Cygwin/libpng-1.0.8.README. Unfortunately, autoconf/configure is notorious for *NOT* using system/library header files -- it just "knows" that a given function in library "X" is defined "thus". My suspicion is that autoconf assumes the "static"-style definition. The following is just a hack, but try it -- it'll help narrow down the problem. (I do NOT recommend this as a solution, just a debugging tool...) First, 'mv /usr/lib/libpng.dll.a /usr/lib/libpng.dll.a.bak' (this will force configure's test program to link using libpng.a, not the import lib.) export CFLAGS=-DPNG_STATIC ./configure Does that help? --Chuck -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com