[ROOT] Re: Errors in compiling

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Nov 11 2002 - 22:54:21 MET


We do not support Solaris 5.6 anymore. However in your case,
it seems that you are mixing code compiled with CC4.2 with code compiled
with CC5.2.

Rene Brun

On Mon, 11 Nov 2002, Perfetto Francesco wrote:

> Hello All,
> I use root 3.02/06 on Sun SPARC 5.6.
> I would like to use the compiler but I think to have any problems,
> practically it give me a lot of many of errors.
> For example when I use "gmake" in /root/test I have:
> 
> sunkloe1:/cern/root/test# gmake
> CC -O MainEvent.o libEvent.so -L/cern/root/lib -lCore -lCint -lHist -lGraf
> -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics
> -L/usr/ccs/lib -lm -lsocket -lgen -ldl -lsunmath  \
>            -o Event
> Undefined                       first referenced
>  symbol                             in file
> const char*TObject::GetName()const        libEvent.so
> unsafe_ios::tie(ostream*)       /cern/root/lib/libCint.so
> hex(ios&)                      /cern/root/lib/libCint.so
> unsafe_ostream::do_opfx(void)        /cern/root/lib/libCore.so
> cout                                /cern/root/lib/libCore.so
> operator new(unsigned int)
> /cern/root/lib/libCore.so
> endl(ostream&)                 /cern/root/lib/libCore.so
> char*TObject::GetObjectInfo(int,int)const libEvent.so
> ws(istream&)                   /cern/root/lib/libCore.so
> ios::setf(long, long)                    /cern/root/lib/libCint.so
> dec(ios&)                      /cern/root/lib/libCint.so
> ostream::operator <<(streambuf*)          /cern/root/lib/libCint.so
> TRef::TRef(const TRef&)                 libEvent.so
> TRefArray::TRefArray(int,int)             libEvent.so
> filebuf::open(const char*, int, int)             /cern/root/lib/libCint.so
> unsigned char TObject::IsEqual(const TObject*)const       libEvent.so
> void TRef::SetAction(TObject*) libEvent.so
> fstreambase::open(const char*, int, int)         /cern/root/lib/libCint.so
> ios::unsetf(long)                    /cern/root/lib/libCint.so
> TObject*TObject::Clone(const char*)const        libEvent.so
> istream::getline(char*, int, char)            /cern/root/lib/libCore.so
> TClonesArray::TClonesArray(const char*,int,unsigned char)
> libEvent.so
> istream::istream(streambuf*)          /cern/root/lib/libCint.so
> iostream::iostream(streambuf*)         /cern/root/lib/libCint.so
> TH1F::TH1F(const char*,const char*,int,double,double)
> MainEvent.o
> istream::seekg(long, unsafe_ios::seek_dir) /cern/root/lib/libCint.so
> clog                                /cern/root/lib/libCint.so
> ostream::operator <<(double)                     /cern/root/lib/libCint.so
> ostream::operator <<(long)                     /cern/root/lib/libCint.so
> istream::operator >>(short&)                    /cern/root/lib/libCint.so
> void TObject::Execute(TMethod*,TObjArray*) libEvent.so
> void TObject::Copy(TObject&)            libEvent.so
> void TObject::RecursiveRemove(TObject*) libEvent.so
> unsigned char TObject::HandleTimer(TTimer*) libEvent.so
> ifstream::ifstream(int, char*, int)
> /cern/root/lib/libCint.so
> int TObject::Read(const char*)           libEvent.so
> istream::operator >>(double&)                    /cern/root/lib/libCint.so
> istream::operator >>(float&)                    /cern/root/lib/libCint.so
> istream::operator >>(int&)                    /cern/root/lib/libCint.so
> istream::operator >>(long&)                    /cern/root/lib/libCint.so
> istrstream::~istrstream(void)                  /cern/root/lib/libCore.so
> void TRef::operator=(TObject*)         libEvent.so
> void TObject::SetDrawOption(const char*)  libEvent.so
> istream::operator >>(char*)                    /cern/root/lib/libCint.so
> Iostream_init::Iostream_init(void)               /cern/root/lib/libCore.so
> unsigned TProcessID::GetObjectCount() libEvent.so
> unsafe_istream::operator >>(char*)             /cern/root/lib/libCint.so
> void TObject::Execute(const char*,const char*)       libEvent.so
> fstreambase::fstreambase(int)                 /cern/root/lib/libCint.so
> fstreambase::fstreambase(void)                 /cern/root/lib/libCint.so
> static ios::sync_with_stdio(void)          /cern/root/lib/libCint.so
> strstream::~strstream(void)                   /cern/root/lib/libCint.so
> int TClass::WriteBuffer(TBuffer&,void*,const char*) libEvent.so
> unsigned char TObject::InheritsFrom(const TClass*)const libEvent.so
> fstreambase::setbuf(char*, int)          /cern/root/lib/libCint.so
> ofstream::ofstream(int)                    /cern/root/lib/libCint.so
> void TTree::SetBranchStyle(int)     MainEvent.o
> unsafe_istream::do_ipfx(int)        /cern/root/lib/libCore.so
> ofstream::ofstream(void)                    /cern/root/lib/libCint.so
> _ex_rethrow_q                       /cern/root/lib/libCore.so
> strstreambuf::~strstreambuf(void)                /cern/root/lib/libCint.so
> _pure_error_                        /cern/root/lib/libCore.so
> [Hint: try checking whether you are linking with the correct libC]
> 
> TObject::~TObject #Nvariant 1()               MainEvent.o
> TObject*TRef::GetObject()const libEvent.so
> streambuf::do_snextc(void)           /cern/root/lib/libCint.so
> fstream::fstream(const char*, int, int)
> /cern/root/lib/libCint.so
> istream::putback(char)               /cern/root/lib/libCore.so
> strstreambuf::freeze(int)           /cern/root/lib/libCint.so
> TFile::TFile(const char*,const char*,const char*,int)
> MainEvent.o
> void TObject::ls(const char*)const            libEvent.so
> unsafe_ios::flags(long)              /cern/root/lib/libCint.so
> filebuf::~filebuf(void)                     /cern/root/lib/libCint.so
> ifstream::ifstream(const char*, int, int)
> /cern/root/lib/libCore.so
> fstreambase::fstreambase(const char*, int, int)
> /cern/root/lib/libCint.so
> fstream::~fstream(void)                     /cern/root/lib/libCint.so
> istrstream::istrstream(char*)                 /cern/root/lib/libCint.so
> flush(ostream&)                /cern/root/lib/libCint.so
> streambuf::sgetn_unlocked(char*, int)    /cern/root/lib/libCint.so
> ends(ostream&)                 /cern/root/lib/libCint.so
> _vector_delete_                     /cern/root/lib/libCore.so
> void TObject::Delete(const char*)         libEvent.so
> _vector_con_                        /cern/root/lib/libCore.so
> ostream::tellp(void)                 /cern/root/lib/libCint.so
> void RemoveClass(const char*)            libEvent.so
> ostream::operator <<(unsigned long)
> /cern/root/lib/libCint.so
> TObject*TObject::FindObject(const TObject*)const   libEvent.so
> ostream::flush(void)                 /cern/root/lib/libCore.so
> istream::operator >>(unsigned int&)
> /cern/root/lib/libCint.so
> istream::operator >>(unsigned long&)
> /cern/root/lib/libCint.so
> void TObject::Dump()const             libEvent.so
> istream::operator >>(unsigned short&)
> /cern/root/lib/libCint.so
> void*TStorage::ObjectAlloc(unsigned,void*)   libEvent.so
> cerr                                /cern/root/lib/libCore.so
> strstream::strstream(char*, int, int)
> /cern/root/lib/libCint.so
> istream::operator >>(streambuf*)          /cern/root/lib/libCint.so
> void TObject::SetUniqueID(unsigned)      libEvent.so
> TRef::__vtbl                   libEvent.so
> [Hint: try checking whether the first non-inlined, non-pure virtual
> function of class TRef is defined]
> 
> ostream::operator <<(void*)                    /cern/root/lib/libCore.so
> ostream::seekp(long)                 /cern/root/lib/libCint.so
> Iostream_init::~Iostream_init(void)
> /cern/root/lib/libCore.so
> void TObject::ShowMembers(TMemberInspector&,char*) libEvent.so
> istrstream::istrstream(char*, int)
> /cern/root/lib/libCore.so
> operator delete(void*)
> /cern/root/lib/libCore.so
> streambuf::sputn_unlocked(const char*, int)   /cern/root/lib/libCore.so
> unsigned TObject::GetUniqueID()const      libEvent.so
> void TObject::Pop()               libEvent.so
> fstreambase::~fstreambase(void)                 /cern/root/lib/libCint.so
> ofstream::ofstream(int, char*, int)
> /cern/root/lib/libCint.so
> _vector_new_                        /cern/root/lib/libCore.so
> TObject*TBuffer::ReadObject(const TClass*) libEvent.so
> const char*TObject::GetDrawOption()const  libEvent.so
> strstream::strstream(void)                   /cern/root/lib/libCint.so
> ios::pword(int)                     /cern/root/lib/libCint.so
> const char*TObject::GetTitle()const       libEvent.so
> TDirectory::TDirectory(const char*,const char*,const char*)
> MainEvent.o
> ios::setf(long)                      /cern/root/lib/libCint.so
> ostrstream::ostrstream(void)                  /cern/root/lib/libCint.so
> strstreambuf::strstreambuf(int)                /cern/root/lib/libCint.so
> TObject::TObject #Nvariant 1(const TObject&)            libEvent.so
> ofstream::~ofstream(void)                    /cern/root/lib/libCore.so
> void TObject::Browse(TBrowser*) libEvent.so
> strstreambuf::strstreambuf(void)                /cern/root/lib/libCint.so
> unsafe_istream::do_get(void)         /cern/root/lib/libCore.so
> void TBuffer::WriteObject(const TObject*) libEvent.so
> static ios::bitalloc(void)                 /cern/root/lib/libCint.so
> filebuf::filebuf(int)                     /cern/root/lib/libCint.so
> filebuf::filebuf(void)                     /cern/root/lib/libCint.so
> setw(int)                          /cern/root/lib/libHist.so
> fstream::fstream(void)                     /cern/root/lib/libCint.so
> TTree::TTree(const char*,const char*,int)              MainEvent.o
> ostream::ostream(streambuf*)          /cern/root/lib/libCint.so
> TNetFile::TNetFile(const char*,const char*,const char*,int,int)
> MainEvent.o
> static ios::xalloc(void)                   /cern/root/lib/libCint.so
> unsigned char TObject::IsFolder()const         libEvent.so
> fstream::fstream(int)                     /cern/root/lib/libCint.so
> double TStopwatch::CpuTime()        MainEvent.o
> TObject*TObject::DrawClone(const char*)const    libEvent.so
> void TObject::operator delete(void*)               MainEvent.o
> void TObject::ExecuteEvent(int,int,int)   libEvent.so
> unsigned char TObject::InheritsFrom(const char*)const  libEvent.so
> _vector_des_                        /cern/root/lib/libCore.so
> unsafe_ostream::operator <<(double)              /cern/root/lib/libCore.so
> unsafe_ostream::operator <<(long)              /cern/root/lib/libCore.so
> double TStopwatch::RealTime()       MainEvent.o
> ofstream::ofstream(const char*, int, int)
> /cern/root/lib/libCore.so
> filebuf::openprot               /cern/root/lib/libCore.so
> [Hint: static member filebuf::openprot should be defined in the program
> ,see Annotated Reference Manual (ARM) Section 9.4]
> 
> ifstream::ifstream(int)                    /cern/root/lib/libCint.so
> ifstream::ifstream(void)                    /cern/root/lib/libCint.so
> istream::tellg(void)                 /cern/root/lib/libCint.so
> ostrstream::ostrstream(char*, int, int)
> /cern/root/lib/libCore.so
> void TRef::ShowMembers(TMemberInspector&,char*) libEvent.so
> setprecision(int)                  /cern/root/lib/libHist.so
> TBuffer&operator>>(TBuffer&,TH1F*&)     libEvent.so
> unsafe_ostream::outstr(const char*, const char*)
> /cern/root/lib/libCore.so
> istream::seekg(long)                 /cern/root/lib/libCint.so
> void AddClass(const char*,short,void(*)(),int)         libEvent.so
> void TObject::Paint(const char*)          libEvent.so
> void TObject::DrawClass()const        libEvent.so
> void TObject::Inspect()const          libEvent.so
> void*TStorage::ObjectAlloc(unsigned)    MainEvent.o
> unsigned long TObject::Hash()const             libEvent.so
> istream::ignore(int, int)              /cern/root/lib/libCint.so
> ostrstream::~ostrstream(void)                  /cern/root/lib/libCore.so
> unsafe_ios::setstate(int)           /cern/root/lib/libCore.so
> unsafe_ostream::do_osfx(void)        /cern/root/lib/libCore.so
> void
> TObject::SavePrimitive(std::basic_ofstream<char,std::char_traits<char>
> >&,const char*) libEvent.so
> _vector_vnew_                       /cern/root/lib/libCint.so
> fstream::fstream(int, char*, int)
> /cern/root/lib/libCint.so
> void TStopwatch::Stop()           MainEvent.o
> strstreambuf::strstreambuf(char*, int, char*)
> /cern/root/lib/libCint.so
> void TObject::Print(const char*)const         libEvent.so
> istream::read(char*, int)                /cern/root/lib/libCore.so
> void Error(const char*,const char*,...)                libEvent.so
> int TClass::ReadBuffer(TBuffer&,void*) libEvent.so
> TBuffer&operator>>(TBuffer&,TRefArray*&) libEvent.so
> ios::iword(int)                     /cern/root/lib/libCint.so
> ostream::seekp(long, unsafe_ios::seek_dir) /cern/root/lib/libCint.so
> unsafe_ostream::operator <<(unsigned long)
> /cern/root/lib/libCore.so
> TObject::TObject #Nvariant 1()               libEvent.so
> void TStopwatch::Continue()       MainEvent.o
> TObject*TObject::FindObject(const char*)const   libEvent.so
> fstreambase::close(void)             /cern/root/lib/libCore.so
> unsigned char TObject::Notify()            libEvent.so
> cin                                 /cern/root/lib/libCint.so
> const char*TObject::ClassName()const      libEvent.so
> int TObject::Compare(const TObject*)const       libEvent.so
> void TObject::Draw(const char*)           libEvent.so
> void TStopwatch::Start(unsigned char)         MainEvent.o
> void TObject::UseCurrentStyle()   libEvent.so
> int TObject::DistancetoPrimitive(int,int) libEvent.so
> istream::get(char*, int, char)                /cern/root/lib/libCore.so
> filebuf::filebuf(int, char*, int)
> /cern/root/lib/libCint.so
> const char*TObject::GetIconName()const    libEvent.so
> ifstream::~ifstream(void)                    /cern/root/lib/libCore.so
> unsafe_ios::clear(int)              /cern/root/lib/libCint.so
> strstreambuf::str(void)              /cern/root/lib/libCint.so
> filebuf::close(void)                 /cern/root/lib/libCint.so
> void TProcessID::SetObjectCount(unsigned) libEvent.so
> oct(ios&)                      /cern/root/lib/libCint.so
> int TObject::Write(const char*,int,int)        libEvent.so
> istream::get(streambuf&, char)       /cern/root/lib/libCint.so
> filebuf::attach(int)                /cern/root/lib/libCint.so
> void TClass::SetStreamer(const char*,void(*)(TBuffer&,void*,int))
> libEvent.so
> fstreambase::fstreambase(int, char*, int)
> /cern/root/lib/libCint.so
> TStopwatch::TStopwatch()              MainEvent.o
> TClass*CreateClass(const char*,short,const char*,const char*,int,int)
> libEvent.so
> ld: fatal: Symbol referencing errors. No output written to Event
> gmake: *** [Event] Error 1
> sunkloe1:/cern/root/test#
> 
> Is there someone that can help me.
> Thanks in advance.
> 
> 					Regards
> 				       Francesco.
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:17 MET