[geos-devel] [GEOS] #557: Build error on Mac
GEOS
geos-trac at osgeo.org
Fri Jun 22 05:27:41 PDT 2012
#557: Build error on Mac
------------------------+---------------------------------------------------
Reporter: dburken | Owner: geos-devel@…
Type: defect | Status: new
Priority: major | Milestone: 3.3.5
Component: Default | Version: 3.3.4
Severity: Unassigned | Keywords:
------------------------+---------------------------------------------------
Comment(by dburken):
In geos_c.cpp commenting out fixes first error. Not sure of the effect
this will have on other code:
{{{
#if 0
GEOSInterruptCallback*
GEOS_interruptRegisterCallback(GEOSInterruptCallback* cb)
{
return geos::util::Interrupt::registerCallback(cb);
}
#endif
}}}
Then getting:
{{{
bin/sh ../libtool --tag=CXX --mode=link g++ -DGEOS_INLINE -pedantic
-Wall -ansi -Wno-long-long -ffloat-store -g -O2 -release 3.4.0dev -no-
undefined -o libgeos.la -rpath /usr/local/lib inlines.lo
algorithm/libalgorithm.la geom/libgeom.la geomgraph/libgeomgraph.la
index/libindex.la io/libio.la linearref/liblinearref.la
noding/libnoding.la operation/liboperation.la
planargraph/libplanargraph.la precision/libprecision.la
simplify/libsimplify.la util/libutil.la
libtool: link: g++ -dynamiclib -o .libs/libgeos-3.4.0dev.dylib
.libs/inlines.o -Wl,-force_load,algorithm/.libs/libalgorithm.a
-Wl,-force_load,geom/.libs/libgeom.a
-Wl,-force_load,geomgraph/.libs/libgeomgraph.a
-Wl,-force_load,index/.libs/libindex.a -Wl,-force_load,io/.libs/libio.a
-Wl,-force_load,linearref/.libs/liblinearref.a
-Wl,-force_load,noding/.libs/libnoding.a
-Wl,-force_load,operation/.libs/liboperation.a
-Wl,-force_load,planargraph/.libs/libplanargraph.a
-Wl,-force_load,precision/.libs/libprecision.a
-Wl,-force_load,simplify/.libs/libsimplify.a
-Wl,-force_load,util/.libs/libutil.a -O2 -install_name
/usr/local/lib/libgeos-3.4.0dev.dylib -Wl,-single_module
Undefined symbols for architecture x86_64:
"__ZNSt8auto_ptrIN4geos4geom8EnvelopeEEcvSt12auto_ptr_refIT_EIS2_EEv",
referenced from:
virtual thunk to
geos::geom::GeometryCollection::computeEnvelopeInternal() constin
libgeom.a(GeometryCollection.o)
"std::auto_ptr<geos::geom::Envelope>::auto_ptr(std::auto_ptr_ref<geos::geom::Envelope>)",
referenced from:
virtual thunk to
geos::geom::GeometryCollection::computeEnvelopeInternal() constin
libgeom.a(GeometryCollection.o)
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
}}}
--
Ticket URL: <http://trac.osgeo.org/geos/ticket/557#comment:2>
GEOS <http://geos.refractions.net/>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).
More information about the geos-devel
mailing list