Problem compiling

I had some problems with my current analysis code not compiling so I decide to update ROOT to 5.30.02. About half way through I get the following error:

g++ -m32 -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 toTChain::AddFriend(char const*, char const*)'
lib/libProof.so: undefined reference to TQueryResult::SetArchived(char const*)' lib/libProof.so: undefined reference toTTree::LoadTreeFriend(long long, TTree*)'
lib/libProof.so: undefined reference to TTree::OptimizeBaskets(unsigned long long, float, char const*)' lib/libProof.so: undefined reference toTTree::GetPlayer()'
lib/libProof.so: undefined reference to TChain::Merge(TCollection*, char const*)' lib/libProof.so: undefined reference toTTree::SetAutoFlush(long long)'
lib/libProof.so: undefined reference to TTree::GetEntryNumberWithIndex(int, int) const' lib/libProof.so: undefined reference toTTree::SetAlias(char const*, char const*)'
lib/libProof.so: undefined reference to TChain::GetEntryWithIndex(int, int)' lib/libProof.so: undefined reference toTTree::DropBaskets()'
lib/libProof.so: undefined reference to TTree::SetFileNumber(int)' lib/libProof.so: undefined reference toTQueryResult::GetInputObject(char const*) const’
lib/libProof.so: undefined reference to TTree::SetCacheEntryRange(long long, long long)' lib/libProof.so: undefined reference toTChain::GetLeaf(char const*)'
lib/libProof.so: undefined reference to TTree::CreateBasket(TBranch*)' lib/libProof.so: undefined reference toTChain::SetBranchAddress(char const*, void*, TBranch**)'
lib/libProof.so: undefined reference to TTree::CopyEntries(TTree*, long long, char const*)' lib/libProof.so: undefined reference totypeinfo for TChain’
lib/libProof.so: undefined reference to TTree::SetObject(char const*, char const*)' lib/libProof.so: undefined reference totypeinfo for TEntryList’
lib/libProof.so: undefined reference to TTree::FlushBaskets() const' lib/libProof.so: undefined reference toTChain::AddFileInfoList(TCollection*, long long)'
lib/libProof.so: undefined reference to TChain::TChain()' lib/libProof.so: undefined reference toTChain::ShowMembers(TMemberInspector&)'
lib/libProof.so: undefined reference to TTree::CopyAddresses(TTree*, bool)' lib/libProof.so: undefined reference toTTree::StopCacheLearningPhase()'
lib/libProof.so: undefined reference to TTree::BranchImp(char const*, char const*, TClass*, void*, int, int)' lib/libProof.so: undefined reference toTChain::GetMinimum(char const*)'
lib/libProof.so: undefined reference to TQueryResult::Print(char const*) const' lib/libProof.so: undefined reference toTChain::Merge(TFile*, int, char const*)'
lib/libProof.so: undefined reference to TChain::UseCache(int, int)' lib/libProof.so: undefined reference toTTree::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 toTTree::SetBasketSize(char const*, int)'
lib/libProof.so: undefined reference to TEventList::TEventList()' lib/libProof.so: undefined reference toTTree::SetMakeClass(int)'
lib/libProof.so: undefined reference to TChain::SetWeight(double, char const*)' lib/libProof.so: undefined reference toTTree::KeepCircular()'
lib/libProof.so: undefined reference to TTree::BranchOld(char const*, char const*, void*, int, int)' lib/libProof.so: undefined reference toTChain::ResetBranchAddress(TBranch*)'
lib/libProof.so: undefined reference to TQueryResult::Browse(TBrowser*)' lib/libProof.so: undefined reference toTChain::AddFile(char const*, long long, char const*)'
lib/libProof.so: undefined reference to TQueryResult::CloneInfo()' lib/libProof.so: undefined reference toTTree::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 toTTree::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 toTTree::SetDebug(int, long long, long long)'
lib/libProof.so: undefined reference to TChain::SetAutoDelete(bool)' lib/libProof.so: undefined reference toTChain::ls(char const*) const’
lib/libProof.so: undefined reference to TTree::Branch(char const*, char const*, void*, int, int)' lib/libProof.so: undefined reference toTTree::SetEstimate(long long)'
lib/libProof.so: undefined reference to TTree::RemoveFriend(TTree*)' lib/libProof.so: undefined reference totypeinfo for TEventList’
lib/libProof.so: undefined reference to TTree::SetTreeIndex(TVirtualIndex*)' lib/libProof.so: undefined reference toTTree::Branch(TList*, int, int)'
lib/libProof.so: undefined reference to TTree::SetCacheLearnEntries(int)' lib/libProof.so: undefined reference toTTree::Notify()'
lib/libProof.so: undefined reference to TChain::DirectoryAutoAdd(TDirectory*)' lib/libProof.so: undefined reference toTChain::SetProof(bool, bool, bool)'
lib/libProof.so: undefined reference to TTree::BranchImp(char const*, TClass*, void*, int, int)' lib/libProof.so: undefined reference toTChain::GetClusterIterator(long long)'
lib/libProof.so: undefined reference to TTree::BranchRef()' lib/libProof.so: undefined reference toTChain::SetBranchStatus(char const*, bool, unsigned int*)'
lib/libProof.so: undefined reference to TTree::SetAutoSave(long long)' lib/libProof.so: undefined reference toTChain::LoadTree(long long)'
lib/libProof.so: undefined reference to TTree::SetCircular(long long)' lib/libProof.so: undefined reference toTChain::SetBranchAddress(char const*, void*, TBranch**, TClass*, EDataType, bool)'
lib/libProof.so: undefined reference to TTree::ChangeFile(TFile*)' lib/libProof.so: undefined reference toTTree::SetName(char const*)'
lib/libProof.so: undefined reference to TTree::Delete(char const*)' lib/libProof.so: undefined reference toTTree::SetEntries(long long)'
lib/libProof.so: undefined reference to TChain::GetEntryNumber(long long) const' lib/libProof.so: undefined reference toTChain::TChain(char const*, char const*)'
lib/libProof.so: undefined reference to TChain::Merge(char const*, char const*)' lib/libProof.so: undefined reference toTTree::GetFriendAlias(TTree*) const’
lib/libProof.so: undefined reference to TTree::PrintCacheStats(char const*) const' lib/libProof.so: undefined reference toTTree::Refresh()'
lib/libProof.so: undefined reference to TTree::AddBranchToCache(TBranch*, bool)' lib/libProof.so: undefined reference toTTree::BronchExec(char const*, char const*, void*, bool, int, int)'
lib/libProof.so: undefined reference to TQueryResult::~TQueryResult()' lib/libProof.so: undefined reference toTChain::~TChain()'
lib/libProof.so: undefined reference to TChain::RecursiveRemove(TObject*)' lib/libProof.so: undefined reference toTChain::SetPacketSize(int)'
lib/libProof.so: undefined reference to TTree::Branch(TCollection*, int, int, char const*)' lib/libProof.so: undefined reference tovtable for TQueryResult’
lib/libProof.so: undefined reference to TTree::UseCurrentStyle()' lib/libProof.so: undefined reference toTChain::Add(TChain*)'
lib/libProof.so: undefined reference to TQueryResult::ShowMembers(TMemberInspector&)' lib/libProof.so: undefined reference toTQueryResult::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 toTChain::GetChainEntryNumber(long long) const’
lib/libProof.so: undefined reference to TEntryList::TEntryList(char const*, char const*)' lib/libProof.so: undefined reference toTTree::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 toTTree::Write(char const*, int, int)'
lib/libProof.so: undefined reference to TTree::AutoSave(char const*)' lib/libProof.so: undefined reference toTQueryResult::AddInput(TObject*)'
lib/libProof.so: undefined reference to TTree::CloneTree(long long, char const*)' lib/libProof.so: undefined reference toTChain::SetEntryListFile(char const*, char const*)'
lib/libProof.so: undefined reference to TTree::AddBranchToCache(char const*, bool)' lib/libProof.so: undefined reference toTChain::LoadBaskets(long long)'
lib/libProof.so: undefined reference to TTree::ReadFile(char const*, char const*, char)' lib/libProof.so: undefined reference toTChain::AddFriend(char const*, TFile*)'
lib/libProof.so: undefined reference to TChain::Add(char const*, long long)' lib/libProof.so: undefined reference toTQueryResult::AddLogLine(char const*)'
lib/libProof.so: undefined reference to TQueryResult::SetProcessInfo(long long, float, long long, float, float)' lib/libProof.so: undefined reference toTTree::SetCacheSize(long long)'
lib/libProof.so: undefined reference to TChain::CanDeleteRefs(bool)' lib/libProof.so: undefined reference toTQueryResult::Class()'
lib/libProof.so: undefined reference to TChain::GetMaximum(char const*)' lib/libProof.so: undefined reference toTChain::ResetBranchAddresses()'
lib/libProof.so: undefined reference to TTree::BuildIndex(char const*, char const*)' lib/libProof.so: undefined reference toTTree::GetEntriesFriend() const’
lib/libProof.so: undefined reference to TTree::Branch(char const*, void*, char const*, int)' lib/libProof.so: undefined reference toTQueryResult::RecordEnd(TQueryResult::EQueryStatus, TList*)'
lib/libProof.so: undefined reference to TChain::CreatePackets()' lib/libProof.so: undefined reference toTTree::GetUserInfo()'
lib/libProof.so: undefined reference to TTree::MakeClass(char const*, char const*)' lib/libProof.so: undefined reference toTTree::CheckBranchAddressType(TBranch*, TClass*, EDataType, bool)'
lib/libProof.so: undefined reference to TChain::SetBranchAddress(char const*, void*, TClass*, EDataType, bool)' lib/libProof.so: undefined reference toTTree::SetDefaultEntryOffsetLen(int, bool)'
lib/libProof.so: undefined reference to TChain::Loop(char const*, long long, long long)' lib/libProof.so: undefined reference toTTree::ReadStream(std::basic_istream<char, std::char_traits >&, char const, char)'
lib/libProof.so: undefined reference to TChain::Reset(char const*)' lib/libProof.so: undefined reference toTTree::Fit(char const*, char const*, char const*, char const*, char const*, longlong, long long)'
lib/libProof.so: undefined reference to TChain::GetEntry(long long, int)' lib/libProof.so: undefined reference toTTree::DropBuffers(int)'
lib/libProof.so: undefined reference to TTree::Write(char const*, int, int) const' lib/libProof.so: undefined reference toTQueryResult::SetInputList(TList*, bool)'
lib/libProof.so: undefined reference to TTree::GetEntryList()' lib/libProof.so: undefined reference toTTree::MakeCode(char const*)'
lib/libProof.so: undefined reference to TTree::StartViewer()' lib/libProof.so: undefined reference toTChain::GetWeight() const’
lib/libProof.so: undefined reference to TChain::SetDirectory(TDirectory*)' lib/libProof.so: undefined reference toTChain::GetNbranches()'
lib/libProof.so: undefined reference to TChain::AddFriend(TTree*, char const*, bool)' lib/libProof.so: undefined reference toTTree::SetParallelUnzip(bool, float)'
lib/libProof.so: undefined reference to TTree::Show(long long, int)' lib/libProof.so: undefined reference toTTree::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 toTChain::GetAlias(char const*) const’
lib/libProof.so: undefined reference to typeinfo for TFriendElement' lib/libProof.so: undefined reference toTTree::Class()'
lib/libProof.so: undefined reference to TTree::GetIteratorOnAllLeaves(bool)' lib/libProof.so: undefined reference totypeinfo 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 toTTree::Branch(char const*, int, int)'
lib/libProof.so: undefined reference to TTree::GetEntryNumberWithBestIndex(int, int) const' lib/libProof.so: undefined reference toTTree::BranchImpRef(char const*, TClass*, EDataType, void*, int, int)'
lib/libProof.so: undefined reference to TQueryResult::SetOutputList(TList*, bool)' lib/libProof.so: undefined reference toTSelector::GetSelector(char const*)'
collect2: ld returned 1 exit status
make: *** [bin/pq2] Error 1

I’m having exactly the same issue when compiling the same version in Ubuntu. Any suggestions would be appreciated.

Maybe, you should read [url=https://root-forum.cern.ch/t/root-5-30-does-not-compile-with-gcc-4-61/13000/1 post[/url].