AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2015.09.15 10:41 "[Tiff] "bad file descriptor" if operating with lseek on filedescriptor given by TIFFFileno (Windows only)", by Romeyke, Andreas
2015.09.15 13:14 "Re: [Tiff] "bad file descriptor" if operating with lseek on filedescriptor given by TIFFFileno (Windows only)", by Bob Friesenhahn
2015.09.15 13:52 "Re: [Tiff] "bad file descriptor" if operating with lseek on filedescriptor given by TIFFFileno (Windows only)", by Edward Lam
2015.09.15 14:33 "Re: [Tiff] "bad file descriptor" if operating with lseek on filedescriptor given by TIFFFileno (Windows only)", by Bob Friesenhahn
2015.09.15 15:36 "Re: [Tiff] "bad file descriptor" if operating with lseek on filedescriptor given by TIFFFileno (Windows only)", by Edward Lam
2015.09.15 16:10 "Re: [Tiff] "bad file descriptor" if operating with lseek on filedescriptor given by TIFFFileno (Windows only)", by Bob Friesenhahn
2015.09.15 17:57 "Re: [Tiff] "bad file descriptor" if operating with lseek on filedescriptor given by TIFFFileno (Windows only)", by Edward Lam

2015.09.15 10:41 "[Tiff] "bad file descriptor" if operating with lseek on filedescriptor given by TIFFFileno (Windows only)", by Romeyke, Andreas

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=i686-w64-mingw32

(also CFLAGS=-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üßen
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