[gdal-dev] troubles building trunk on OSX + Xcode 4.3

Joaquim Luis jluis at ualg.pt
Tue May 15 22:07:57 EDT 2012


On 16-05-2012 02:50, William Kyngesburye wrote:
> forget the directory problem - nothing should be linking the Carbon framework in the first place.  Especially on OSX 10.7, since carbon 64bit does not exist, only 32bit.  But then, that's just a warning, and may have nothing to do with the actual error.

Right thanks.

> Has this worked in the past?  Did you change any configuration options from then?  Or update any dependent libraries?

Yes, it did work several times in the past. But also yes, I updated 
dependencies using homebrew. Started by netcdf, which brought hdf5. 
Next, had to update libjpeg. All of that in top of upgrading XCode from 
4.1 to 4.3.2
Also had an error in one of the ecw headers. Not sure anymore of the 
exact terms but was something that was declared EXTERNAL wchar_t in OSX 
header and static on the NCe.../?) ecw header. I removed the 'static' 
declaration and it went well after

> Also, the link command immediately preceding the first error would help figure out what's going on.

It's a very long one. It starts with

/bin/sh /Users/j/programs/GDALtrunk/gdal/libtool --mode=link    
--tag=LD    g++     -lsqlite3 -lexpat -lNCSEcw -lNCSEcwC -lNCSCnet 
-lNCSUtil -ljasper -L/usr/local/Cellar/netcdf/4.1.3/lib -lnetcdf -lhdf5 
-lmfhdf -ldf -ltiff -L/usr/lib -lpq -lpthread -ldl    -lcurl         
-liconv  -lxml2 -lz -lpthread -licucore -lm  -o libgdal.la 
/Users/j/programs/GDALtrunk/gdal/frmts/o/*.lo 
/Users/j/programs/GDALtrunk/gdal/gcore/*.lo 
/Users/j/programs/GDALtrunk/gdal/port/*.lo 
/Users/j/programs/GDALtrunk/gdal/alg/*.lo 
/Users/j/programs/GDALtrunk/gdal/ogr/ogrsf_frmts/o/*.lo 
./ogr/ogrgeometryfactory.lo ./ogr/ogrpoint.lo ./ogr/ogrcurve.lo 
./ogr/ogrlinestring.lo ./ogr/ogrlinearring.lo ./ogr/ogrpolygon.lo 
./ogr/ogrutils.lo ./ogr/ogrgeometry.lo ./ogr/ogrgeometrycollection.lo 
./ogr/ogrmultipolygon.lo ./ogr/ogrsurface.lo ./ogr/ogrmultipoint.lo 
./ogr/ogrmultilinestring.lo ./ogr/ogr_api.lo ./ogr/ogrfeature.lo 
./ogr/ogrfeaturedefn.lo ./ogr/ogrfeaturequery.lo 
./ogr/ogrfeaturestyle.lo ./ogr/ogrfielddefn.lo 
./ogr/ogrspatialreference.lo ./ogr/ogr_srsnode.lo ./ogr/ogr_srs_proj4.lo 
./ogr/ogr_fromepsg.lo ./ogr/ogrct.lo ./ogr/ogr_opt.lo 
./ogr/ogr_srs_esri.lo ./ogr/ogr_srs_pci.lo ./ogr/ogr_srs_usgs.lo 
./ogr/ogr_srs_dict.lo ./ogr/ogr_srs_panorama.lo ./ogr/ogr_srs_ozi.lo 
./ogr/ogr_srs_erm.lo ./ogr/swq.lo ./ogr/swq_expr_node.lo 
./ogr/swq_parser.lo ./ogr/swq_select.lo ./ogr/swq_op_registrar.lo 
./ogr/swq_op_general.lo ./ogr/ogr_srs_validate.lo ./ogr/ogr_srs_xml.lo 
./ogr/ograssemblepolygon.lo ./ogr/ogr2gmlgeometry.lo 
./ogr/gml2ogrgeometry.lo ./ogr/ogr_expat.lo ./ogr/ogrpgeogeometry.lo 
./ogr/ogrgeomediageometry.lo \
         -rpath /usr/local/lib \
         -no-undefined \
         -version-info 17:0:16
libtool: link: ignoring unknown tag LD
libtool: link: gcc -dynamiclib  -o .libs/libgdal.1.dylib  
/Users/j/programs/GDALtrunk/gdal/frmts/o/.libs/EHapi.o 
/Users/j/programs/GDALtrunk/gdal/frmts/o/.libs/EnvisatFile.o 
/Users/j/programs/GDALtrunk/gdal/frmts/o/.libs/GDapi.o 
/Users/j/programs/GDALtrunk/gdal/frmt

....

and ends with

./ogr/.libs/ogr_expat.o ./ogr/.libs/ogrpgeogeometry.o 
./ogr/.libs/ogrgeomediageometry.o   -lsqlite3 -lexpat 
/usr/local/lib/libNCSEcw.dylib -L/usr/lib -L/usr/local/lib 
-L/System/Library/Frameworks/Carbon.framework/Carbon 
/usr/local/lib/libNCSEcwC.dylib /usr/local/lib/libNCSCnet.dylib 
/usr/local/lib/libNCSUtil.dylib -ljasper 
-L/usr/local/Cellar/netcdf/4.1.3/lib -lnetcdf -lhdf5 
/usr/local/lib/libmfhdf.a /usr/local/lib/libdf.a -ljpeg -ltiff -lpq -ldl 
-lcurl -liconv -lxml2 -lz -lpthread -licucore -lm    -install_name  
/usr/local/lib/libgdal.1.dylib -compatibility_version 18 
-current_version 18.0 -Wl,-single_module
ld: warning: path '/System/Library/Frameworks/Carbon.framework/Carbon' 
following -L not a directory
Undefined symbols for architecture x86_64:
   "operator new(unsigned long)", referenced from:
       IdrisiDataset::IdrisiDataset()in IdrisiDataset.o
       _GDALRegister_IDRISI in IdrisiDataset.o
       IdrisiDataset::Open(GDALOpenInfo*)       in IdrisiDataset.o
...



>
> On May 15, 2012, at 6:49 PM, jluis at ualg.pt wrote:
>
>> Hi,
>>
>> Sorry to come again with a building problem. Now on OSX 10.7.4
>> For forced updating reasons I was obliged to up start a chain of up updates that ended up on upgrading to Xcode 4.3.2 and now I get these errors linking (well, a lot more)
>>
>>
>> /System/Library/Frameworks/Carbon.framework/Carbon
>>
>> is a symlink to
>>
>> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
>>
>> but than what?
>>
>> Any idea how to solve this?
>>
>> Thanks
>>
>> Joaquim
>>
>> ld: warning: path '/System/Library/Frameworks/Carbon.framework/Carbon' following -L not a directory
>> Undefined symbols for architecture x86_64:
>>   "operator new(unsigned long)", referenced from:
>>       IdrisiDataset::IdrisiDataset()in IdrisiDataset.o
>>       _GDALRegister_IDRISI in IdrisiDataset.o
>>       IdrisiDataset::Open(GDALOpenInfo*)       in IdrisiDataset.o
>>       IdrisiRasterBand::GetDefaultRAT()       in IdrisiDataset.o
>>       IdrisiRasterBand::SetDefaultRAT(GDALRasterAttributeTable const*)   in IdrisiDataset.o
>>       IntergraphRasterBand::IntergraphRasterBand(IntergraphDataset*, int, int, GDALDataType)in IntergraphBand.o
>>       _GDALRegister_INGR in IntergraphDataset.o
>>
>>
>> ----------------------------------------------------------------
>> This message was sent using IMP, the Internet Messaging Program.
>>
>> _______________________________________________
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/gdal-dev
> -----
> William Kyngesburye<kyngchaos*at*kyngchaos*dot*com>
> http://www.kyngchaos.com/
>
> [Trillian]  What are you supposed to do WITH a maniacally depressed robot?
>
> [Marvin]  You think you have problems?  What are you supposed to do if you ARE a maniacally depressed robot?  No, don't try and answer, I'm 50,000 times more intelligent than you and even I don't know the answer...
>
> - HitchHiker's Guide to the Galaxy
>
>
>
>



More information about the gdal-dev mailing list