Opened 10 years ago
Closed 10 years ago
#5337 closed defect (fixed)
uint64 not defined properly in libtiff when built on IOS
Reported by: | khicks | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | GDAL_Raster | Version: | 1.10.1 |
Severity: | normal | Keywords: | |
Cc: |
Description
I just updated from gdal 1.9.2 to 1.10.1 and I've compiled all gdal required libraries and support libraries using xCode5 clang compiler and everything works great except tif_open fails doing the following:
/* The following are configuration checks. They should be redundant, but should not
- compile to any actual code in an optimised release build anyway. If any of them
- fail, (makefile-based or other) configuration is not correct */
assert(sizeof(uint8)==1); assert(sizeof(int8)==1); assert(sizeof(uint16)==2); assert(sizeof(int16)==2); assert(sizeof(uint32)==4); assert(sizeof(int32)==4); assert(sizeof(uint64)==8); assert(sizeof(int64)==8);
on the assert(sizeof(uint64)==8) line.
Obviously uint64 isn't defined as 8 and I'm at a loss to figure out where it is defined and what compile/configuration option I may be missing to get this to work.
I was using the clang compiler that comes with ios7 since they removed the gcc compiler in the latest release. I switched back to gcc and everything works fine.