[geos-devel] OS X 10.7 Lion llvm problem

Howard Butler hobu.inc at gmail.com
Mon Sep 19 16:20:38 EDT 2011


On Jul 31, 2011, at 1:18 PM, Sandro Santilli wrote:

> On Sun, Jul 31, 2011 at 12:23:39PM -0500, William Kyngesburye wrote:
>> Lion's Xcode now defaults to the llvm compiler (symlink gcc and g++ to the llvm).  I get an error:
>> 
>> Linking CXX shared library ../lib/GEOS.framework/Versions/3/GEOS
>> Undefined symbols for architecture x86_64:
>>  "__ZNSt8auto_ptrIN4geos4geom8EnvelopeEEcvSt12auto_ptr_refIT_EIS2_EEv", referenced from:
>>      virtual thunk to geos::geom::GeometryCollection::computeEnvelopeInternal() constin GeometryCollection.cpp.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 GeometryCollection.cpp.o
>> ld: symbol(s) not found for architecture x86_64
>> 
>> 
>> Is this worth a bug report?  
> 
> Probably, on OS X tracker.

I spent some time with this one today, and I got the clang side of it working, so this is a good solution for Lion users. If Sandro has no problem with the patch, I will apply it ASAP.

http://trac.osgeo.org/geos/ticket/463

I still don't understand what the heck is going on with the llvm-gcc linker though.

Howard


More information about the geos-devel mailing list