AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2014.02.24 04:34 "[Tiff] Failed in TIFFClientOpen", by Irvanda Kurniadi
2014.02.26 03:36 "Re: [Tiff] Failed in TIFFClientOpen", by Bob Friesenhahn
2014.02.26 04:34 "Re: [Tiff] Failed in TIFFClientOpen", by Irvanda Kurniadi
2014.02.26 04:52 "Re: [Tiff] Failed in TIFFClientOpen", by Bob Friesenhahn

2014.02.26 03:36 "Re: [Tiff] Failed in TIFFClientOpen", by Bob Friesenhahn

I'm porting libtiff-4.0.3 to L4/Fiasco. I've done for compiling the libtiff c sources. But when I was using this library to run the libtiff-based program, I got this debug message:

> libtiff/tif_open.c: 99: TIFFClientOpen: Assertion `sizeof(uint64)==8' failed.

What does it mean? What am I supposed to do to fix this problem?

Libtiff 4.X requires a 64-bit type to use for offsets since it supports the BigTIFF format. The Unix-style configure script performs tests on various types and chooses the smallest-named type which meets each size requirement. This is done in preference to C'99 types because those are not always available.

In short, you will need to find a 64-bit unsigned type to use if you want to build libtiff 4. I have not encountered any 32-bit CPUs which do not support a 64-bit type (e.g. 'long long').

Other issues you may encounter are programs which used the wrong libtiff types for interfacing, which can cause problems. Also, any offsets returned by libtiff are returned as 64-bit values rather than 32-bits as before.

What means did you use to "port" the library to L4/Fiasco?

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