Issue with TRoot::RegisterModule

Hello everyone,
I am writing because I am unfortunately having problems with TRoot::RegisterModule.
The error I get is as follows:
/usr/bin/ld: /opt/exp_software/neutrino/EDEPSIM/lib/libedepsim_io. so: undefined reference to `TROOT::RegisterModule(char const*, char const**, char const*, char const*, void (*)(), std::vector<std::pair<std::string, int>, std::allocator<std::pair<std::string, int> > > const&, char const**, bool)’
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/single.dir/build.make:455: single] Error 1
make[1]: *** [CMakeFiles/Makefile2:152: CMakeFiles/single.dir/all] Error 2
The steps I take are as follows:

  1. I go into the build folder
  2. I do source …/setup_CNAF (which I attach)
  3. I do cmake …/. which gives no error
  4. I do make which gives me the above error.
    I also attach the CMakeLists.txt
    Thanks to anyone who can solve the problem!
    Cheers,
    Silvia
    CMakeLists.txt (3.7 KB)
    setup_CNAF.txt (1.6 KB)

Hi @SilviaR98,

Thanks and welcome back to the ROOT forum.

Can you give a bit more context on what you are trying to achieve so that I can help you better (or tag an expert who can help you with this)

Cheers,
Dev

I am not sure what kind of details you need, but I do my best.
I am connected via ssh and need to configure the environment to be able to compile codes written in c++.
To configure the environment I do source setup_CNAF (which I have attached) and then make.
When I do make, I get the above error.

From what I understand: you’re trying to build lar-lenses, a package which depends on ROOT.

Maybe you can verify this file exists to make sure ROOT is setup properly:

ls /opt/exp_software/neutrino/al9/ROOT/v6.32.06/v6.32.06_install/bin/thisroot.sh 

But other than that it seems to not be a ROOT issue. The project doesn’t link against all the ROOT components that are needed. Can you perhaps bring up this issue with lar-lenses maintainers/developers?

Cheers,
Dev

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.