[GRASS5] Re: Re: Mappe GRASS

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

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

Paolo Cavallini (by way of Paolo Cavallini <cavallini@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@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent