2004.03.18 08:04 "[Tiff] 64-bit libtiff build - help?", by James Noyes

2004.03.18 08:04 "[Tiff] 64-bit libtiff build - help?", by James Noyes

Hi all -

I'm trying to get a working 64-bit build of libtiff/tools 3.6.1 for use with 64-bit applications on my Sparc/Solaris systems. I've made the appropriate adjustments in config.site, and I'm getting a more-or-less flawless build (just a few harmless warnings). Unfortunately, the resulting library/tools simply don't work.

Attempting to use the 64-bit tiffinfo on a known good image file gives:

TIFFReadDirectory: file.tiff: Can not read TIFF directory count.

Re-compiling the library/tools as 32-bit makes them work correctly (same file):

TIFF Directory at offset 0x8
  Subfile Type: (0 = 0x0)
  Image Width: 640 Image Length: 430
  Resolution: 75, 75 pixels/inch
  Bits/Sample: 8
  Compression Scheme: None
  Photometric Interpretation: RGB color
  Samples/Pixel: 3
  Rows/Strip: 430
  Planar Configuration: single image plane
  Photoshop Data: <present>, 388 bytes

I looked through the list archives. I saw one other request for basically the same thing I'm looking for, that went unanswered. I also saw a discussion about 64-bit file offsets, but I'm not looking to change the format as was discussed there, just to get a library that will work with 64-bit apps.

Solaris Sparc 64 is LP64, and I expect the problem is a simple case of what's euphemistically termed "long abuse", where code assumes that longs are 32 bits. Unfortunately, I'm not a coder by trade and don't even know where to start looking.

I can provide access to my complete build environment as well as my site.config if anyone is willing to give me some help. My goal is to produce Solaris packages of this (and many other) librar(y|ies) and make them available, but I want to make both 32- and 64-bit packages available for all of them.

Looking forward to any guidance. Thanks in advance.

Cheers,
James Noyes
(jnoyes-tiff@retrogeeks.com)