Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-f.b-one.net (mx-f.one.com [91.198.169.53])
	by mail9.b-one.net (Postfix) with ESMTP id B7C2D40013D
	for <info@awaresystems.be>; Sun, 17 May 2009 10:58:42 +0200 (CEST)
X-Virus-Scanned: by one.com
X-Spam-Score: 0
X-Spam-Level: 
X-Spam-Status: No, score=0 tagged_above=0 required=6 tests=[none]
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144])
	by mx-f.b-one.net (Postfix) with ESMTP id B3C5528000D7
	for <info@awaresystems.be>; Sun, 17 May 2009 10:58:41 +0200 (CEST)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id C57CA1D4C8CD5;
	Sun, 17 May 2009 03:57:03 -0500 (EST)
Received: from smtp-68.nebula.fi (unknown [83.145.220.68])
	by lists.maptools.org (Postfix) with ESMTP id 851AE1CE7E3B6
	for <tiff@lists.maptools.org>; Sun, 17 May 2009 03:51:29 -0500 (EST)
Received: from [192.168.3.2] (unknown [213.157.86.67])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp-68.nebula.fi (Postfix) with ESMTP id 0D7B143F0654;
	Sun, 17 May 2009 11:51:18 +0300 (EEST)
Message-ID: <4A0FD002.8000206@tkk.fi>
Date: Sun, 17 May 2009 11:51:14 +0300
From: Ari Jolma <ari.jolma@tkk.fi>
User-Agent: Thunderbird 2.0.0.21 (Windows/20090302)
MIME-Version: 1.0
To: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
References: <4A0E5165.7020007@tkk.fi>
	<Pine.SOC.4.64.0905161844210.1108@freddy.simplesystems.org>
In-Reply-To: <Pine.SOC.4.64.0905161844210.1108@freddy.simplesystems.org>
Cc: tiff@lists.maptools.org
Subject: Re: [Tiff] Potential problem in libtiff when compiled in MinGW
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

Bob Friesenhahn kirjoitti:
> On Sat, 16 May 2009, Ari Jolma wrote:
>
>> As I've explained in a GDAL bug report
>> http://trac.osgeo.org/gdal/ticket/2649, it is not enough to use WIN32
>> and _MSC_VER to determine whether to use %I64 instead of %ll as MinGW
>> uses msvcrt.dll but does not define _MSC_VER. This is an issue in
>> several places in libtiff sources (tif_dumpmode.c, tif_luv.c, tif_lzw.c,
>> tif_print.c, tif_read.c, tif_strip.c, and tif_thunder.c).
>
> Have you verified that this is an actual problem?  My experience with 
> MinGW builds is that 'long long' works, including in printf type 
> specifications.  I am not sure how MinGW accomplishes that but MinGW 
> does provide a thin library which could do transformations if required.

I have not, I'll try to put together a test. In the GDAL case there was 
a verifiable problem, whose investigation led me to infer that this is 
generally a problem, but admittably this may be a bit different. I'll be 
back later.

Ari

>
> Bob
> -- 
> Bob Friesenhahn
> bfriesen@simple.dallas.tx.us, 
> http://www.simplesystems.org/users/bfriesen/
> GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/


-- 
Prof. Ari Jolma
Environmental Management Information Technology
Teknillinen Korkeakoulu / Helsinki University of Technology
tel: +358 9 4511 address: POBox 5300, 02015 TKK, Finland
Email: ari.jolma at tkk.fi URL: http://geoinformatics.tkk.fi

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
