[gdal-dev] Build process is hanging on windows

Joaquim Luis jluis at ualg.pt
Mon Mar 31 16:15:29 EDT 2008


> Joaquim,
>
> I have commited the fix for this though I can't reproduce the problem.
> It is probably related to the particular shell version you are using.
> What is your build environment (Windows and MSVC versions)?
>
>   

Andrey,

Thanks, it works again.

On a side note. I also compiled it with the Intel compiler. Oddly, the 
gdal dll is twice as big (12.7 Mb) and the compiler issues several 
warnings that maybe are of interest to take into account. Below is a 
summary from the 3000 lines of my window buffer (there were more, not 
included,  of the type - useless comparison with zero).

Joaquim


geotiff.cpp
..\..\gcore\gdal_priv.h(355): warning #1744: field of class type without 
a DLL i
nterface used in a class with a DLL interface
      std::vector<GDALColorEntry> aoEntries;
                                  ^
tif_dirinfo.c
tif_dirinfo.c(465): warning #188: enumerated type mixed with another type
        TIFFField key = {0, 0, 0, TIFF_NOTYPE, 0, 0, 0, 0, 0, 0, NULL, 
NULL};
                                                  ^
tif_dirread.c
tif_dirread.c(720): warning #188: enumerated type mixed with another type
        typesize=TIFFDataWidth(direntry->tdir_type);
                               ^

dted_ptstream.c
dted_ptstream.c(400): warning #188: enumerated type mixed with another type
                  DTEDSetMetadata( psCF->psInfo, iMD,
                                                 ^
dgif_lib.c
dgif_lib.c(67): warning #167: argument of type "const char *" is 
incompatible wi
th parameter of type "void *"
      if ((FileHandle = open(FileName, O_RDONLY
                             ^
nitffile.c
nitffile.c(747): warning #186: pointless comparison of unsigned integer 
with zero
                      + MAX(0,iSize-strlen(pszValue)),
                        ^
msg_reader_core.cpp
msg_reader_core.cpp(233): warning #186: pointless comparison of unsigned 
integer
 with zero
          if (visir_line.channelId < 0 || visir_line.channelId > 
MSG_NUM_CHANNELS) {
                                   ^
rmalloc.c
rmalloc.c(30): warning #188: enumerated type mixed with another type
                LOG_CELLSIZE(m->appCR) > LOG_CELLSIZE(inFileCR)
                ^
delattr.c
delattr.c(74): warning #188: enumerated type mixed with another type
  error:        return 0 ;      /* not found or an error */
                       ^
gcellrep.c
gcellrep.c(11): warning #188: enumerated type mixed with another type
        return(map->raster.cellRepr);

gcellrep.c(22): warning #188: enumerated type mixed with another type
        return(map->appCR);
              ^
getattr.c
getattr.c(80): warning #188: enumerated type mixed with another type
  error:        return(0);      /* not available  or an error */
                      ^
gmaxval.c
gmaxval.c(33): warning #188: enumerated type mixed with another type
        CsfGetVarType(maxVal, buf, map->appCR);
                                   ^
gminval.c
gminval.c(34): warning #188: enumerated type mixed with another type
        CsfGetVarType(minVal, buf, map->appCR);
                                   ^
gputproj.c
gputproj.c(60): warning #188: enumerated type mixed with another type
        return map->main.projection;
               ^

gputproj.c(61): warning #188: enumerated type mixed with another type
  error:        return(MV_UINT2);
                      ^
gvalscal.c
gvalscal.c(43): warning #188: enumerated type mixed with another type
        return(map->raster.valueScale);
              ^
ismv.c(50): warning #188: enumerated type mixed with another type
        return(IsMVcellRepr(map->appCR, cellValue));
                            ^
mclose.c
mclose.c(32): warning #188: enumerated type mixed with another type
      CsfSetVarTypeMV( &(m->raster.minVal), m->raster.cellRepr);
                                            ^

mclose.c(33): warning #188: enumerated type mixed with another type
      CsfSetVarTypeMV( &(m->raster.maxVal), m->raster.cellRepr);

mopen.c
mopen.c(27): warning #188: enumerated type mixed with another type
   return m->fileAccessMode;
          ^
pmaxval.c
pmaxval.c(66): warning #188: enumerated type mixed with another type
        CsfGetVarType(buf, maxVal, map->appCR);

pminval.c
pminval.c(67): warning #188: enumerated type mixed with another type
    CsfGetVarType(buf, minVal, map->appCR);
                               ^
putattr.c
putattr.c(39): warning #188: enumerated type mixed with another type
                        return 0;

putattr.c(91): warning #188: enumerated type mixed with another type
  error:        return(0);      /* failure */
                      ^
putsomec.c
putsomec.c(233): warning #188: enumerated type mixed with another type
        CSF_CR  cr = map->raster.cellRepr;
                     ^
rdup2.c
rdup2.c(44): warning #188: enumerated type mixed with another type
                         from->main.projection,
                         ^
setmv.c
setmv.c(50): warning #188: enumerated type mixed with another type
        SetMVcellRepr(m->appCR, c);
                      ^
ingrtypes.cpp(399): warning #186: pointless comparison of unsigned 
integer with zero
          nOffset < 0 ||
                  ^

ingrtypes.cpp(463): warning #186: pointless comparison of unsigned 
integer withzero
          nOffset < 0 ||
                  ^

ingrtypes.cpp(535): warning #186: pointless comparison of unsigned 
integer with zero
          nOffset < 0 ||
                  ^

gsagdataset.cpp(1168): warning #186: pointless comparison of unsigned 
integer with zero
      if( nShiftStart < 0
                      ^
blx.c
blx.c(371): warning #592: variable "result" is used before its value is set
      return result;
             ^
ecwcreatecopy.cpp(1150): warning #1744: field of class type without a 
DLL interf
ace used in a class with a DLL interface
      GDALECWCompressor oCompressor;
                        ^
mrsidstream.cpp
..\..\port\cpl_vsi_virtual.h(95): warning #1744: field of class type 
without a D
LL interface used in a class with a DLL interface
      std::map<std::string,VSIFilesystemHandler *>   oHandlers;
                                                     ^

D:\programas\GDALsvn\gdal\frmts\netcdf\netcdfdataset.h(173): warning 
#1125: func
tion "GDALDataset::SetProjection(const char *)" is hidden by 
"netCDFDataset::Set
Projection" -- virtual function override intended?
      void  SetProjection( int );
            ^
myutil.c
myutil.c(652): warning #186: pointless comparison of unsigned integer 
with zero
     for (i = len - 1; ((i >= 0) && (isspace (str[i]))); i--) {
                           ^

myutil.c(701): warning #186: pointless comparison of unsigned integer 
with zero
          ((i >= 0) && ((isspace (str[i])) || (str[i] == c))); i--) {
              ^
gdal_grid.cpp
gdal_grid.cpp(362): warning #69: integer conversion resulted in truncation
               || OGR_G_GetGeometryType( hGeom ) == wkbPoint25D )
                                                    ^
ogr2ogr.cpp
ogr2ogr.cpp(165): warning #69: integer conversion resulted in truncation
                  eGType = wkbPoint25D;
                           ^

ogr2ogr.cpp(167): warning #69: integer conversion resulted in truncation
                  eGType = wkbLineString25D;
                           ^

ogr2ogr.cpp(169): warning #69: integer conversion resulted in truncation
                  eGType = wkbPolygon25D;
                           ^

ogr2ogr.cpp(171): warning #69: integer conversion resulted in truncation
                  eGType = wkbGeometryCollection25D;
                           ^

ogr2ogr.cpp(173): warning #69: integer conversion resulted in truncation
                  eGType = wkbMultiPoint25D;
                           ^

ogr2ogr.cpp(175): warning #69: integer conversion resulted in truncation
                  eGType = wkbMultiLineString25D;
                           ^

ogr2ogr.cpp(177): warning #69: integer conversion resulted in truncation
                  eGType = wkbMultiPolygon25D;


More information about the gdal-dev mailing list