Opened 11 years ago

Closed 11 years ago

#461 closed defect (fixed)

geos-3.3.0 build fails on Solaris 10 Sparc - Sun Studio 12.2

Reported by: sandy2010 Owned by: geos-devel@…
Priority: minor Milestone: 3.3.1
Component: Default Version: 3.3.0
Severity: Significant Keywords: SunOS, Solaris 10,
Cc:

Description

I'm building geos-3.3.0 on Solaris 10 64bit Sparc zone and got the following error:

make[4]: Entering directory `/opt/geos-3.3.0/src/algorithm/locate' source='IndexedPointInAreaLocator.cpp' object='IndexedPointInAreaLocator.lo' libtool=yes \ DEPDIR=.deps depmode=none /bin/bash ../../../depcomp \ /bin/bash ../../../libtool --tag=CXX --mode=compile CC -m64 -KPIC -DHAVE_CONFIG_H -I. -I../../../include -I../../../include/geos -I../../../include -pedantic -library=stlport4 -library=Crun -c -o IndexedPointInAreaLocator.lo IndexedPointInAreaLocator.cpp libtool: compile: CC -m64 -KPIC -DHAVE_CONFIG_H -I. -I../../../include -I../../../include/geos -I../../../include -pedantic -library=stlport4 -library=Crun -c IndexedPointInAreaLocator.cpp -KPIC -DPIC -o .libs/IndexedPointInAreaLocator.o CC: Warning: Option -pedantic passed to ld, if ld is invoked, ignored otherwise "../../../include/geos/platform.h", line 107: Error: #error "Can not compile without isnan function or macro". make[4]: * [IndexedPointInAreaLocator.lo] Error 1 make[4]: Leaving directory `/opt/geos-3.3.0/src/algorithm/locate'

I'm using SunStudip 12.2 and my configure switches looks like this: ./configure --prefix=/opt/geos-3.3.0/inst --disable-inline CXXFLAGS="-library=stlport4 -library=Crun" LDFLAGS="-lm -m64"

Is there a patch available to this?

Attachments (1)

geos-3.3.0-isnan_workaround-2.patch (565 bytes ) - added by rroliver 11 years ago.
Patch to use global ::isnan on solaris

Download all attachments as: .zip

Change History (3)

by rroliver, 11 years ago

Patch to use global ::isnan on solaris

comment:1 by rroliver, 11 years ago

Use the global isnan from math.h, see attached patch.

From my fights with solaris (albeit using the old RW libCstd) this will be the least of your problems...

comment:2 by strk, 11 years ago

Resolution: fixed
Status: newclosed

Committed in r3467 for 3.3 branch and r3468 for trunk, thanks

Note: See TracTickets for help on using tickets.