(.text+0x1262): undefined reference to `BZ2_bzReadOpen'
(.text+0x1289): undefined reference to `BZ2_bzRead'
(.text+0x12c0): undefined reference to `BZ2_bzReadClose'
(.text+0x131e): undefined reference to `BZ2_bzReadClose'
(.text+0x1397): undefined reference to `BZ2_bzReadClose'
(.text+0x13f7): undefined reference to `BZ2_bzReadClose'
/usr/lib/x86_64-linux-gnu/libcfitsio.a(drvrnet.o): In function `https_open_network':
(.text+0x761): undefined reference to `curl_easy_init'
(.text+0x778): undefined reference to `curl_easy_setopt'
(.text+0x7a1): undefined reference to `curl_easy_setopt'
(.text+0x7b7): undefined reference to `curl_easy_setopt'
(.text+0x7cd): undefined reference to `curl_easy_setopt'
(.text+0x810): undefined reference to `curl_easy_setopt'
/usr/lib/x86_64-linux-gnu/libcfitsio.a(drvrnet.o):(.text+0x833): more undefined references to `curl_easy_setopt' follow
/usr/lib/x86_64-linux-gnu/libcfitsio.a(drvrnet.o): In function `https_open_network':
(.text+0x8df): undefined reference to `curl_easy_perform'
(.text+0x905): undefined reference to `curl_easy_cleanup'
(.text+0x93c): undefined reference to `curl_easy_setopt'
(.text+0x94d): undefined reference to `curl_easy_setopt'
(.text+0x955): undefined reference to `curl_easy_perform'
(.text+0x9b5): undefined reference to `curl_easy_setopt'
(.text+0x9bd): undefined reference to `curl_easy_perform'
(.text+0xa63): undefined reference to `curl_easy_cleanup'
(.text+0xb07): undefined reference to `curl_easy_setopt'
(.text+0xb0f): undefined reference to `curl_easy_perform'
collect2: error: ld returned 1 exit status
/usr/marooz_work/root/graf2d/fitsio/Module.mk:45: recipe for target 'lib/libFITSIO.so' failed
make: *** [lib/libFITSIO.so] Error 1
make: *** Waiting for unfinished jobs....
==> lib/libRooFitCore.so done
ROOT v5-34-38
gcc version 7.4.0
ubuntu 18.04.2 LTS
Hi,
you are (at least) missing libcurl.so ( curl_easy_cleanup)
and libbz2.so ( BZ2_bzReadOpen) to be found in
/usr/lib/x86_64-linux-gnu
Modify your configure scripts/Makefile accordingly
because when I do so i get an error like this:
[ 22%] Performing build step for ‘XROOTD’
CMake Error at /usr/marooz_work/rootinstall/XROOTD-prefix/src/XROOTD-stamp/XROOTD-build-RelWithDebInfo.cmake:16 (message):
Command failed: 2
Hey, I tried building 6-18-00 in a new directory with the same steps as mentioned by you. the first cmake step went ok this time. my cmake version is 3.10.2. but everything stopped with this error:
thank you for your answer. “make” worked fine and i was able to compile root properly. pythia8 example in my buildroot/tutorials also works now. but main91 and main92 still don’t work. main91 gives the error that it requires root and main92 shows:
main92Dct.cc:(.text._ZN4ROOT6Detail20TCollectionProxyInfo9IteratorsISt6vectorIN7Pythia86InBeamESaIS5_EELb0EE4nextEPvPKv[_ZN4ROOT6Detail20TCollectionProxyInfo9IteratorsISt6vectorIN7Pythia86InBeamESaIS5_EELb0EE4nextEPvPKv]+0x7): undefined reference to kAssertMsg' main92Dct.cc:(.text._ZN4ROOT6Detail20TCollectionProxyInfo9IteratorsISt6vectorIN7Pythia86InBeamESaIS5_EELb0EE4nextEPvPKv[_ZN4ROOT6Detail20TCollectionProxyInfo9IteratorsISt6vectorIN7Pythia86InBeamESaIS5_EELb0EE4nextEPvPKv]+0x2b): undefined reference toFatal(char const*, char const*, …)’
/tmp/ccWlkVTX.o: In function ROOT::Detail::TCollectionProxyInfo::Iterators<std::vector<Pythia8::DecayChannel, std::allocator<Pythia8::DecayChannel> >, false>::next(void*, void const*)': main92Dct.cc:(.text._ZN4ROOT6Detail20TCollectionProxyInfo9IteratorsISt6vectorIN7Pythia812DecayChannelESaIS5_EELb0EE4nextEPvPKv[_ZN4ROOT6Detail20TCollectionProxyInfo9IteratorsISt6vectorIN7Pythia812DecayChannelESaIS5_EELb0EE4nextEPvPKv]+0x7): undefined reference tokAssertMsg’
main92Dct.cc:(.text._ZN4ROOT6Detail20TCollectionProxyInfo9IteratorsISt6vectorIN7Pythia812DecayChannelESaIS5_EELb0EE4nextEPvPKv[_ZN4ROOT6Detail20TCollectionProxyInfo9IteratorsISt6vectorIN7Pythia812DecayChannelESaIS5_EELb0EE4nextEPvPKv]+0x2b): undefined reference to Fatal(char const*, char const*, ...)' /tmp/ccWlkVTX.o: In functionPythia8::ROOT::Pythia8_Dictionary()’:
main92Dct.cc:(.text._ZN7Pythia84ROOTL18Pythia8_DictionaryEv[_ZN7Pythia84ROOT20GenerateInitInstanceEv]+0x41): undefined reference to ROOT::Internal::DefineBehavior(void*, void*)' main92Dct.cc:(.text._ZN7Pythia84ROOTL18Pythia8_DictionaryEv[_ZN7Pythia84ROOT20GenerateInitInstanceEv]+0x76): undefined reference toROOT::TGenericClassInfo::TGenericClassInfo(char const*, int, char const*, int, ROOT::Internal::TInitBehavior const*, TClass* (*)(), int)’
main92Dct.cc:(.text._ZN7Pythia84ROOTL18Pythia8_DictionaryEv[_ZN7Pythia84ROOT20GenerateInitInstanceEv]+0x87): undefined reference to ROOT::TGenericClassInfo::~TGenericClassInfo()' main92Dct.cc:(.text._ZN7Pythia84ROOTL18Pythia8_DictionaryEv[_ZN7Pythia84ROOT20GenerateInitInstanceEv]+0x2b): undefined reference toROOT::TGenericClassInfo::GetClass()’
main92Dct.cc:(.text._ZN7Pythia84ROOTL18Pythia8_DictionaryEv[_ZN7Pythia84ROOT20GenerateInitInstanceEv]+0xa6): undefined reference to ROOT::TGenericClassInfo::GetClass()' /tmp/ccWlkVTX.o: In function_GLOBAL__sub_I_main92Dct.cc’:
main92Dct.cc:(.text.startup+0x11): undefined reference to `TVersionCheck::TVersionCheck(int)’
collect2: error: ld returned 1 exit status
Makefile:159: recipe for target ‘main92.so’ failed
make: *** [main92.so] Error 1
I am quoting some part of the “error”. I hope i can fix this somehow without compiling root again .
Hey, I am sorry for the late reply. I do have source $ROOTSYS/bin/thisroot.sh in my .bashrc and I have also given the ROOT_libs path. This is what I have in .bashrc:
Hi,
there seems in fact a problem with pythias Makefile concerning ROOT.
I did with ROOT 6.18.00:
Download the latest pythia8243.tgz, untar and go to pythia8243
Make sure ROOTSYS is correctly set
./configure --with-root=$ROOTSYS
make
Go to examples and check if in Makefile.inc ROOT vars are
correctly set, e.g. for me:
sorry there was still a “/” missing in main91:
but this should have given a different error message (in fact about 5 pages)
Could you try with this and show the complete log:
Esp. the line with: g++ main91.cc …