[geos-devel] Problems with installation of geos on RedHat 9 (third try, i hope this is text)

Johan V aragorn_jv at yahoo.com
Wed May 17 09:21:30 EDT 2006


I'm running a Postgresql "8.0.6-1PGDG" database on Redhat 9 and I'm
trying to install geos (from cvs 3.0.0) for use with Postgis &
Postgresql. After the configure (see below) I do a make and this is
the output (see after the configure part):

[root]# ./configure --enable-autoconf
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether ln -s works... yes
checking for iconv_open in -liconv... no
checking for iconv_open in -lc... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for pg_config... /usr/bin/pg_config
checking for geos-config... /usr/bin/geos-config
checking for proj... /usr/local/bin/proj
checking for flex... /usr/bin/flex
checking for dllwrap... no
checking for dlltool... no
checking for yacc... /usr/bin/yacc
checking for perl... /usr/bin/perl
checking for xsltproc... /usr/bin/xsltproc
checking for pdfxmltex... /usr/bin/pdfxmltex
checking for jw... /usr/bin/jw
checking which template to use... linux
configure: creating ./config.status
config.status: creating Makefile.config
config.status: creating config.h

SUMMARY
-------------------------------------------------------

HOST_OS: linux-gnu


PGSQL: /usr/bin/pg_config
GEOS: /usr/bin/geos-config
PROJ: dir=/usr/local
ICONV: 1

PORTNAME: linux
PREFIX: /usr
EPREFIX: ${prefix}
DOC: /usr/share/doc/postgresql/contrib
DATA: /usr/share/pgsql/contrib
MAN: /usr/share/man
BIN: /usr/bin
EXT: /usr/lib/pgsql (\$$libdir)
-------------------------------------------------------


[root]# make
make -C lwgeom
make[1]: Binnengaan van map `/home/postgis/postgis-1.1.2/lwgeom'
sh ../geos_version.sh /usr > postgis_geos_version.h
cpp -P -traditional-cpp -DUSE_VERSION=80 lwpostgis.sql.in | sed -e
's:@MODULE_FILENAME@:\$libdir/liblwgeom.so.1.1:g;s:@POSTGIS_VERSION@:1.1
USE_GEOS=1 USE_PROJ=1
USE_STATS=1:g;s:@POSTGIS_SCRIPTS_VERSION@:1.1.2:g;s/@POSTGIS_BUILD_DATE@/2006-05-16
13:54:48/g' | grep -v '^#' > ../lwpostgis.sql
cpp -P -traditional-cpp -DUSE_VERSION=80 lwpostgis.sql.in | sed -e
's:@MODULE_FILENAME@:/home/postgis/postgis-1.1.2/lwgeom/liblwgeom.so.1.1:g;s:@POSTGIS_VERSION@:1.1
USE_GEOS=1 USE_PROJ=1
USE_STATS=1:g;s:@POSTGIS_SCRIPTS_VERSION@:1.1.2:g;s/@POSTGIS_BUILD_DATE@/2006-05-16
13:54:48/g' | grep -v '^#' > ../regress/lwpostgis.sql
/usr/bin/perl ../utils/postgis_proc_upgrade.pl ../lwpostgis.sql >
../lwpostgis_upgrade.sql
gcc -DUSE_VERSION=80 -DPOSTGIS_LIB_VERSION='"1.1.2"'
-DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
-DPOSTGIS_SCRIPTS_VERSION='"1.1.2"' -DPOSTGIS_BUILD_DATE='"2006-05-16
13:54:48"' -I/usr/local/include -DUSE_PROJ
-I/usr/include/pgsql/server -DAUTOCACHE_BBOX=1  -DUSE_STATS -Wall -g
-O2 -fPIC -fexceptions -DUSE_GEOS    -c -o measures.o measures.c
gcc -DUSE_VERSION=80 -DPOSTGIS_LIB_VERSION='"1.1.2"'
-DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
-DPOSTGIS_SCRIPTS_VERSION='"1.1.2"' -DPOSTGIS_BUILD_DATE='"2006-05-16
13:54:48"' -I/usr/local/include -DUSE_PROJ
-I/usr/include/pgsql/server -DAUTOCACHE_BBOX=1  -DUSE_STATS -Wall -g
-O2 -fPIC -fexceptions -DUSE_GEOS    -c -o box2d.o box2d.c
gcc -DUSE_VERSION=80 -DPOSTGIS_LIB_VERSION='"1.1.2"'
-DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
-DPOSTGIS_SCRIPTS_VERSION='"1.1.2"' -DPOSTGIS_BUILD_DATE='"2006-05-16
13:54:48"' -I/usr/local/include -DUSE_PROJ
-I/usr/include/pgsql/server -DAUTOCACHE_BBOX=1  -DUSE_STATS -Wall -g
-O2 -fPIC -fexceptions -DUSE_GEOS    -c -o ptarray.o ptarray.c
gcc -DUSE_VERSION=80 -DPOSTGIS_LIB_VERSION='"1.1.2"'
-DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
-DPOSTGIS_SCRIPTS_VERSION='"1.1.2"' -DPOSTGIS_BUILD_DATE='"2006-05-16
13:54:48"' -I/usr/local/include -DUSE_PROJ
-I/usr/include/pgsql/server -DAUTOCACHE_BBOX=1  -DUSE_STATS -Wall -g
-O2 -fPIC -fexceptions -DUSE_GEOS    -c -o lwgeom_api.o lwgeom_api.c
gcc -DUSE_VERSION=80 -DPOSTGIS_LIB_VERSION='"1.1.2"'
-DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
-DPOSTGIS_SCRIPTS_VERSION='"1.1.2"' -DPOSTGIS_BUILD_DATE='"2006-05-16
13:54:48"' -I/usr/local/include -DUSE_PROJ
-I/usr/include/pgsql/server -DAUTOCACHE_BBOX=1  -DUSE_STATS -Wall -g
-O2 -fPIC -fexceptions -DUSE_GEOS    -c -o lwgeom.o lwgeom.c
gcc -DUSE_VERSION=80 -DPOSTGIS_LIB_VERSION='"1.1.2"'
-DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
-DPOSTGIS_SCRIPTS_VERSION='"1.1.2"' -DPOSTGIS_BUILD_DATE='"2006-05-16
13:54:48"' -I/usr/local/include -DUSE_PROJ
-I/usr/include/pgsql/server -DAUTOCACHE_BBOX=1  -DUSE_STATS -Wall -g
-O2 -fPIC -fexceptions -DUSE_GEOS    -c -o lwpoint.o lwpoint.c
gcc -DUSE_VERSION=80 -DPOSTGIS_LIB_VERSION='"1.1.2"'
-DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
-DPOSTGIS_SCRIPTS_VERSION='"1.1.2"' -DPOSTGIS_BUILD_DATE='"2006-05-16
13:54:48"' -I/usr/local/include -DUSE_PROJ
-I/usr/include/pgsql/server -DAUTOCACHE_BBOX=1  -DUSE_STATS -Wall -g
-O2 -fPIC -fexceptions -DUSE_GEOS    -c -o lwline.o lwline.c
gcc -DUSE_VERSION=80 -DPOSTGIS_LIB_VERSION='"1.1.2"'
-DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
-DPOSTGIS_SCRIPTS_VERSION='"1.1.2"' -DPOSTGIS_BUILD_DATE='"2006-05-16
13:54:48"' -I/usr/local/include -DUSE_PROJ
-I/usr/include/pgsql/server -DAUTOCACHE_BBOX=1  -DUSE_STATS -Wall -g
-O2 -fPIC -fexceptions -DUSE_GEOS    -c -o lwpoly.o lwpoly.c
gcc -DUSE_VERSION=80 -DPOSTGIS_LIB_VERSION='"1.1.2"'
-DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
-DPOSTGIS_SCRIPTS_VERSION='"1.1.2"' -DPOSTGIS_BUILD_DATE='"2006-05-16
13:54:48"' -I/usr/local/include -DUSE_PROJ
-I/usr/include/pgsql/server -DAUTOCACHE_BBOX=1  -DUSE_STATS -Wall -g
-O2 -fPIC -fexceptions -DUSE_GEOS    -c -o lwmpoint.o lwmpoint.c
gcc -DUSE_VERSION=80 -DPOSTGIS_LIB_VERSION='"1.1.2"'
-DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
-DPOSTGIS_SCRIPTS_VERSION='"1.1.2"' -DPOSTGIS_BUILD_DATE='"2006-05-16
13:54:48"' -I/usr/local/include -DUSE_PROJ
-I/usr/include/pgsql/server -DAUTOCACHE_BBOX=1  -DUSE_STATS -Wall -g
-O2 -fPIC -fexceptions -DUSE_GEOS    -c -o lwmline.o lwmline.c
gcc -DUSE_VERSION=80 -DPOSTGIS_LIB_VERSION='"1.1.2"'
-DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
-DPOSTGIS_SCRIPTS_VERSION='"1.1.2"' -DPOSTGIS_BUILD_DATE='"2006-05-16
13:54:48"' -I/usr/local/include -DUSE_PROJ
-I/usr/include/pgsql/server -DAUTOCACHE_BBOX=1  -DUSE_STATS -Wall -g
-O2 -fPIC -fexceptions -DUSE_GEOS    -c -o lwmpoly.o lwmpoly.c
gcc -DUSE_VERSION=80 -DPOSTGIS_LIB_VERSION='"1.1.2"'
-DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
-DPOSTGIS_SCRIPTS_VERSION='"1.1.2"' -DPOSTGIS_BUILD_DATE='"2006-05-16
13:54:48"' -I/usr/local/include -DUSE_PROJ
-I/usr/include/pgsql/server -DAUTOCACHE_BBOX=1  -DUSE_STATS -Wall -g
-O2 -fPIC -fexceptions -DUSE_GEOS    -c -o lwcollection.o
lwcollection.c
g++ -I/usr/include  -Wall -g -O2 -fPIC -fexceptions -DUSE_GEOS   -c -o
lwgeom_geos_wrapper.o lwgeom_geos_wrapper.cpp
lwgeom_geos_wrapper.cpp:11:23: fout: geos/geom.h: Onbekend bestand of map
lwgeom_geos_wrapper.cpp:12:23: fout: geos/util.h: Onbekend bestand of map
lwgeom_geos_wrapper.cpp:22: fout: ‘geos’ is not a namespace-name
lwgeom_geos_wrapper.cpp:22: fout: expected namespace-name before ‘;’ token
lwgeom_geos_wrapper.cpp:98: let op: ‘GEOSrelate’ krijgt
beginwaarde en is als ‘extern’ gedeclareerd
lwgeom_geos_wrapper.cpp:98: fout: ‘Geometry’ was not declared in this scope
lwgeom_geos_wrapper.cpp:98: fout: ‘g1’ was not declared in this scope
lwgeom_geos_wrapper.cpp:98: fout: ‘Geometry’ was not declared in this scope
lwgeom_geos_wrapper.cpp:98: fout: ‘g2’ was not declared in this scope
lwgeom_geos_wrapper.cpp:98: fout: initializer expression list treated
as compound expression
lwgeom_geos_wrapper.cpp:102: let op: ‘GEOSSetSRID’ krijgt
beginwaarde en is als ‘extern’ gedeclareerd
lwgeom_geos_wrapper.cpp:102: fout: variable or field ‘GEOSSetSRID’
declared void
lwgeom_geos_wrapper.cpp:102: fout: ‘Geometry’ was not declared in
this scope
lwgeom_geos_wrapper.cpp:102: fout: ‘g’ was not declared in this scope
lwgeom_geos_wrapper.cpp:102: fout: expected primary-expression before ‘int’
lwgeom_geos_wrapper.cpp:102: fout: initializer expression list treated
as compound expression
lwgeom_geos_wrapper.cpp:104: let op: ‘GEOSdeleteGeometry’ krijgt
beginwaarde en is als ‘extern’ gedeclareerd
lwgeom_geos_wrapper.cpp:104: fout: variable or field
‘GEOSdeleteGeometry’ declared void
lwgeom_geos_wrapper.cpp:104: fout: ‘Geometry’ was not declared in
this scope
lwgeom_geos_wrapper.cpp:104: fout: ‘a’ was not declared in this scope
lwgeom_geos_wrapper.cpp:105: let op: ‘GEOSrelatePattern’ krijgt
beginwaarde en is als ‘extern’ gedeclareerd
lwgeom_geos_wrapper.cpp:105: fout: ‘Geometry’ was not declared in
this scope
lwgeom_geos_wrapper.cpp:105: fout: ‘g1’ was not declared in this scope
lwgeom_geos_wrapper.cpp:105: fout: ‘Geometry’ was not declared in
this scope
lwgeom_geos_wrapper.cpp:105: fout: ‘g2’ was not declared in this scope
lwgeom_geos_wrapper.cpp:105: fout: expected primary-expression before
‘char’
lwgeom_geos_wrapper.cpp:105: fout: initializer expression list treated
as compound expression
lwgeom_geos_wrapper.cpp:106: let op: ‘GEOSrelateDisjoint’ krijgt
beginwaarde en is als ‘extern’ gedeclareerd
lwgeom_geos_wrapper.cpp:106: fout: ‘Geometry’ was not declared in
this scope
lwgeom_geos_wrapper.cpp:106: fout: ‘g1’ was not declared in this scope
....

lwgeom_geos_wrapper.cpp:1336: fout: expected `;' before ‘catch’
lwgeom_geos_wrapper.cpp: At global scope:
lwgeom_geos_wrapper.cpp:1350: fout: redefinition of ‘POINT3D*
GEOSGetCoordinate’
lwgeom_geos_wrapper.cpp:144: fout: ‘POINT3D* GEOSGetCoordinate’
previously defined here
lwgeom_geos_wrapper.cpp:1350: fout: ‘Geometry’ was not declared in
this scope
lwgeom_geos_wrapper.cpp:1350: fout: ‘g1’ was not declared in this scope
lwgeom_geos_wrapper.cpp:1378: fout: redefinition of ‘POINT3D*
GEOSGetCoordinates’
lwgeom_geos_wrapper.cpp:146: fout: ‘POINT3D* GEOSGetCoordinates’
previously defined here
lwgeom_geos_wrapper.cpp:1378: fout: ‘Geometry’ was not declared in
this scope
lwgeom_geos_wrapper.cpp:1378: fout: ‘g1’ was not declared in this scope
lwgeom_geos_wrapper.cpp:1419: fout: redefinition of ‘POINT3D*
GEOSGetCoordinates_Polygon’
lwgeom_geos_wrapper.cpp:145: fout: ‘POINT3D*
GEOSGetCoordinates_Polygon’ previously defined here
lwgeom_geos_wrapper.cpp:1419: fout: ‘Polygon’ was not declared in
this scope
lwgeom_geos_wrapper.cpp:1419: fout: ‘g1’ was not declared in this scope
lwgeom_geos_wrapper.cpp:1482: fout: redefinition of ‘int
GEOSGetNumCoordinate’
lwgeom_geos_wrapper.cpp:147: fout: ‘int GEOSGetNumCoordinate’
previously defined here
lwgeom_geos_wrapper.cpp:1482: fout: ‘Geometry’ was not declared in
this scope
lwgeom_geos_wrapper.cpp:1482: fout: ‘g1’ was not declared in this scope
lwgeom_geos_wrapper.cpp:1500: fout: redefinition of ‘int
GEOSGetNumInteriorRings’
lwgeom_geos_wrapper.cpp:151: fout: ‘int GEOSGetNumInteriorRings’
previously defined here
lwgeom_geos_wrapper.cpp:1500: fout: ‘Geometry’ was not declared in
this scope
lwgeom_geos_wrapper.cpp:1500: fout: ‘g1’ was not declared in this scope
lwgeom_geos_wrapper.cpp:1521: fout: redefinition of ‘int
GEOSGetNumGeometries’
lwgeom_geos_wrapper.cpp:153: fout: ‘int GEOSGetNumGeometries’
previously defined here
lwgeom_geos_wrapper.cpp:1521: fout: ‘Geometry’ was not declared in
this scope
lwgeom_geos_wrapper.cpp:1521: fout: ‘g1’ was not declared in this scope
lwgeom_geos_wrapper.cpp:1542: fout: expected initializer before ‘*’ token
lwgeom_geos_wrapper.cpp:1563: fout: expected initializer before ‘*’ token
lwgeom_geos_wrapper.cpp:1583: fout: expected initializer before ‘*’ token
lwgeom_geos_wrapper.cpp:1602: fout: expected constructor, destructor,
or type conversion before ‘*’ token
lwgeom_geos_wrapper.cpp:1714: fout: expected constructor, destructor,
or type conversion before ‘*’ token
lwgeom_geos_wrapper.cpp:1719: fout: expected constructor, destructor,
or type conversion before ‘*’ token
lwgeom_geos_wrapper.cpp:1727: fout: redefinition of ‘int GEOSGetSRID’
lwgeom_geos_wrapper.cpp:152: fout: ‘int GEOSGetSRID’ previously
defined here
lwgeom_geos_wrapper.cpp:1727: fout: ‘Geometry’ was not declared in
this scope
lwgeom_geos_wrapper.cpp:1727: fout: ‘g1’ was not declared in this scope
lwgeom_geos_wrapper.cpp:1779: fout: redefinition of ‘bool GEOSHasZ’
lwgeom_geos_wrapper.cpp:161: fout: ‘bool GEOSHasZ’ previously defined here
lwgeom_geos_wrapper.cpp:1779: fout: ‘Geometry’ was not declared in
this scope
lwgeom_geos_wrapper.cpp:1779: fout: ‘g’ was not declared in this scope
lwgeom_geos_wrapper.cpp:1794: fout: expected constructor, destructor,
or type conversion before ‘*’ token
lwgeom_geos_wrapper.cpp:1828: fout: expected constructor, destructor,
or type conversion before ‘*’ token
make[1]: *** [lwgeom_geos_wrapper.o] Fout 1
make[1]: Weggaan uit map `/home/postgis/postgis-1.1.2/lwgeom'
make: *** [liblwgeom] Fout 2



If I try to install the 2.2.1 version than i get this error:

[root]# make
Making all in source
make[1]: Binnengaan van map `/home/postgis/geos-2.2.1/source'
Making all in geom
make[2]: Binnengaan van map `/home/postgis/geos-2.2.1/source/geom'
if /bin/sh ../../libtool --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H
-I. -I. -I../../source/headers -I../../source/headers/geos
-I../../source/headers -DGEOS_VERSION=""2.2.1""    -g -O2 -MT
Coordinate.lo -MD -MP -MF ".deps/Coordinate.Tpo" -c -o Coordinate.lo
Coordinate.cpp; \
then mv -f ".deps/Coordinate.Tpo" ".deps/Coordinate.Plo"; else rm -f
".deps/Coordinate.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I../../source/headers
-I../../source/headers/geos -I../../source/headers
-DGEOS_VERSION=2.2.1 -g -O2 -MT Coordinate.lo -MD -MP -MF
.deps/Coordinate.Tpo -c Coordinate.cpp  -fPIC -DPIC -o
.libs/Coordinate.o
../../source/headers/geos/geom.h:361: error: extra qualification
'geos::Coordinate::' on member 'setNull'
../../source/headers/geos/geom.h:367: error: extra qualification
'geos::Coordinate::' on member 'getNull'
../../source/headers/geos/geom.h:371: error: extra qualification
'geos::Coordinate::' on member 'Coordinate'
../../source/headers/geos/geom.h:377: error: extra qualification
'geos::Coordinate::' on member 'Coordinate'
../../source/headers/geos/geom.h:384: error: extra qualification
'geos::Coordinate::' on member 'Coordinate'
../../source/headers/geos/geom.h:394: error: extra qualification
'geos::Coordinate::' on member 'Coordinate'
../../source/headers/geos/geom.h:400: error: extra qualification
'geos::Coordinate::' on member 'setCoordinate'
../../source/headers/geos/geom.h:406: error: extra qualification
'geos::Coordinate::' on member 'equals2D'
../../source/headers/geos/geom.h:416: error: extra qualification
'geos::Coordinate::' on member 'compareTo'
../../source/headers/geos/geom.h:432: error: extra qualification
'geos::Coordinate::' on member 'equals3D'
../../source/headers/geos/geom.h:436: error: extra qualification
'geos::Coordinate::' on member 'makePrecise'
../../source/headers/geos/geom.h:441: error: extra qualification
'geos::Coordinate::' on member 'distance'
../../source/headers/geos/geom.h:447: error: extra qualification
'geos::Coordinate::' on member 'hashCode'
../../source/headers/geos/geom.h:459: error: extra qualification
'geos::Coordinate::' on member 'hashCode'
make[2]: *** [Coordinate.lo] Fout 1
make[2]: Weggaan uit map `/home/postgis/geos-2.2.1/source/geom'
make[1]: *** [all-recursive] Fout 1
make[1]: Weggaan uit map `/home/postgis/geos-2.2.1/source'
make: *** [all-recursive] Fout 1

I read on this mailing list that if i put some of the error in geom.h
in comment that the errors could be solved but that I get problems
with Coordinate.cpp on line 21 because it uses geom.h's
Coordinate::Coordinate(double, double, double) function:

Coordinate.cpp:21: error: no matching function for call to
'geos::Coordinate::Coordinate(double, double, double)'
../../source/headers/geos/geom.h:344: note: candidates are:
geos::Coordinate::Coordinate()
../../source/headers/geos/geom.h:344: note:
geos::Coordinate::Coordinate(const geos::Coordinate&)

Thx on advance,

Johan.



More information about the geos-devel mailing list