Bob
unread,Oct 26, 2009, 1:11:02 AM10/26/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ns-3-users
Using the ns-allinone-3.6.tar.bz2 I try to build using the build.py
from the terminal on Mac OS 10.6, but get the following error...
[quote]
debug/bindings/python/ns3_module_flow_monitor.cc: In function
‘PyObject* _wrap_PyNs3FlowProbeFlowStats__get_bytesDropped
(PyNs3FlowProbeFlowStats*)’:
debug/bindings/python/ns3_module_flow_monitor.cc:749: error: no
matching function for call to ‘std::vector<long unsigned int,
std::allocator<long unsigned int> >::vector(std::vector<long long
unsigned int, std::allocator<long long unsigned int> >&)’
/usr/include/c++/4.2.1/bits/stl_vector.h:231: note: candidates are:
std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&)
[with _Tp = long unsigned int, _Alloc = std::allocator<long unsigned
int>]
/usr/include/c++/4.2.1/bits/stl_vector.h:214: note:
std::vector<_Tp, _Alloc>::vector(size_t, const _Tp&, const _Alloc&)
[with _Tp = long unsigned int, _Alloc = std::allocator<long unsigned
int>]
/usr/include/c++/4.2.1/bits/stl_vector.h:201: note:
std::vector<_Tp, _Alloc>::vector(const _Alloc&) [with _Tp = long
unsigned int, _Alloc = std::allocator<long unsigned int>]
debug/bindings/python/ns3_module_flow_monitor.cc: In function
‘PyObject* _wrap_PyNs3FlowMonitorFlowStats__get_bytesDropped
(PyNs3FlowMonitorFlowStats*)’:
debug/bindings/python/ns3_module_flow_monitor.cc:2675: error: no
matching function for call to ‘std::vector<long unsigned int,
std::allocator<long unsigned int> >::vector(std::vector<long long
unsigned int, std::allocator<long long unsigned int> >&)’
/usr/include/c++/4.2.1/bits/stl_vector.h:231: note: candidates are:
std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&)
[with _Tp = long unsigned int, _Alloc = std::allocator<long unsigned
int>]
/usr/include/c++/4.2.1/bits/stl_vector.h:214: note:
std::vector<_Tp, _Alloc>::vector(size_t, const _Tp&, const _Alloc&)
[with _Tp = long unsigned int, _Alloc = std::allocator<long unsigned
int>]
/usr/include/c++/4.2.1/bits/stl_vector.h:201: note:
std::vector<_Tp, _Alloc>::vector(const _Alloc&) [with _Tp = long
unsigned int, _Alloc = std::allocator<long unsigned int>]
Waf: Leaving directory `/Users/neptune/sim/ns-allinone-3.6/ns-3.6/
build'
Build failed
-> task failed (err #1):
{task: cxx ns3_module_flow_monitor.cc -> ns3_module_flow_monitor_3.o}
'/Users/neptune/sim/ns-allinone-3.6/ns-3.6/bindings/python/ns3/
__init__.py' -> '/Users/neptune/sim/ns-allinone-3.6/ns-3.6/build/debug/
bindings/python/ns3/__init__.py'
# Skip NSC (platform not supported)
# Build NS-3
Entering directory `./ns-3.6'
Note: configuring ns-3 without NSC (architecture not supported)
=> python waf configure --with-regression-traces ../ns-3.6-ref-
traces --with-pybindgen ../pybindgen-0.12.0.703
=> python waf
Traceback (most recent call last):
File "./build.py", line 117, in <module>
sys.exit(main(sys.argv))
File "./build.py", line 108, in main
build_ns3(config)
File "./build.py", line 56, in build_ns3
run_command(["python", "waf"])
File "/Users/neptune/sim/ns-allinone-3.6/util.py", line 24, in
run_command
raise CommandError("Command %r exited with code %i" % (argv,
retval))
util.CommandError: Command ['python', 'waf'] exited with code 1
[/quote]
$ gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646)
Copyright (C) 2007 Free Software Foundation, Inc.
Is ns-3.6 not working on Mac OS 10.6? Is there a way around this?
ns-3.5 builds perfectly and runs all following test correctly.
Your help or advise is greatly appreciated.
Thanks, Bob