[geos-devel] build problem on Solaris

strk at refractions.net strk at refractions.net
Fri Nov 19 08:57:56 EST 2004


On Fri, Nov 19, 2004 at 02:55:02PM +0100, Jan Kolar wrote:
> after adding the macro to 'platform.h' the exit point has changed, however 
> compilation still unsuccessful.
> 
>  g++ -DHAVE_CONFIG_H -I. -I. -I../../source/headers
> -I../../source/headers/geos -I../../source/headers -DGEOS_VERSION=2.1.0 -g
> -O2 -MT IsValidOp.lo -MD -MP -MF .deps/IsValidOp.Tpo -c
> ../operation/valid/IsValidOp.cpp  -fPIC -DPIC -o .libs/IsValidOp.o
> ../operation/valid/IsValidOp.cpp: In static member function `static bool 
>    geos::IsValidOp::isValid(const geos::Coordinate&)':
> ../operation/valid/IsValidOp.cpp:63: error: `isinf' undeclared (first use
> this 
>    function)

... you dont' have isinf() either ...
check your system manuals for a finite value check.
(-lc maybe?)
--strk;

> ../operation/valid/IsValidOp.cpp:63: error: (Each undeclared identifier is 
>    reported only once for each function it appears in.)
> ../operation/valid/IsValidOp.cpp:63: error: parse error before `return'
> ../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=-lstdc++ does not help to me. compilation exits at the same
> > > point with the same error. any other suggestions? --kolda
> > 
> > Try adding this macro in geos/platform.h:
> > 
> > #define finite(x) (!isinf((x)) && !isnan((x))
> > 
> > --strk;
> > 
> > 
> > > 
> > > On Thu, 18 Nov 2004, [ISO-8859-1] Quiñones Victor wrote:
> > > 
> > > > On Thu, 18 Nov 2004 20:53:25 +0100 (CET)
> > > > Jan Kolar <kolda at 3dgi.dk> wrote:
> > > > 
> > > > #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=2.0.1 -g -O2 -MT IsValidOp.lo -MD -MP -MF .deps/IsValidOp.Tpo -c
> > > > #../operation/valid/IsValidOp.cpp  -
> > > > #fPIC -DPIC -o .libs/IsValidOp.o
> > > > #../operation/valid/IsValidOp.cpp: In static member function `static bool 
> > > > #   geos::IsValidOp::isValid(const geos::Coordinate&)':
> > > > #../operation/valid/IsValidOp.cpp:107: error: `finite' undeclared (first
> > > > #use 
> > > > #   this function)
> > > > #../operation/valid/IsValidOp.cpp:107: error: (Each undeclared identifier
> > > > #is 
> > > > #   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.1/source/geom
> > > > #'
> > > > #make[1]: *** [all-recursive] Error 1
> > > > #make[1]: Leaving directory
> > > > #`/group/3dgidata/PostgreSQLDB/test/postgresql-7.4.1/contrib/geos-2.0.1/source'
> > > > #make: *** [all-recursive] Error 1
> > > > #
> > > > #any suggestions? (i can build geos1.0 on the same machine)
> > > > 
> > > > LDFLAGS=-lstdc++
> > > > 
> > > > 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
> > > > 
> > > > _______________________________________________
> > > > 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
> > _______________________________________________
> > 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



More information about the geos-devel mailing list