[Gdal-dev] An unsigned integer is being compared to zero.
Martin Spott
Martin.Spott at mgras.net
Tue Jan 2 13:21:37 EST 2007
Martin Spott wrote:
> Ok, apparently the 'configure' test for 'atoll' works different from
> what's expected in the source code of GDAL, the same is with
> 'copysignf' (which triggers difficulties in 'port/cpl_strtod.cpp'),
While it's easy to work around these simply by changing some defines in
port/cpl_config.h, I now run into trouble while compiling the included
TIFF library (with beta2 as well as RC1). I'm pretty much surprised
because I thought the TIFF library should be expected to be "portable
by design" (.... or by history ;-)
Am I being blocked by incorrect compiler behaviour ?
make[3]: Entering directory `/usr/local/src/gdal-1.4.0/frmts/gtiff/libtiff'
/bin/sh /usr/local/src/gdal-1.4.0/libtool --mode=compile cc -c
-I../../port -Xcpluscomm -O2 -use_readonly_const -rdata_shared -woff
1001,1012,1014,1110,1116,1155,1172,1174,1234,1401 -woff
1460,1551,1552,1681
-OPT:roundoff=0:Olimit=0:div_split=ON:alias=typed:fast_io=ON
-OPT:got_call_conversion=ON:reorg_common=ON:rsqrt=ON:swp=ON
-LANG:exceptions=ON -I/opt/include -I/usr/freeware/include -Wl,-rpath
-Wl,/usr/freeware/lib32 -Wl,-rpath -Wl,. -DOGR_ENABLED
-I/usr/freeware/include -Xcpluscomm -I/usr/local/src/gdal-1.4.0/port
-DZIP_SUPPORT -DPIXARLOG_SUPPORT -I../../zlib -DJPEG_SUPPORT
-I../../jpeg/libjpeg tif_fax3.c -o ../../o/tif_fax3.o
cc -c -I../../port -Xcpluscomm -O2 -use_readonly_const -rdata_shared
-woff 1001,1012,1014,1110,1116,1155,1172,1174,1234,1401 -woff
1460,1551,1552,1681
-OPT:roundoff=0:Olimit=0:div_split=ON:alias=typed:fast_io=ON
-OPT:got_call_conversion=ON:reorg_common=ON:rsqrt=ON:swp=ON
-LANG:exceptions=ON -I/opt/include -I/usr/freeware/include -Wl,-rpath
-Wl,/usr/freeware/lib32 -Wl,-rpath -Wl,. -DOGR_ENABLED
-I/usr/freeware/include -Xcpluscomm -I/usr/local/src/gdal-1.4.0/port
-DZIP_SUPPORT -DPIXARLOG_SUPPORT -I../../zlib -DJPEG_SUPPORT
-I../../jpeg/libjpeg tif_fax3.c -o ../../o/tif_fax3.o
cc-1077 cc: ERROR File = tif_fax3.c, Line = 779
The indicated declaration has no storage class or type specifier.
inline static int32
^
cc-1065 cc: ERROR File = tif_fax3.c, Line = 779
A semicolon is expected at this point.
inline static int32
^
cc-1166 cc: ERROR File = tif_fax3.c, Line = 806
Expected a declaration.
while (!isAligned(bp, long)) {
^
cc-1166 cc: ERROR File = tif_fax3.c, Line = 813
Expected a declaration.
while ((bits >= (int32)(8 * sizeof(long))) && (0 == *lp)) {
^
cc-1166 cc: ERROR File = tif_fax3.c, Line = 818
Expected a declaration.
}
^
cc-1166 cc: ERROR File = tif_fax3.c, Line = 836
Expected a declaration.
}
^
cc-1166 cc: ERROR File = tif_fax3.c, Line = 865
Expected a declaration.
while (!isAligned(bp, long)) {
^
cc-1166 cc: ERROR File = tif_fax3.c, Line = 872
Expected a declaration.
while ((bits >= (int32)(8 * sizeof(long))) && (~0 == *lp)) {
^
cc-1166 cc: ERROR File = tif_fax3.c, Line = 877
Expected a declaration.
}
^
cc-1166 cc: ERROR File = tif_fax3.c, Line = 895
Expected a declaration.
}
^
cc-1166 cc: ERROR File = tif_fax3.c, Line = 942
Expected a declaration.
}
^
cc-1166 cc: ERROR File = tif_fax3.c, Line = 944
Expected a declaration.
}
^
cc-1020 cc: ERROR File = tif_fax3.c, Line = 979
The identifier "horizcode" is undefined.
putcode(tif, &horizcode);
^
13 errors detected in the compilation of "tif_fax3.c".
make[3]: *** [../../o/tif_fax3.o] Error 1
Martin.
--
Unix _IS_ user friendly - it's just selective about who its friends are !
--------------------------------------------------------------------------
More information about the Gdal-dev
mailing list