[GRASS5] Re: Fwd: Re: Mappe GRASS

Paolo Cavallini cavallini at faunalia.it
Fri May 7 12:38:55 EDT 2004


-----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

 Here's the command used to compile:
make mix
export -DGV_FORMAT_51
./configure --with-grass50=/home/paolo/grass/ \
- --with-postgres-includes=/usr/include/pgsql/ \
- --with-opengl-libs=/usr/X11R6/lib/
make

 Thanks.

- - --
Paolo Cavallini
cavallini at faunalia.it            www.faunalia.it
Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy   Tel: (+39)348-3801953
GPG key @: www.faunalia.it/Public_key_Paolo.asc
Only free software: www.gnu.org / www.linux.org
- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAm6uc/NedwLUzIr4RAgDGAJ9zkIyezNBtIXwzv7I5qRvzU4SiOQCgo2LA
fJQsebWGJyjzc8PC+iXwgXU=
=krm4
- -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAm7uf/NedwLUzIr4RAjtPAJ97yuhRgWp3xglTS7sKqDhaqxREEgCeNcM3
ktGtXzei6QxCdrkI7LyP5kg=
=RSZZ
-----END PGP SIGNATURE-----




More information about the grass-dev mailing list