Return-Path: <tiff-admin@remotesensing.org>
Received: from inav011.isp.belgacom.be (inav011.isp.belgacom.be [195.238.3.54])
        by six.skynet.be (8.12.9/8.12.9/Skynet-MAILSTORE-2.14) with ESMTP id i2B2asQ5002542
        for <joris.at.lebbeke@skynet.be>; Thu, 11 Mar 2004 03:36:54 +0100
        (envelope-from <tiff-admin@remotesensing.org>)
Received: from inmx009.isp.belgacom.be (inmx009.isp.belgacom.be [195.238.3.146])
        by inav011.isp.belgacom.be (8.12.9/8.12.9/Skynet-IN-AV-2.02) with ESMTP id i2B2aroI029041
        for <joris.at.lebbeke@skynet.be>; Thu, 11 Mar 2004 03:36:53 +0100
        (envelope-from <tiff-admin@remotesensing.org>)
Received: from yoda.imagelinks.com ([208.24.120.42])
        by inmx009.isp.belgacom.be (8.12.9/8.12.9/Skynet-IN-2.32) with ESMTP id i2B2ao3i003263
        for <joris.at.lebbeke@skynet.be>; Thu, 11 Mar 2004 03:36:51 +0100
        (envelope-from <tiff-admin@remotesensing.org>)
Received: from yoda.imagelinks.com (localhost.localdomain [127.0.0.1])
	by yoda.imagelinks.com (8.11.6/8.11.2) with ESMTP id i2B2ZMl24220;
	Wed, 10 Mar 2004 21:35:22 -0500
Received: from smtp8.jaring.my (smtp8.jaring.my [61.6.32.58])
	by yoda.imagelinks.com (8.11.6/8.11.2) with ESMTP id i2B2Ynl24197
	for <tiff@remotesensing.org>; Wed, 10 Mar 2004 21:34:49 -0500
Received: from [61.6.122.243] (j229.crc33.jaring.my [61.6.122.243])
	by smtp8.jaring.my (8.12.10/8.12.9) with ESMTP id i2B2Y3Wx013988;
	Thu, 11 Mar 2004 10:34:04 +0800 (MYT)
	(envelope-from infisys@po.jaring.my)
Mime-Version: 1.0 (Apple Message framework v609)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <96F2299A-7304-11D8-88F8-0003930B19D8@po.jaring.my>
Content-Transfer-Encoding: 7bit
Cc: tiff@remotesensing.org
From: Peter <infisys@po.jaring.my>
Subject: Re: [Tiff] Compiling under OS X with ZIP_SUPPORT
To: warmerdam@pobox.com
X-Mailer: Apple Mail (2.609)
Sender: tiff-admin@remotesensing.org
Errors-To: tiff-admin@remotesensing.org
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:tiff-request@remotesensing.org?subject=help>
List-Post: <mailto:tiff@remotesensing.org>
List-Subscribe: <http://remotesensing.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=subscribe>
List-Id: TIFF and libtiff discussion <tiff.remotesensing.org>
List-Unsubscribe: <http://remotesensing.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=unsubscribe>
List-Archive: <http://remotesensing.org/pipermail/tiff/>
Date: Thu, 11 Mar 2004 10:34:15 +0800
X-RAVMilter-Version: 8.4.3(snapshot 20030212) (inav011.isp.belgacom.be)
X-UIDL: 1c0dbd6828487ca521d8dd3c81d0884b

 > But the "proper" way of turning on zip support is to enable it in  
config.site
 > by uncommenting the ZIP="yes" line.  This sets things up so the  
configure can
 > try to include the supporting library.
 >
 > Best regards,
 > --  
--------------------------------------- 
+--------------------------------------
 > I set the clouds in motion - turn up   | Frank Warmerdam,  
warmerdam@pobox.com

I was editing tiffconf.h for ZIP_SUPPORT. Editing config.site for Zip  
support is the correct way as you mention. BTW by enabling Zip support,  
it enable PIXARLOG_SUPPORT as well.  After I redo a new "configure" &  
ranlib, it all compiles smoothly for the libtiff. However when I  
compile my project (linking with libtiff.a ), the linker (on the Xcode)  
gives this error message,

ld: /Users/peter/Project-Test/TestTIFF/libtiff.a(tif_pixarlog.o)  
illegal reference to symbol: _inflateEnd defined in indirectly  
referenced dynamic library /usr/lib/libz.1.dylib

Somehow the linker is not happy to link with static library which have  
connections to a dynamic library. At the moment, I am doing the hard  
way by compiling and linking another copy of static zlib library to  
make the linker "happy". Naturally it works, however by doing this also  
making the executable bulkier.

Is there a work around for this problem (by linking with dynamic  
library /usr/lib/libz.1.dylib (zlib)) ?

Best Regards,

Peter.

_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://remotesensing.org/mailman/listinfo/tiff
