[postgis-devel] Build problem on Itanium2

strk at refractions.net strk at refractions.net
Tue Mar 8 07:41:02 PST 2005


It sounds as your compiler can't find geos.h, did you include *all*
errors / warnings ? In case you're sure geos.h is found, does your
g++ line looks correct as of -I<path_to_geos_includes> ?
Finally, do postgis_geos_version.h and actual installed geos version
match ?

--strk;


On Tue, Mar 08, 2005 at 04:27:30PM +0100, Markus Schaber wrote:
> Hi,
> 
> I just could put hands on one an Itanium machine, and wanted to run the
> regression and jdbc tests on it, but as soon as I enable geos, the build
> fails with:
> 
> cc1plus: warning: "-Wmissing-declarations" is valid for C/ObjC but not
> for C++
> lwgeom_geos_wrapper.cpp: In function `geos::Geometry*
>    PostGIS2GEOS_box3d(BOX3D*, int)':
> lwgeom_geos_wrapper.cpp:186: error: `DefaultCoordinateSequence' undeclared
>    (first use this function)
> lwgeom_geos_wrapper.cpp:186: error: (Each undeclared identifier is reported
>    only once for each function it appears in.)
> lwgeom_geos_wrapper.cpp:186: error: `cl' undeclared (first use this
> function)
> lwgeom_geos_wrapper.cpp:186: error: parse error before `(' token
> lwgeom_geos_wrapper.cpp: In function `geos::Geometry*
>    PostGIS2GEOS_linestring(const LWLINE*)':
> lwgeom_geos_wrapper.cpp:334: error: `CoordinateSequence' undeclared
> (first use
>    this function)
> lwgeom_geos_wrapper.cpp:334: error: `coords' undeclared (first use this
>    function)
> lwgeom_geos_wrapper.cpp:334: error: `DefaultCoordinateSequenceFactory'
>    undeclared (first use this function)
> lwgeom_geos_wrapper.cpp:334: error: parse error before `::' token
> lwgeom_geos_wrapper.cpp: In function `geos::Geometry*
>    PostGIS2GEOS_polygon(const LWPOLY*)':
> lwgeom_geos_wrapper.cpp:424: error: parse error before `::' token
> lwgeom_geos_wrapper.cpp:477: error: parse error before `::' token
> lwgeom_geos_wrapper.cpp: In function `int
> GEOSGeometryTypeId(geos::Geometry*)':
> lwgeom_geos_wrapper.cpp:1079: error: `GEOS_LINEARRING' undeclared (first
> use
>    this function)
> lwgeom_geos_wrapper.cpp: In function `POINT3D*
>    GEOSGetCoordinates_Polygon(geos::Polygon*)':
> lwgeom_geos_wrapper.cpp:1410: error: ISO C++ forbids declaration of `
>    CoordinateSequence' with no type
> lwgeom_geos_wrapper.cpp:1410: error: uninitialized const
> `CoordinateSequence'
> lwgeom_geos_wrapper.cpp:1410: error: parse error before `*' token
> lwgeom_geos_wrapper.cpp:1410: warning: unused variable `const int
>    CoordinateSequence'
> lwgeom_geos_wrapper.cpp: In function `char* GEOSversion()':
> lwgeom_geos_wrapper.cpp:1698: error: `geosversion' undeclared (first use
> this
>    function)
> lwgeom_geos_wrapper.cpp: In function `char* GEOSjtsport()':
> lwgeom_geos_wrapper.cpp:1714: error: `jtsport' undeclared (first use this
>    function)
> make[1]: *** [lwgeom_geos_wrapper.o] Error 1
> make[1]: Leaving directory
> `/home/schabi/postgresql-7.4.7/build-tree/postgresql-7.4.7/contrib/postgis/lwgeom'
> make: *** [liblwgeom] Error 2
> 
> The exactly same source (copied via scp) builds fine on my Athlon machine.
> 
> Does someone know how to deal with this?
> 
> Markus
> 
> -- 
> Markus Schaber - http://schabi.de/
> 
> But hey!, Standard compliance is something we should strive for, so
> let's try and change the Standard :-) [Alexandre Oliva, GCC Developer]
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel



More information about the postgis-devel mailing list