[postgis-users] Troubles in the installation

Holger Zebner holgerzebner at gmx.de
Fri Nov 21 06:50:00 PST 2003


Hello,

> > It seems that postgis thinks it's being compiled against postgresql 7.3,
> > while it is postgresql 7.4. Does it sound ?
> >
> > What version of postgis is that anyway ?
>
> PostGIS Version: 0.7.5
> PostgreSQL Version: 7.4
>
>  Would you try latest CVS ?
Did it. Copied it to /postgresql-7.4/contrib/postgis/
Now the msges start with GEOS/Germetry problems:



>cc1plus: Warnung: "-Wmissing-declarations" is valid for C/ObjC but not for C+
+
postgis_geos_wrapper.cpp:38:18: geom.h: Datei oder Verzeichnis nicht gefunden
postgis_geos_wrapper.cpp:39:18: util.h: Datei oder Verzeichnis nicht gefunden
postgis_geos_wrapper.cpp:41: error: namespace `geos' undeclared
postgis_geos_wrapper.cpp:93: error: `Geometry' was not declared in this scope
postgis_geos_wrapper.cpp:93: error: `g1' was not declared in this scope
postgis_geos_wrapper.cpp:93: error: `Geometry' was not declared in this scope
postgis_geos_wrapper.cpp:93: error: `g2' was not declared in this scope
postgis_geos_wrapper.cpp:93: Warnung: `GEOSrelate' initialized and declared
   `extern'
postgis_geos_wrapper.cpp:93: error: initializer list being treated as compound
   expression
postgis_geos_wrapper.cpp:98: error: `Geometry' was not declared in this scope
postgis_geos_wrapper.cpp:98: error: `a' was not declared in this scope
postgis_geos_wrapper.cpp:98: Warnung: `GEOSdeleteGeometry' initialized and
   declared `extern'
postgis_geos_wrapper.cpp:98: error: variable or field `GEOSdeleteGeometry'
   declared void
postgis_geos_wrapper.cpp:99: error: `Geometry' was not declared in this scope

And this gets printed a couple of times:
postgis_geos_wrapper.cpp:109: error: Syntaxfehler before `*' token
Syntakxfehler = error in syntax

Holger



> > --strk;
> >
> > holgerzebner wrote:
> > > May I kindly ask for your help again?
> > >
> > > > You need postgresql source available in order to build postgis.
> > > > Once you have it either unpack postgis sources under PGSRC/contrib
> > >
> > > Did it and checkinstall went a little further but then stoped with some
> > > errore msg I can't inerpret.
> > >
> > > See my typescript below.
> > >
> > > Thank you
> > > Holger
> > >
> > >
> > >  Script wurde gestartet: Fr 21 Nov 2003 14:49:36 CET
> > > checkinstall make
> > >
> > > checkinstall 1.5.3, Copyright 2001 Felipe Eduardo Sanchez Diaz Duran
> > >            This software is released under the GNU GPL.
> > >
> > >
> > >
> > > Installing with "make"...
> > >
> > > ========================= Installation results
> > > ===========================
> > >
> > > Copying documentation directory...
> > > gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
> > > -Wmissing-declarations -fpic -g -I. -I../../src/include -D_GNU_SOURCE
> > > -DFRONTEND -DSYSCONFDIR='"/ usr/local/pgsql/etc"' -DUSE_VERSION=73  -c
> > > -o postgis_estimate.o postgis_estimate.c
> > > postgis_estimate.c: In function `get_restriction_var':
> > > postgis_estimate.c:543: Warnung: assignment from incompatible pointer
> > > type postgis_estimate.c:545: Warnung: assignment from incompatible
> > > pointer type postgis_estimate.c: In function `genericcostestimate2':
> > > postgis_estimate.c:752: error: structure has no member named `elem'
> > > postgis_estimate.c:752: error: too few arguments to function
> > > `clauselist_selectivity'
> > > postgis_estimate.c:810: Warnung: passing arg 1 of `cost_qual_eval' from
> > > incompatible pointer type
> > > postgis_estimate.c:810: error: too few arguments to function
> > > `cost_qual_eval' postgis_estimate.c:810: error: void value not ignored
> > > as it ought to be make: *** [postgis_estimate.o] Fehler 1
> > >
> > > ****  Installation failed. Aborting package creation.
> > >
> > > Restoring overwritten files from backup...OK
> > >
> > > Cleaning up...OK
> > >
> > > Bye.
> > >
> > >
> > > [root:/usr/local/src/postgresql-7.4/contrib/postgis#780]#
> > > make gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
> > > -Wmissing-declarations -fpic -g -I. -I../../src/include -D_GNU_SOURCE
> > > -DFRONTEND -DSYSCONFDIR='"/ usr/local/pgsql/etc"' -DUSE_VERSION=73  -c
> > > -o postgis_estimate.o postgis_estimate.c
> > > postgis_estimate.c: In function `get_restriction_var':
> > > postgis_estimate.c:543: Warnung: assignment from incompatible pointer
> > > type postgis_estimate.c:545: Warnung: assignment from incompatible
> > > pointer type postgis_estimate.c: In function `genericcostestimate2':
> > > postgis_estimate.c:752: error: structure has no member named `elem'
> > > postgis_estimate.c:752: error: too few arguments to function
> > > `clauselist_selectivity'
> > > postgis_estimate.c:810: Warnung: passing arg 1 of `cost_qual_eval' from
> > > incompatible pointer type
> > > postgis_estimate.c:810: error: too few arguments to function
> > > `cost_qual_eval' postgis_estimate.c:810: error: void value not ignored
> > > as it ought to be make: *** [postgis_estimate.o] Fehler 1
> > > [root:/usr/local/src/postgresql-7.4/contrib/postgis#781]#
> > > Script beendet: Fr 21 Nov 2003 14:50:25 CET




More information about the postgis-users mailing list