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

Martin Spott Martin.Spott at mgras.net
Wed Jan 3 03:30:58 EST 2007

Hi Mateusz,

Mateusz Loskot wrote:

> All those errors you're reporting sounds like a lack of C99 support.
> Missing long long and functions handling this type, errors about C99's
> "static inline" feature, etc.

This is MIPSpro 7.41 ....:


I added "-c99" to my CFLAGS for "cc", but actually this didn't change
anything. "CC" on the other hand does not know about C99 instructions.
So there appears to be no solution for 'atoll' and 'copysignf' on
IRIX, I can live with the fallbacks.
Building the included GeoTIFF library was easy once I knew what
actually happend ....  I simply removed the include path to the
system-installed TIFF library from the compiler flags and the TIFF
issue was done.

Now I'm running into different trouble - any idea ?

make[2]: Entering directory `/usr/local/src/gdal-1.4.0/frmts/nitf'
 cc -Xcpluscomm -O2 -use_readonly_const -rdata_shared -woff
   1001,1012,1014,1110,1116,1155,1172,1174,1234,1401 -woff
   -LANG:exceptions=ON -I/opt/include -I/usr/freeware/include -Wl,-rpath
   -Wl,/usr/freeware/lib32 -Wl,-rpath -Wl,. -c99
   -I/usr/local/src/gdal-1.4.0/port -I/usr/local/src/gdal-1.4.0/gcore
   -I/usr/local/src/gdal-1.4.0/alg -I/usr/local/src/gdal-1.4.0/ogr
   -I/usr/local/src/gdal-1.4.0/ogr/ogrsf_frmts -DOGR_ENABLED
   -I/usr/freeware/include -Xcpluscomm -I/usr/local/src/gdal-1.4.0/port
   -c nitfimage.c -o ../o/nitfimage.o
cc-1196 cc: WARNING File = nitfimage.c, Line = 1964
  The indicated function is declared implicitly.

          pachTRE = NITFFindTREByIndex( psImage->pachTRE, psImage->nTREBytes, 

cc-1515 cc: ERROR File = nitfimage.c, Line = 1964
  A value of type "int" cannot be assigned to an entity of type "const char *".

          pachTRE = NITFFindTREByIndex( psImage->pachTRE, psImage->nTREBytes, 

1 error detected in the compilation of "nitfimage.c".
make[2]: *** [../o/nitfimage.o] Error 1

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

More information about the Gdal-dev mailing list