Discussion:
Failed in TIFFClientOpen
Irvanda Kurniadi
2014-02-24 04:34:03 UTC
Permalink
Hi,

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?

regards,

Irvanda
Bob Friesenhahn
2014-02-26 03:36:37 UTC
Permalink
Hi,
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
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
***@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
_______________________________________________
Tiff mailing list: ***@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
Irvanda Kurniadi
2014-02-26 04:34:48 UTC
Permalink
On Wed, Feb 26, 2014 at 12:36 PM, Bob Friesenhahn <
***@simple.dallas.tx.us> wrote:

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


I'm trying to perform a parallel programming in image processing on
L4/fiasco by combining it with mpi library and OpenMP. Now I meet this
unsupported issue about 64-bit type.

Libtiff 4.X requires a 64-bit type to use for offsets since it supports the
Post by Bob Friesenhahn
BigTIFF format.
Then, do you think by porting another version of libtiff could overcome
this problem?

regards,
Irvanda
Bob Friesenhahn
2014-02-26 04:52:38 UTC
Permalink
Post by Bob Friesenhahn
What means did you use to "port" the library to L4/Fiasco?
 I'm trying to perform a parallel programming in image processing on L4/fiasco by combining it with mpi library and OpenMP.
Now I meet this unsupported issue about 64-bit type.
Libtiff 4.X requires a 64-bit type to use for offsets since it supports the BigTIFF format.
Then, do you think by porting another version of libtiff could overcome this problem? 
It is highly likely that your system does have a 64-bit type. It is
just a matter of finding and supplying the correct typedef for it. If
you used the configure script, then I recall that it fell back to a
32-bit type but apparently that is not allowed.

If you use tiff-3.9.7 then you would not have this problem.

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