X-Account-Key: account1
X-UIDL: fff49126390b991e22a92947f35842c1
X-Mozilla-Status: 0011
X-Mozilla-Status2: 00000000
X-Mozilla-Keys:                                                                                 
Received: from lists.maptools.org (lothlorien.howardsilvan.com [127.0.0.1])
	by mail.howardsilvan.com (Postfix) with ESMTPS id 92C66672150
	for <faxguy@howardsilvan.com>; Tue, 15 Sep 2015 08:38:46 -0700 (PDT)
Received: from lists.maptools.org ([94.23.4.142] helo=lists.maptools.org)
	by lothlorien.howardsilvan.com
	with SMTP (2.3.3); 15 Sep 2015	08:38:46 -0800
Received: from [10.1.0.241] (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id A204535C311;
	Tue, 15 Sep 2015 10:36:52 -0500 (EST)
Received: from mail.sidefx.com (mail.sidefx.com [206.223.178.163])
	by lists.maptools.org (Postfix) with ESMTPS id 6EB9E35C30C
	for <tiff@lists.maptools.org>; Tue, 15 Sep 2015 10:36:16 -0500 (EST)
To: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
References:
	<EE198826B5CB824FAD655FAF95665168743EB4D255@SLUBMAIL.slub-dresden.de>
	<55F8228F.2090707@sidefx.com>
	<alpine.GSO.2.01.1509150930430.1959@freddy.simplesystems.org>
From: Edward Lam <edward@sidefx.com>
Message-ID: <55F83B03.80400@sidefx.com>
Date: Tue, 15 Sep 2015 11:36:35 -0400
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101
	Thunderbird/38.2.0
MIME-Version: 1.0
In-Reply-To: <alpine.GSO.2.01.1509150930430.1959@freddy.simplesystems.org>
Cc: "tiff@lists.maptools.org" <tiff@lists.maptools.org>
Subject: Re: [Tiff] "bad file descriptor" if operating with lseek on
 filedescriptor given by TIFFFileno (Windows only)
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>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-Assp-ID: lothlorien.howardsilvan.com m1-31526-06053
X-Assp-Session: 7FE097A743B8 (mail 1)
X-Assp-Envelope-From: tiff-bounces@lists.maptools.org
X-Assp-Intended-For: faxguy@howardsilvan.com
X-Assp-Version: 2.3.3(14029) on lothlorien.howardsilvan.com
X-Assp-Server-TLS: yes
X-Assp-Delay: not delayed (whitelisted); 15 Sep 2015 08:38:46 -0800
X-Assp-Whitelisted: Yes (whitelistdb)
Return-Path: tiff-bounces@lists.maptools.org
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

On 15/09/2015 10:33 AM, Bob Friesenhahn wrote:
>> I second Bob's suggestion. For completeness of the mailing list,
>> I'd point out again that this is a known problem:
>
> The problem might not be that one.

Sure, but the symptoms sure sound like it. One of the problems with
tif_win32.c is that TIFFFileno() returns a Windows "HANDLE" type as
opposed to an int fd that can be used for lseek(). So if he managed to
cross compile in such a ma

> I am not aware that any of us has tested cross-compilation to WIN32
> or WIN64 from a Linux system and verified that everything works.  I
> have only verified compilation and tests under MSYS shell with MinGW
> (as well as Cygwin) on a Windows 7 system.

If he managed to cross-compile using tif_win32.c, then using the result 
of TIFFFileno() with lseek() *must* be a problem because it can never work.

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


