strk/geos — Issue #3: Doesn't compile on Mac Os X Lion
Author: karolis
Created: 2011-10-11 14:04:29+00:00
State: open

Steps:
./autogen.sh
./configure --enable-php
make

And then I got this error:
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../include -I../include/geos -I../include -DGEOS_INLINE -pedantic -Wall -ansi -Wno-long-long -ffloat-store -g -O2 -MT inlines.lo -MD -MP -MF .deps/inlines.Tpo -c inlines.cpp -o inlines.o >/dev/null 2>&1
mv -f .deps/inlines.Tpo .deps/inlines.Plo
/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 -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::auto_ptr(std::auto_ptr_ref)", 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
make[2]: *** [libgeos.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1