Building ROOT trunk (r40926) with clang on Lion fails

Hello,

I am trying to build ROOT trunk (revision is 40926) using clang++ on Mac OS X Lion, but it fails with the following error:

clang++ -dynamiclib -single_module -Wl,-dead_strip_dylibs -install_name @rpath/libNet.5.so -O2 -m64 -mmacosx-version-min=10.7 -o lib/libNet.5.31.so net/net/src/NetErrors.o net/net/src/TAS3File.o net/net/src/TApplicationRemote.o net/net/src/TApplicationServer.o net/net/src/TFTP.o net/net/src/TFileStager.o net/net/src/TGSFile.o net/net/src/TGrid.o net/net/src/TGridJDL.o net/net/src/TGridJob.o net/net/src/TGridJobStatus.o net/net/src/TGridJobStatusList.o net/net/src/TGridResult.o net/net/src/THTTPMessage.o net/net/src/TMessage.o net/net/src/TMonitor.o net/net/src/TNetFile.o net/net/src/TNetFileStager.o net/net/src/TPServerSocket.o net/net/src/TPSocket.o net/net/src/TSQLColumnInfo.o net/net/src/TSQLMonitoring.o net/net/src/TSQLResult.o net/net/src/TSQLRow.o net/net/src/TSQLServer.o net/net/src/TSQLStatement.o net/net/src/TSQLTableInfo.o net/net/src/TSecContext.o net/net/src/TServerSocket.o net/net/src/TSocket.o net/net/src/TWebFile.o net/net/src/G__Net.o -ldl -Llib -lRIO -lMathCore -lcrypto -Llib -lCore -lCint -compatibility_version 5 -current_version 5.31.01
Undefined symbols for architecture x86_64:
  "TBufferFile::ReadSequence(TStreamerInfoActions::TActionSequence const&, void*)", referenced from:
      vtable for TMessage in TMessage.o
  "TBufferFile::ReadSequenceVecPtr(TStreamerInfoActions::TActionSequence const&, void*, void*)", referenced from:
      vtable for TMessage in TMessage.o
  "TBufferFile::ReadSequence(TStreamerInfoActions::TActionSequence const&, void*, void*)", referenced from:
      vtable for TMessage in TMessage.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [lib/libNet.so] Error 1

I have configured ROOT (from scratch, i.e.: fresh “svn checkout”) with:

./configure \
  --with-pythia6-uscore=SINGLE \
  --with-f77=gfortran \
  --with-clang \
  --enable-minuit2 \
  --enable-roofit \
  --enable-soversion \
  --disable-bonjour

Enabled features:

asimage astiff builtin_afterimage builtin_ftgl builtin_glew builtin_lzma cintex exceptions explicitlink gviz genvector krb5 ldap memstat minuit2 odbc opengl pgsql pythia6 python reflex roofit rpath shared soversion ssl tmva x11 xft xml xrootd thread

Can somebody help?

Thank you and regards,

–Dario

Hi again,

turned out to be my fault (leftovers from previous compilations that I thought I have deleted).

–Dario