2005.03.30 22:09 "Re: [Tiff] 64bit compile of libTIFF", by Edward Lam
We've had success here using libtiff on 64-bit systems albeit with file sizes well below 2 Gb. The only thing we've had to do was make sure the SIZEOF_LONG define in tif_config.h is set to the correct value for your compiler.
Are there experiences in compiling libTIFF on a 64bit system? In particular:
( uname -a
Linux sgi 2.4.21-sgi302rp04110909_10116 #1 SMP Tue Nov 9 09:55:12 PST 2004 ia64 ia64 ia64 GNU/Linux)
At least the declaration of 'int tif_fd;' (struct tiff) seams to be suspicious, as this value is used to hold file pointers (possibly with an 64bit value).
Should this be declared as 'long tif_fd;' alongside with the interfaces using this value? Will make no difference on 32bit systems anyway...