[Gdal-dev] An unsigned integer is being compared to zero.

Martin Spott Martin.Spott at mgras.net
Tue Jan 2 08:27:56 EST 2007


I get very similar errors while compiling GDAL on IRIX/MIPSPro (I'm
trying to build QGIS at my workplace):

GDAL-1.3.2:

(cd port; make)
make[1]: Entering directory `/usr/local/src/gdal-1.3.2/port'
/bin/sh /usr/local/src/gdal-1.3.2/libtool --mode=compile CC -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.3.2/port -c
  -o cpl_conv.o cpl_conv.cpp
 CC -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.3.2/port
   -c cpl_conv.cpp -o cpl_conv.o
cc-1183 CC: WARNING File = cpl_conv.cpp, Line = 280
  An unsigned integer is being compared to zero.

      if( nSize < 0 )
                ^

cc-1183 CC: WARNING File = cpl_conv.cpp, Line = 334
  An unsigned integer is being compared to zero.

      if( nNewSize < 0 )
                   ^

cc-1020 CC: ERROR File = cpl_conv.cpp, Line = 912
  The identifier "atoll" is undefined.

      iValue = atoll( pszValue );
               ^

1 error detected in the compilation of "cpl_conv.cpp".
make[1]: *** [cpl_conv.o] Error 1
make[1]: Leaving directory `/usr/local/src/gdal-1.3.2/port'
make: *** [port-target] Error 2


GDAL-1.4.0beta2:

(cd port; make)
make[1]: Entering directory `/usr/local/src/gdal-1.4.0beta2/port'
/bin/sh /usr/local/src/gdal-1.4.0beta2/libtool --mode=compile CC -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.0beta2/port -c -o cpl_conv.o cpl_conv.cpp
 CC -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.0beta2/port -c cpl_conv.cpp -o cpl_conv.o
cc-1183 CC: WARNING File = cpl_conv.cpp, Line = 302
  An unsigned integer is being compared to zero.

      if( nSize < 0 )
                ^

cc-1183 CC: WARNING File = cpl_conv.cpp, Line = 356
  An unsigned integer is being compared to zero.

      if( nNewSize < 0 )
                   ^

cc-1020 CC: ERROR File = cpl_conv.cpp, Line = 965
  The identifier "atoll" is undefined.

      iValue = atoll( pszValue );
               ^

cc-1183 CC: WARNING File = cpl_conv.cpp, Line = 2187
  An unsigned integer is being compared to zero.

          if( nBytesRead < 0 )
                         ^

1 error detected in the compilation of "cpl_conv.cpp".
make[1]: *** [cpl_conv.o] Error 1
make[1]: Leaving directory `/usr/local/src/gdal-1.4.0beta2/port'
make: *** [port-target] Error 2


Any chance to get this sorted out ?

Cheers,
	Martin.
-- 
 Unix _IS_ user friendly - it's just selective about who its friends are !
--------------------------------------------------------------------------



More information about the Gdal-dev mailing list