Bug 256 - undefined symbol: _ZN3ns39Simulator17SetImplementationENS_3PtrINS_13SimulatorImplEEE
undefined symbol: _ZN3ns39Simulator17SetImplementationENS_3PtrINS_13Simulator...
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: core
pre-release
All All
: P3 normal
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-07-23 06:34 UTC by Gustavo J. A. M. Carneiro
Modified: 2008-07-24 06:39 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.