Bug 256

Summary: undefined symbol: _ZN3ns39Simulator17SetImplementationENS_3PtrINS_13SimulatorImplEEE
Product: ns-3 Reporter: Gustavo J. A. M. Carneiro <gjcarneiro>
Component: coreAssignee: ns-bugs <ns-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: pre-release   
Hardware: All   
OS: All   

Description Gustavo J. A. M. Carneiro 2008-07-23 06:34:06 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.
Comment 1 Gustavo J. A. M. Carneiro 2008-07-24 06:39:11 UTC
I took the liberty of adding an empty implementation of that static method -> problem solved.