_ROOT Version: 6.14.08
_Platform: Ubuntu 18.04
_Compiler: gcc version 7.3.0
I CMade root6 with Pythia8 enabled and get:
[ 94%] Linking CXX shared library ../../lib/libEGPythia8.so
In function `Pythia8::LHAPDF::symbol(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >)':
PartonDistributions.cc:(.text+0xb718): undefined reference to `dlsym'
I could solve this by adding “ldl” by hand to the linker command in:
I made Pythia8 with shared lib enabled an the .so was there.
Did I miss something?
November 29, 2018, 2:32pm
did you by chance upgrade your compiler recently and configured ROOT in the past with another gcc version?
Did you try to scratch the build directory and re-configure and re-build?
thanks for the advice,
I redid from scratch and it works.
The only thing I can think of why it failed first time:
I made Pythia8 without the option: enable-shared,
after getting the before mentioned link error I remade
with the option enable-shared.
I however did the CMake config step again but may be
this wasnt enough.
December 13, 2018, 5:07pm
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.