Hi, tried compiling version 5.30.01 and gcc 4.61 (latest ubuntu).
I used “./configure linuxx8664gcc” and ran “make”. I keep getting a bunch of “lib/libProof.so: undefined reference to…” errors. This is also happening after a fresh download and “make clean”.
Is root incompatible with gcc 4.6? or am I missing something obvious?
update: it works just fine with 4.4
Here’s the output of gcc -v:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6.1/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.1-7ubuntu2' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
And the error
g++ -m64 -O2 -o bin/pq2 proof/pq2/src/pq2actions.o proof/pq2/src/pq2main.o proof/pq2/src/pq2ping.o proof/pq2/src/pq2wrappers.o proof/pq2/src/redirguard.o -Llib -lRIO -lNet -lHist -lTree -lMatrix -lProof -lThread -lCore -lCint -lMathCore -lm -ldl -pthread -rdynamic
lib/libProof.so: undefined reference to `TTree::MakeSelector(char const*)'
lib/libProof.so: undefined reference to `TChain::AddFriend(char const*, char const*)'
lib/libProof.so: undefined reference to `TQueryResult::SetArchived(char const*)'
lib/libProof.so: undefined reference to `TTree::LoadTreeFriend(long long, TTree*)'
lib/libProof.so: undefined reference to `TTree::OptimizeBaskets(unsigned long long, float, char const*)'
lib/libProof.so: undefined reference to `TTree::GetPlayer()'
lib/libProof.so: undefined reference to `TChain::Merge(TCollection*, char const*)'
lib/libProof.so: undefined reference to `TTree::SetAutoFlush(long long)'
lib/libProof.so: undefined reference to `TTree::GetEntryNumberWithIndex(int, int) const'
lib/libProof.so: undefined reference to `TTree::SetAlias(char const*, char const*)'
lib/libProof.so: undefined reference to `TChain::GetEntryWithIndex(int, int)'
lib/libProof.so: undefined reference to `TTree::DropBaskets()'
lib/libProof.so: undefined reference to `TTree::SetFileNumber(int)'
lib/libProof.so: undefined reference to `TQueryResult::GetInputObject(char const*) const'
lib/libProof.so: undefined reference to `TTree::SetCacheEntryRange(long long, long long)'
lib/libProof.so: undefined reference to `TChain::GetLeaf(char const*)'
lib/libProof.so: undefined reference to `TTree::CreateBasket(TBranch*)'
lib/libProof.so: undefined reference to `TChain::SetBranchAddress(char const*, void*, TBranch**)'
lib/libProof.so: undefined reference to `TTree::CopyEntries(TTree*, long long, char const*)'
lib/libProof.so: undefined reference to `typeinfo for TChain'
lib/libProof.so: undefined reference to `TTree::SetObject(char const*, char const*)'
lib/libProof.so: undefined reference to `typeinfo for TEntryList'
lib/libProof.so: undefined reference to `TTree::FlushBaskets() const'
lib/libProof.so: undefined reference to `TChain::AddFileInfoList(TCollection*, long long)'
lib/libProof.so: undefined reference to `TChain::TChain()'
lib/libProof.so: undefined reference to `TChain::ShowMembers(TMemberInspector&)'
lib/libProof.so: undefined reference to `TTree::CopyAddresses(TTree*, bool)'
lib/libProof.so: undefined reference to `TTree::StopCacheLearningPhase()'
lib/libProof.so: undefined reference to `TTree::BranchImp(char const*, char const*, TClass*, void*, int, int)'
lib/libProof.so: undefined reference to `TChain::GetMinimum(char const*)'
lib/libProof.so: undefined reference to `TQueryResult::Print(char const*) const'
lib/libProof.so: undefined reference to `TChain::Merge(TFile*, int, char const*)'
lib/libProof.so: undefined reference to `TChain::UseCache(int, int)'
lib/libProof.so: undefined reference to `TTree::BranchImpRef(char const*, char const*, TClass*, void*, int, int)'
lib/libProof.so: undefined reference to `TChain::Print(char const*) const'
lib/libProof.so: undefined reference to `TTree::SetBasketSize(char const*, int)'
lib/libProof.so: undefined reference to `TEventList::TEventList()'
lib/libProof.so: undefined reference to `TTree::SetMakeClass(int)'
lib/libProof.so: undefined reference to `TChain::SetWeight(double, char const*)'
lib/libProof.so: undefined reference to `TTree::KeepCircular()'
lib/libProof.so: undefined reference to `TTree::BranchOld(char const*, char const*, void*, int, int)'
lib/libProof.so: undefined reference to `TChain::ResetBranchAddress(TBranch*)'
lib/libProof.so: undefined reference to `TQueryResult::Browse(TBrowser*)'
lib/libProof.so: undefined reference to `TChain::AddFile(char const*, long long, char const*)'
lib/libProof.so: undefined reference to `TQueryResult::CloneInfo()'
lib/libProof.so: undefined reference to `TTree::UnbinnedFit(char const*, char const*, char const*, char const*, long long, long long)'
lib/libProof.so: undefined reference to `typeinfo for TTree'
lib/libProof.so: undefined reference to `TTree::CopyTree(char const*, char const*, long long, long long)'
lib/libProof.so: undefined reference to `TTree::GetFriend(char const*) const'
lib/libProof.so: undefined reference to `TTree::SetDebug(int, long long, long long)'
lib/libProof.so: undefined reference to `TChain::SetAutoDelete(bool)'
lib/libProof.so: undefined reference to `TChain::ls(char const*) const'
lib/libProof.so: undefined reference to `TTree::Branch(char const*, char const*, void*, int, int)'
lib/libProof.so: undefined reference to `TTree::SetEstimate(long long)'
lib/libProof.so: undefined reference to `TTree::RemoveFriend(TTree*)'
lib/libProof.so: undefined reference to `typeinfo for TEventList'
lib/libProof.so: undefined reference to `TTree::SetTreeIndex(TVirtualIndex*)'
lib/libProof.so: undefined reference to `TTree::Branch(TList*, int, int)'
lib/libProof.so: undefined reference to `TTree::SetCacheLearnEntries(int)'
lib/libProof.so: undefined reference to `TTree::Notify()'
lib/libProof.so: undefined reference to `TChain::DirectoryAutoAdd(TDirectory*)'
lib/libProof.so: undefined reference to `TChain::SetProof(bool, bool, bool)'
lib/libProof.so: undefined reference to `TTree::BranchImp(char const*, TClass*, void*, int, int)'
lib/libProof.so: undefined reference to `TChain::GetClusterIterator(long long)'
lib/libProof.so: undefined reference to `TTree::BranchRef()'
lib/libProof.so: undefined reference to `TChain::SetBranchStatus(char const*, bool, unsigned int*)'
lib/libProof.so: undefined reference to `TTree::SetAutoSave(long long)'
lib/libProof.so: undefined reference to `TChain::LoadTree(long long)'
lib/libProof.so: undefined reference to `TTree::SetCircular(long long)'
lib/libProof.so: undefined reference to `TChain::SetBranchAddress(char const*, void*, TBranch**, TClass*, EDataType, bool)'
lib/libProof.so: undefined reference to `TTree::ChangeFile(TFile*)'
lib/libProof.so: undefined reference to `TTree::SetName(char const*)'
lib/libProof.so: undefined reference to `TTree::Delete(char const*)'
lib/libProof.so: undefined reference to `TTree::SetEntries(long long)'
lib/libProof.so: undefined reference to `TChain::GetEntryNumber(long long) const'
lib/libProof.so: undefined reference to `TChain::TChain(char const*, char const*)'
lib/libProof.so: undefined reference to `TChain::Merge(char const*, char const*)'
lib/libProof.so: undefined reference to `TTree::GetFriendAlias(TTree*) const'
lib/libProof.so: undefined reference to `TTree::PrintCacheStats(char const*) const'
lib/libProof.so: undefined reference to `TTree::Refresh()'
lib/libProof.so: undefined reference to `TTree::AddBranchToCache(TBranch*, bool)'
lib/libProof.so: undefined reference to `TTree::BronchExec(char const*, char const*, void*, bool, int, int)'
lib/libProof.so: undefined reference to `TQueryResult::~TQueryResult()'
lib/libProof.so: undefined reference to `TChain::~TChain()'
lib/libProof.so: undefined reference to `TChain::RecursiveRemove(TObject*)'
lib/libProof.so: undefined reference to `TChain::SetPacketSize(int)'
lib/libProof.so: undefined reference to `TTree::Branch(TCollection*, int, int, char const*)'
lib/libProof.so: undefined reference to `vtable for TQueryResult'
lib/libProof.so: undefined reference to `TTree::UseCurrentStyle()'
lib/libProof.so: undefined reference to `TChain::Add(TChain*)'
lib/libProof.so: undefined reference to `TQueryResult::ShowMembers(TMemberInspector&)'
lib/libProof.so: undefined reference to `TQueryResult::TQueryResult(int, char const*, TList*, long long, long long, char const*)'
lib/libProof.so: undefined reference to `TTree::MakeProxy(char const*, char const*, char const*, char const*, int)'
lib/libProof.so: undefined reference to `TChain::GetChainEntryNumber(long long) const'
lib/libProof.so: undefined reference to `TEntryList::TEntryList(char const*, char const*)'
lib/libProof.so: undefined reference to `TTree::Bronch(char const*, char const*, void*, int, int)'
lib/libProof.so: undefined reference to `TTree::Project(char const*, char const*, char const*, char const*, long long, long long)'
lib/libProof.so: undefined reference to `TTree::Write(char const*, int, int)'
lib/libProof.so: undefined reference to `TTree::AutoSave(char const*)'
lib/libProof.so: undefined reference to `TQueryResult::AddInput(TObject*)'
lib/libProof.so: undefined reference to `TTree::CloneTree(long long, char const*)'
lib/libProof.so: undefined reference to `TChain::SetEntryListFile(char const*, char const*)'
lib/libProof.so: undefined reference to `TTree::AddBranchToCache(char const*, bool)'
lib/libProof.so: undefined reference to `TChain::LoadBaskets(long long)'
lib/libProof.so: undefined reference to `TTree::ReadFile(char const*, char const*, char)'
lib/libProof.so: undefined reference to `TChain::AddFriend(char const*, TFile*)'
lib/libProof.so: undefined reference to `TChain::Add(char const*, long long)'
lib/libProof.so: undefined reference to `TQueryResult::AddLogLine(char const*)'
lib/libProof.so: undefined reference to `TQueryResult::SetProcessInfo(long long, float, long long, float, float)'
lib/libProof.so: undefined reference to `TTree::SetCacheSize(long long)'
lib/libProof.so: undefined reference to `TChain::CanDeleteRefs(bool)'
lib/libProof.so: undefined reference to `TQueryResult::Class()'
lib/libProof.so: undefined reference to `TChain::GetMaximum(char const*)'
lib/libProof.so: undefined reference to `TChain::ResetBranchAddresses()'
lib/libProof.so: undefined reference to `TTree::BuildIndex(char const*, char const*)'
lib/libProof.so: undefined reference to `TTree::GetEntriesFriend() const'
lib/libProof.so: undefined reference to `TTree::Branch(char const*, void*, char const*, int)'
lib/libProof.so: undefined reference to `TQueryResult::RecordEnd(TQueryResult::EQueryStatus, TList*)'
lib/libProof.so: undefined reference to `TChain::CreatePackets()'
lib/libProof.so: undefined reference to `TTree::GetUserInfo()'
lib/libProof.so: undefined reference to `TTree::MakeClass(char const*, char const*)'
lib/libProof.so: undefined reference to `TTree::CheckBranchAddressType(TBranch*, TClass*, EDataType, bool)'
lib/libProof.so: undefined reference to `TChain::SetBranchAddress(char const*, void*, TClass*, EDataType, bool)'
lib/libProof.so: undefined reference to `TTree::SetDefaultEntryOffsetLen(int, bool)'
lib/libProof.so: undefined reference to `TChain::Loop(char const*, long long, long long)'
lib/libProof.so: undefined reference to `TTree::ReadStream(std::basic_istream<char, std::char_traits<char> >&, char const*, char)'
lib/libProof.so: undefined reference to `TChain::Reset(char const*)'
lib/libProof.so: undefined reference to `TTree::Fit(char const*, char const*, char const*, char const*, char const*, long long, long long)'
lib/libProof.so: undefined reference to `TChain::GetEntry(long long, int)'
lib/libProof.so: undefined reference to `TTree::DropBuffers(int)'
lib/libProof.so: undefined reference to `TTree::Write(char const*, int, int) const'
lib/libProof.so: undefined reference to `TQueryResult::SetInputList(TList*, bool)'
lib/libProof.so: undefined reference to `TTree::GetEntryList()'
lib/libProof.so: undefined reference to `TTree::MakeCode(char const*)'
lib/libProof.so: undefined reference to `TTree::StartViewer()'
lib/libProof.so: undefined reference to `TChain::GetWeight() const'
lib/libProof.so: undefined reference to `TChain::SetDirectory(TDirectory*)'
lib/libProof.so: undefined reference to `TChain::GetNbranches()'
lib/libProof.so: undefined reference to `TChain::AddFriend(TTree*, char const*, bool)'
lib/libProof.so: undefined reference to `TTree::SetParallelUnzip(bool, float)'
lib/libProof.so: undefined reference to `TTree::Show(long long, int)'
lib/libProof.so: undefined reference to `TTree::Query(char const*, char const*, char const*, long long, long long)'
lib/libProof.so: undefined reference to `TChain::Merge(TCollection*, TFileMergeInfo*)'
lib/libProof.so: undefined reference to `TChain::GetAlias(char const*) const'
lib/libProof.so: undefined reference to `typeinfo for TFriendElement'
lib/libProof.so: undefined reference to `TTree::Class()'
lib/libProof.so: undefined reference to `TTree::GetIteratorOnAllLeaves(bool)'
lib/libProof.so: undefined reference to `typeinfo for TQueryResult'
lib/libProof.so: undefined reference to `TChain::Scan(char const*, char const*, char const*, long long, long long)'
lib/libProof.so: undefined reference to `TTree::Branch(char const*, int, int)'
lib/libProof.so: undefined reference to `TTree::GetEntryNumberWithBestIndex(int, int) const'
lib/libProof.so: undefined reference to `TTree::BranchImpRef(char const*, TClass*, EDataType, void*, int, int)'
lib/libProof.so: undefined reference to `TQueryResult::SetOutputList(TList*, bool)'
lib/libProof.so: undefined reference to `TSelector::GetSelector(char const*)'
collect2: ld returned 1 exit status
make: *** [bin/pq2] Error 1