Bugzilla – Bug 256
undefined symbol: _ZN3ns39Simulator17SetImplementationENS_3PtrINS_13SimulatorImplEEE
Last modified: 2008-07-24 06:39:11 UTC
-- Running NS-3 Python bindings unit tests... Traceback (most recent call last): File "utils/python-unit-tests.py", line 2, in <module> import ns3 File "/home/gjc/projects/ns-3/ns-3-dev/build/debug/bindings/python/ns3/__init__.py", line 2, in <module> from _ns3 import * ImportError: /home/gjc/projects/ns-3/ns-3-dev/build/debug/bindings/python/ns3/_ns3.so: undefined symbol: _ZN3ns39Simulator17SetImplementationENS_3PtrINS_13SimulatorImplEEE Command ['/usr/bin/python', 'utils/python-unit-tests.py'] exited with code 1 gjc@dark-tower:ns-3-dev$ c++filt -t _ZN3ns39Simulator17SetImplementationENS_3PtrINS_13SimulatorImplEEE ns3::Simulator::SetImplementation(ns3::Ptr<ns3::SimulatorImpl>) Bottom line, please try to declare methods that are not implemented, as it breaks Python bindings. Thanks. I'll manually remove it from the automatically scanned API definitions, for the time being.
I took the liberty of adding an empty implementation of that static method -> problem solved.