dll error

I decided to compile the cvs current, and when I managed to make it compile successfully I tried to run my program again ( was working with panda1.8 ) I revived the following:

Traceback (most recent call last):
  File "./client.py", line 5, in <module>
    import Level
  File "/home/zack/games/zwparchmanTank/Level.py", line 1, in <module>
    import TerrainClass
  File "/home/zack/games/zwparchmanTank/TerrainClass.py", line 1, in <module>
    from pandac.PandaModules import *
  File "/usr/local/share/panda3d/pandac/PandaModules.py", line 2, in <module>
    from libpandaexpressModules import *
  File "/usr/local/share/panda3d/pandac/libpandaexpressModules.py", line 1, in <module>
    from extension_native_helpers import *
  File "/usr/local/share/panda3d/pandac/extension_native_helpers.py", line 81, in <module>
    Dtool_PreloadDLL("libpandaexpress")
  File "/usr/local/share/panda3d/pandac/extension_native_helpers.py", line 79, in Dtool_PreloadDLL
    imp.load_dynamic(module, pathname)
ImportError: /usr/local/lib/panda3d/libpandaexpress.so: undefined symbol: _ZN10MemoryHook18overflow_heap_sizeEv

After some searching I found the symbol in libp3dtools.so, but I don’t have a clue how to resolve this to make my previously working game work again.

Perhaps your old build interfered with your new build? Try uninstalling all versions of Panda3D installed, remove the “built” directory in your panda3d source tree, and make a clean build.

after purging all references to panda3d in my /usr/ directory and installing the newly built panda3d I started receiving a slightly different error.

Traceback (most recent call last):
  File "./client.py", line 5, in <module>
    import Level
  File "/home/zack/games/zwparchmanTank/Level.py", line 1, in <module>
    import TerrainClass
  File "/home/zack/games/zwparchmanTank/TerrainClass.py", line 1, in <module>
    from pandac.PandaModules import *
  File "/usr/local/share/panda3d/pandac/PandaModules.py", line 2, in <module>
    from libpandaexpressModules import *
  File "/usr/local/share/panda3d/pandac/libpandaexpressModules.py", line 1, in <module>
    from extension_native_helpers import *
  File "/usr/local/share/panda3d/pandac/extension_native_helpers.py", line 81, in <module>
    Dtool_PreloadDLL("libpandaexpress")
  File "/usr/local/share/panda3d/pandac/extension_native_helpers.py", line 79, in Dtool_PreloadDLL
    imp.load_dynamic(module, pathname)
ImportError: libp3dtool.so.1.8: cannot open shared object file: No such file or directory

EDIT:

on irc rdb told me to type “sudo ldconfig” and retry. This worked.