GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » Error: dlopen error when running the root macro to execute MC
icon8.gif  Error: dlopen error when running the root macro to execute MC [message #8422] Wed, 06 May 2009 08:42 Go to next message
Huagen Xu is currently offline  Huagen Xu
Messages: 9
Registered: May 2009
Location: Juelich
occasional visitor
From: *ikp.kfa-juelich.de
Dear everybody,

I came across the problem when I tried to run the simulation for detector LMD. The error message was listed below:
****************************************************************
root [0]
Processing gconfig/rootlogon.C...
- RTDB container factory FairBaseContFact
- RTDB container factory PndFieldContFact
- RTDB container factory PndPassiveContFact

PSaid instance created... access via gSaid->f()

- RTDB container factory PndRpcContFact
dlopen error: /home/huagen/fairroot/cbuild/lib/libLmd.so: undefined symbol: _ZTI9PndLmdGeo
Load Error: Failed to load Dynamic link library /home/huagen/fairroot/cbuild/lib/libLmd.so
(int)(-1)
*** Interpreter error recovered ***
root [1]
*****************************************************************
Several things could be confirmed:
1. The class PndLmdGeo was definitely defined.
2. The class PndLmdGeo was invoked in the class PndLmd, the header file was included in the PndLmd.h file
3. The libLmd.so was created in the Cbuild/lib after compilation.

Would you give some hints for this troubleshooting? Attached is the code for your information.

Best Regards!
Huagen Xu
IKP, Forschungszentrum Juelich
  • Attachment: PndLmd.cxx
    (Size: 4.89KB, Downloaded 270 times)
  • Attachment: PndLmdGeo.cxx
    (Size: 0.66KB, Downloaded 294 times)
  • Attachment: PndLmd.h
    (Size: 3.60KB, Downloaded 268 times)
  • Attachment: PndLmdGeo.h
    (Size: 0.83KB, Downloaded 282 times)
Re: Error: dlopen error when running the root macro to execute MC [message #8428 is a reply to message #8422] Wed, 06 May 2009 11:05 Go to previous messageGo to next message
Ralf Kliemt is currently offline  Ralf Kliemt
Messages: 507
Registered: May 2007
Location: GSI, Darmstadt
first-grade participant

From: *to.infn.it
Hello Huagen Xu,

For me it looks like you need to add the class into your *linkdef.h file.

It would be a good strategey to submit the code into the development branch of the repository. It is not required to compile or anything there.

Which detector is the LMD?

Greetings from Torino,
Ralf.
Re: Error: dlopen error when running the root macro to execute MC [message #8431 is a reply to message #8428] Wed, 06 May 2009 11:44 Go to previous message
Huagen Xu is currently offline  Huagen Xu
Messages: 9
Registered: May 2009
Location: Juelich
occasional visitor
From: *ikp.kfa-juelich.de
Dear Ralf,

Thanks for your reply. I found the problem now. This error was caused by grammer mistake. The default destructor "~PndLmdGeo()" was declared in the header file but not defined. The correct format shall be "~PndLmdGeo(){}" in the header file. But I missed "{}" sign before.

By the way the Lmd the short of Luminosity monitor detector. I am trying to creat a new geometry for luminosity detector.

Thanks!
Huagen Xu
Previous Topic: config.sh bug
Next Topic: Accessing for splitted simulation file
Goto Forum:
  


Current Time: Wed Nov 27 18:51:58 CET 2024

Total time taken to generate the page: 0.00751 seconds