[GRASS5] Re: Fwd: Re: Mappe GRASS

Markus Neteler neteler at itc.it
Mon May 10 08:32:47 EDT 2004


On Fri, May 07, 2004 at 06:38:55PM +0200, Paolo Cavallini wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> - -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
>  Hi all, we are trying to compile compiling grass and we've got this error:
> 
> make[2]: Entering directory `/home/paolo/grass51/general/g.proj'
> gcc -I/home/paolo/grass51/include
> - - -I/home/paolo/grass51/dist.i686-pc-linux-gnu/include -DGV_FORMAT_51  -Wall
> - - -Wconversion -Wno-implicit-int    -I/usr/include -DUSE_GDAL_H
> - - -I/home/paolo/grass51/include
> - - -I/home/paolo/grass51/dist.i686-pc-linux-gnu/include \
>         -o OBJ.i686-pc-linux-gnu/main.o -c main.c
> In file included from /usr/include/cpl_csv.h:46,
>                  from main.c:26:
> /usr/include/cpl_serv.h:149: error: conflicting types for `CE_None'
> /usr/include/cpl_error.h:101: error: previous declaration of `CE_None'
> /usr/include/cpl_serv.h:151: error: conflicting types for `CE_Warning'
> /usr/include/cpl_error.h:103: error: previous declaration of `CE_Warning'
> /usr/include/cpl_serv.h:152: error: conflicting types for `CE_Failure'
> /usr/include/cpl_error.h:104: error: previous declaration of `CE_Failure'
> /usr/include/cpl_serv.h:155: error: conflicting types for `CE_Fatal'
> /usr/include/cpl_error.h:107: error: previous declaration of `CE_Fatal'
> /usr/include/cpl_serv.h:162: error: conflicting types for
>  `CPLSetErrorHandler' /usr/include/cpl_error.h:117: error: previous
>  declaration of
> `CPLSetErrorHandler'
> make[2]: *** [OBJ.i686-pc-linux-gnu/main.o] Error 1
> make[2]: Leaving directory `/home/paolo/grass51/general/g.proj'
> make[1]: *** [subdirs] Error 1
> make[1]: Leaving directory `/home/paolo/grass51/general'
> make: *** [default] Error 1
> 
>   The problem seems generated by a double declaration in the following 
> headers:
> /usr/include/cpl_error.h
> /usr/include/cpl_serv.h
> installed from these packages:
> libgeotiff1-devel-1.1.4-7mdk
> libgdal0-devel-1.1.9-2mdk

Maybe you can try GDAL 1.2.0 first (1.1.9 is really old):
 http://packages.qa.debian.org/g/gdal.html

If the problem persists, it should be reported to the
GDAL mailing list (otherwise success :-).

Good luck,

 Markus




More information about the grass-dev mailing list