2010.07.08 16:25 "[Tiff] strlcpy vs strncpy", by Bob Friesenhahn

2010.08.06 16:51 "Re: [Tiff] tiff4 on 32-bit Windows", by Bob Friesenhahn

at the 4gb mark. I'm now wondering if it's a compiler bug (I'm stuck on gcc3.4). More digging!

Wait, are you using cygwin's gcc? I took a quick look at my cygwin 1.7 /usr/include files and it doesn't even support _FILE_OFFSET_BITS macro. I'd double check to make sure that your sizeof(off_t) is 8 under your compiler. If it isn't, then you need to do whatever magical defines necessary to make it do that.

I recall that sizeof(off_t) is always 4 under 32-bit Windows. Large file access with POSIX-like APIs requires using alternate Windows APIs like _ftelli64(). Checking GraphicsMagick headers, I see that these are only available under MinGW if __MSVCRT_VERSION__ is >= 0x800. Last time I messed with this, I was unsuccessful.

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