[GRASS5] Re: Fwd: Re: Mappe GRASS

Frank Warmerdam warmerdam at pobox.com
Mon May 10 10:54:46 EDT 2004


Paolo Cavallini (by way of Paolo Cavallini <cavallini at faunalia.it>) 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

Paolo,

This problem is related to a conflict between libgeotiff and GDAL definitions.
Curse me for using a version of my low level CPL definitions in libgeotiff!

Anyways, I would suggest you upgrade to GDAL 1.2.0 and libgeotif 1.2.2 and see
if the problems persist.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the grass-dev mailing list