[GRASSLIST:4536] Re: compiling GRASS 5.7.0

Ulrich Leopold uleopold at science.uva.nl
Thu Oct 14 09:01:12 EDT 2004


On Thu, 2004-10-14 at 11:50, Glynn Clements wrote:
> Ulrich Leopold wrote:
> 
> > > > Ok, actually the compilation did not finish fine. Here is the output:
> > > > What went really wrong? And how can I solve this? I would like to
> > > > compile and install as a user as I do not have any root access.
> > > 
> > > > 
> > > > -----------------------------------------------------------------------
> > > > 
> > > > /scratch/software/GIS/GRASS/grass57_exp_2004_10_09/include/version.h:1:
> > > > warning: `VERSION_STRING' defined but not used
> > > > /scratch/software/GIS/GRASS/grass57_exp_2004_10_09/include/version.h:2:
> > > > warning: `VERSION_MAJOR' defined but not used
> > > > /scratch/software/GIS/GRASS/grass57_exp_2004_10_09/include/version.h:3:
> > > > warning: `VERSION_MINOR' defined but not used
> > > > /scratch/software/GIS/GRASS/grass57_exp_2004_10_09/include/version.h:4:
> > > > warning: `VERSION_RELEASE' defined but not used
> > > > null_val.c:341: conflicting types for `G_is_null_value'
> > > > /scratch/software/GIS/GRASS/grass57_exp_2004_10_09/include/gisdefs.h:787: previous declaration of `G_is_null_value'
> > > > null_val.c:367: conflicting types for `G_is_c_null_value'
> > > > /scratch/software/GIS/GRASS/grass57_exp_2004_10_09/include/gisdefs.h:788: previous declaration of `G_is_c_null_value'
> > > > null_val.c:397: conflicting types for `G_is_f_null_value'
> > > > /scratch/software/GIS/GRASS/grass57_exp_2004_10_09/include/gisdefs.h:789: previous declaration of `G_is_f_null_value'
> > > > null_val.c:427: conflicting types for `G_is_d_null_value'
> > > > /scratch/software/GIS/GRASS/grass57_exp_2004_10_09/include/gisdefs.h:790: previous declaration of `G_is_d_null_value'
> > > > make[2]: *** [OBJ.i686-pc-linux-gnu/null_val.o] Error 1
> > > 
> > > Do you have a gisdefs.h file from an older version of GRASS in one of
> > > the system include directories?
> > 
> > I have gisdefs.h in other places but I excluded them from my PATH. Can
> > they causing problems? I get the same problems again when compiling.
> 
> Having looked more closely at the Makefile fragments, I don't think
> that is a problem; the local 5.7 include directory should come first.
> 
> Does the path which you specified with the --with-grass50= switch
> refer to a recent 5.3 snapshot? The definitions in lib/gis/null_val.c
> should have the following prototypes:
> 
> 	int G_is_null_value (const void *rast, RASTER_MAP_TYPE data_type)
> 	int G_is_c_null_value (const CELL *cellVal)
> 	int G_is_f_null_value (const FCELL *fcellVal)
> 	int G_is_d_null_value (const DCELL *dcellVal)

seems to be correct. I have version grass53_exp_2004_10_09.
But it is located in 'libes/gis/null_val.c' not 'lib/gis/...'
But I guess that is not the problem.

Ulrich




More information about the grass-user mailing list