undefined symbol: _ZN14CLatticeMaster12setVerbosityEi

Asked by Richard Haslam on 2017-05-22

Hi,
I hope you can help. I have just installed esys-particle on xubuntu (CAELinux) and when I try run an example I get the the message below and nothing happens. I am not a native Linux user so I might have gone wrong soemwhere but I followed the install instructions and there were no errors. Please help.

CSubLatticeControler::initMPI()
Traceback (most recent call last):
  File "rot_compress.py", line 11, in <module>
    from esys.lsm import *
  File "/usr/local/lib/python2.7/dist-packages/esys/lsm/__init__.py", line 16, in <module>
    from esys.lsm.LsmPy import *
ImportError: /usr/local/lib/python2.7/dist-packages/esys/lsm/libLsmPy.so.0: undefined symbol: _ZN14CLatticeMaster12setVerbosityEi

Question information

Language:
English Edit question
Status:
Solved
For:
ESyS-Particle Edit question
Assignee:
No assignee Edit question
Solved by:
Richard Haslam
Solved:
2017-06-01
Last query:
2017-06-01
Last reply:
2017-05-26
SteffenAbe (s-abe) said : #1

Hi Richard,

this looks like a linker problem to me. In the version I have here that Symbol is also undefined in libLsmPy.so, but it is defined in libParallel.so which is linked to libLsmPy.so.
To check what is going on, could you post the output of:
nm -C libLsmPy.so | grep Verbosity
nm -C libParallel.so | grep Verbosity
ldd libLsmPy.so

N.B. Looking at the path to libLsmPy.so your libParallel.so should be located in /usr/local/lib/

Steffen

Hi Steffen,
Thank you for getting back to me. I did a complete fresh install of Xubuntu and Esys-Particle and it seems to work this time. Unfortunately I cant give you any further information on why it didn't work the first time.
Kind Regards,
Richard