Bug 936

Summary: Waf build error for python bindings on "AccessClass"
Product: ns-3 Reporter: He Wu <mdzz>
Component: python bindingsAssignee: Dean Armstrong <deanarm>
Status: RESOLVED FIXED    
Severity: normal CC: jpelkey, ns-bugs
Priority: P5    
Version: ns-3-dev   
Hardware: PC   
OS: Linux   

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.