X-Account-Key: account1
X-UIDL: bf35fbbc52febde4af1c22f59c8eb750
X-Mozilla-Status: 0011
X-Mozilla-Status2: 00000000
X-Mozilla-Keys:                                                                                 
Received: from lists.maptools.org (localhost [127.0.0.1])
	by mail.howardsilvan.com (Postfix) with ESMTPS id 2E4ACC4211A
	for <faxguy@howardsilvan.com>; Tue, 15 Sep 2015 06:53:03 -0700 (PDT)
Received: from lists.maptools.org ([94.23.4.142] helo=lists.maptools.org)
	by fangorn.howardsilvan.com with SMTP (2.3.3); 15 Sep 2015 06:53:03 -0800
Received: from [10.1.0.241] (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 34B0F35C17D;
	Tue, 15 Sep 2015 08:52:06 -0500 (EST)
Received: from mail.sidefx.com (mail.sidefx.com [206.223.178.163])
	by lists.maptools.org (Postfix) with ESMTPS id E1C9735C11B
	for <tiff@lists.maptools.org>; Tue, 15 Sep 2015 08:51:56 -0500 (EST)
To: "tiff@lists.maptools.org" <tiff@lists.maptools.org>
References:
	<EE198826B5CB824FAD655FAF95665168743EB4D255@SLUBMAIL.slub-dresden.de>
From: Edward Lam <edward@sidefx.com>
Message-ID: <55F8228F.2090707@sidefx.com>
Date: Tue, 15 Sep 2015 09:52:15 -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: 
 <EE198826B5CB824FAD655FAF95665168743EB4D255@SLUBMAIL.slub-dresden.de>
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: fangorn.howardsilvan.com m1-25183-13127
X-Assp-Session: 7F06B7EAF508 (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 fangorn.howardsilvan.com
X-Assp-Server-TLS: yes
X-Assp-Delay: not delayed (whitelisted); 15 Sep 2015 06:53:04 -0800
X-Assp-Whitelisted: Yes (whitelistdb)
Return-Path: tiff-bounces@lists.maptools.org
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

Hi Andreas,

I second Bob's suggestion. For completeness of the mailing list, I'd =

point out again that this is a known problem:

http://permalink.gmane.org/gmane.comp.video.tiff/6803

Cheers,
-Edward

On 15/09/2015 6:41 AM, Romeyke, Andreas wrote:
> Hello,
>
> I am using the filedescriptor returned by TIFFFileno() to make additional=
 checks on a given TIFF. Under Linux the code works as expected.
>
> But if I crosscompile the Libtiff and my program with MinGw using:
>
> Libtiff:
>    ./configure --host=3Di686-w64-mingw32
>
> (also CFLAGS=3D-DO_BINARY does not help)
>
> the lseek() or the read() comes with errno "Bad file descriptor".
>
> Could you point me how to fix that?
>
> Thanks in advance
>
> Mit freundlichen Gr=FC=DFen
> With best regards,
>
> Andreas Romeyke
> --
> project member "long-term preservation"
>
> Saxon State- and University Library Dresden (SLUB)
> Department 2 (IT), Division 2.3 (network and data security)
> Zellescher Weg 18 | 01069 Dresden
> phone: +49 351 4677 216
> E-Mail: Andreas.Romeyke@slub-dresden.de
> http://www.slub-dresden.de/ | @slubdresden
>
> _______________________________________________
> Tiff mailing list: Tiff@lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/tiff
> http://www.remotesensing.org/libtiff/
>

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


