Bug 936 - Waf build error for python bindings on "AccessClass"
Waf build error for python bindings on "AccessClass"
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: python bindings
ns-3-dev
PC Linux
: P5 normal
Assigned To: Dean Armstrong
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-06-04 16:42 UTC by He Wu
Modified: 2010-06-04 19:34 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description He Wu 2010-06-04 16:42:25 UTC
Change Wi-Fi "AccessClass" to "AcIndex" and change "EdcsTxopN::SetAccessClass" to "EdcsTxopN::SetAccessCategory" (Bug #910) are not included in python bindings.

Building latest ns-3-dev under Linux (ubuntu 9.10, x64) results the following error:
...
[1074/1203] cxx: build/debug/bindings/python/ns3_module_wifi.cc -> build/debug/bindings/python/ns3_module_wifi_3.o
debug/bindings/python/ns3_module_wifi.cc: In function ‘PyObject* _wrap_ns3QosUtilsMapTidToAc(PyObject*, PyObject*, PyObject*)’:
debug/bindings/python/ns3_module_wifi.cc:122: error: ‘AccessClass’ is not a member of ‘ns3’
...

Suggested fix:
Update file ns3_module_mesh.py, ns3_module_wifi.py, ns3_module_helper.py in  /bindings/python/apidefs/gcc-ILP32/ and /bindings/python/apidefs/gcc-ILP64/
Comment 1 Josh Pelkey 2010-06-04 18:34:22 UTC
(In reply to comment #0)
> Change Wi-Fi "AccessClass" to "AcIndex" and change "EdcsTxopN::SetAccessClass"
> to "EdcsTxopN::SetAccessCategory" (Bug #910) are not included in python
> bindings.
> 
> Building latest ns-3-dev under Linux (ubuntu 9.10, x64) results the following
> error:
> ...
> [1074/1203] cxx: build/debug/bindings/python/ns3_module_wifi.cc ->
> build/debug/bindings/python/ns3_module_wifi_3.o
> debug/bindings/python/ns3_module_wifi.cc: In function ‘PyObject*
> _wrap_ns3QosUtilsMapTidToAc(PyObject*, PyObject*, PyObject*)’:
> debug/bindings/python/ns3_module_wifi.cc:122: error: ‘AccessClass’ is not a
> member of ‘ns3’
> ...
> 
> Suggested fix:
> Update file ns3_module_mesh.py, ns3_module_wifi.py, ns3_module_helper.py in 
> /bindings/python/apidefs/gcc-ILP32/ and /bindings/python/apidefs/gcc-ILP64/

I just committed a python scan that should do the trick.  Please close if you can build now.