components/desktop/libtiff/TESTING
author Vladimir Marek <Vladimir.Marek@oracle.com>
Wed, 28 Sep 2016 18:30:26 +0200
changeset 7045 f341fa83572f
permissions -rw-r--r--
24750280 libtiff delivers incorrect header for 32bit compilation

cd /var/tmp

cat > a.c <<EOT
#include <tiffconf.h>
#include <stdio.h>

int main(void) {
        printf("8=%d\n", sizeof(TIFF_INT64_T));
        printf("8=%d\n", sizeof(TIFF_UINT64_T));
        printf("%d=%d\n", sizeof(ssize_t), sizeof(TIFF_SSIZE_T));
}
EOT

GCC=gcc
CC=/ws/on12-tools/SUNWspro/solarisstudio12.4/bin/cc

$GCC -m32 a.c && ./a.out
$GCC -m64 a.c && ./a.out
$CC -m32 a.c && ./a.out
$CC -m64 a.c && ./a.out

Output should be:
8=8
8=8
4=4
...
8=8
8=8
8=8
...
8=8
8=8
4=4
...
8=8
8=8
8=8