Opened 13 years ago
Closed 13 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: | |
---|---|---|---|
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)
Change History (3)
by , 13 years ago
Attachment: | geos-3.3.0-isnan_workaround-2.patch added |
---|
comment:1 by , 13 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 , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Patch to use global ::isnan on solaris