[geos-devel] build problem on Solaris

Jan Kolar kolda at 3dgi.dk
Fri Nov 19 08:55:02 EST 2004


after adding the macro to 'platform.h' the exit point has changed, however=
=20
compilation still unsuccessful.

 g++ -DHAVE_CONFIG_H -I. -I. -I../../source/headers
-I../../source/headers/geos -I../../source/headers -DGEOS_VERSION=3D2.1.0 -=
g
-O2 -MT IsValidOp.lo -MD -MP -MF .deps/IsValidOp.Tpo -c
=2E./operation/valid/IsValidOp.cpp  -fPIC -DPIC -o .libs/IsValidOp.o
=2E./operation/valid/IsValidOp.cpp: In static member function `static bool=
=20
   geos::IsValidOp::isValid(const geos::Coordinate&)':
=2E./operation/valid/IsValidOp.cpp:63: error: `isinf' undeclared (first use
this=20
   function)
=2E./operation/valid/IsValidOp.cpp:63: error: (Each undeclared identifier i=
s=20
   reported only once for each function it appears in.)
=2E./operation/valid/IsValidOp.cpp:63: error: parse error before `return'
=2E./operation/valid/IsValidOp.cpp:64: error: parse error before `return'
make[2]: *** [IsValidOp.lo] Error 1
make[2]: Leaving directory
`/group/3dgidata/Postgres/source/postgresql-7.4.6/contrib/geos-2.1.0/source=
/geom'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/group/3dgidata/Postgres/source/postgresql-7.4.6/contrib/geos-2.1.0/source=
'
make: *** [all-recursive] Error 1

P.S. i am attempting to build version geos-2.1.0 now.

On Fri, 19 Nov 2004 strk at refractions.net wrote:

> On Fri, Nov 19, 2004 at 12:05:11PM +0100, Jan Kolar wrote:
> > using LDFLAGS=3D-lstdc++ does not help to me. compilation exits at the =
same
> > point with the same error. any other suggestions? --kolda
>=20
> Try adding this macro in geos/platform.h:
>=20
> #define finite(x) (!isinf((x)) && !isnan((x))
>=20
> --strk;
>=20
>=20
> >=20
> > On Thu, 18 Nov 2004, [ISO-8859-1] Qui=F1ones Victor wrote:
> >=20
> > > On Thu, 18 Nov 2004 20:53:25 +0100 (CET)
> > > Jan Kolar <kolda at 3dgi.dk> wrote:
> > >=20
> > > #i am using following SPARC machine:
> > > #Sun Microsystems Inc.   SunOS 5.9
> > > #GNU Make 3.80
> > > #gcc (GCC) 3.3.2
> > > #when attempt to compile geos-2.0.1 make exits with following:
> > > # g++ -DHAVE_CONFIG_H -I. -I. -I../../source/headers
> > > #-I../../source/headers/geos -I../../source/headers -DGEOS
> > > #_VERSION=3D2.0.1 -g -O2 -MT IsValidOp.lo -MD -MP -MF .deps/IsValidOp=
=2ETpo -c
> > > #../operation/valid/IsValidOp.cpp  -
> > > #fPIC -DPIC -o .libs/IsValidOp.o
> > > #../operation/valid/IsValidOp.cpp: In static member function `static =
bool=20
> > > #   geos::IsValidOp::isValid(const geos::Coordinate&)':
> > > #../operation/valid/IsValidOp.cpp:107: error: `finite' undeclared (fi=
rst
> > > #use=20
> > > #   this function)
> > > #../operation/valid/IsValidOp.cpp:107: error: (Each undeclared identi=
fier
> > > #is=20
> > > #   reported only once for each function it appears in.)
> > > #make[2]: *** [IsValidOp.lo] Error 1
> > > #make[2]: Leaving directory
> > > #`/group/3dgidata/PostgreSQLDB/test/postgresql-7.4.1/contrib/geos-2.0=
=2E1/source/geom
> > > #'
> > > #make[1]: *** [all-recursive] Error 1
> > > #make[1]: Leaving directory
> > > #`/group/3dgidata/PostgreSQLDB/test/postgresql-7.4.1/contrib/geos-2.0=
=2E1/source'
> > > #make: *** [all-recursive] Error 1
> > > #
> > > #any suggestions? (i can build geos1.0 on the same machine)
> > >=20
> > > LDFLAGS=3D-lstdc++
> > >=20
> > > i did and works!
> > > #
> > > #thank you --kolda
> > > #
> > > #_______________________________________________
> > > #geos-devel mailing list
> > > #geos-devel at geos.refractions.net
> > > #http://geos.refractions.net/mailman/listinfo/geos-devel
> > >=20
> > > _______________________________________________
> > > geos-devel mailing list
> > > geos-devel at geos.refractions.net
> > > http://geos.refractions.net/mailman/listinfo/geos-devel
> > >=20
> >=20
> > _______________________________________________
> > geos-devel mailing list
> > geos-devel at geos.refractions.net
> > http://geos.refractions.net/mailman/listinfo/geos-devel
> _______________________________________________
> geos-devel mailing list
> geos-devel at geos.refractions.net
> http://geos.refractions.net/mailman/listinfo/geos-devel
>=20




More information about the geos-devel mailing list