在配置的时候,用以下命令 :
$ ./waf configure --enable-tests --enable-examples --with-nsclick=/home/gpf/click/ --with-openflow=/home/gpf/openflow --enable-sudo --enable-mpi--enable-static
$ ./waf
会显示错误:
openflow/build/default/libopenflow.a(switch_1.o): In function`main': switch.c:(.text+0x0): multiple definitionof `main'
个人估计, openflow与--enable-static,或者--enable-mpi有冲突。
改正:
$ ./waf configure --enable-tests --enable-examples --with-nsclick=/home/gpf/click/ --with-openflow=/home/gpf/openflow --enable-sudo
$ ./waf
OK
显示:
[1748/1749] SuidBuildTask
setting suid bit on executable/home/gpf/repos/ns-3-allinone/ns-3-dev/build/debug/src/emu/emu-sock-creator
[sudo] password for gpf:
[1749/1749] SuidBuildTask
setting suid bit on executable/home/gpf/repos/ns-3-allinone/ns-3-dev/build/debug/src/tap-bridge/tap-creator
Waf: Leaving directory`/home/gpf/repos/ns-3-allinone/ns-3-dev/build'
'build' finished successfully (26m20.503s)
Modules built:
aodv applications bridge
click config-store core
csma csma-layout dsdv
emu energy flow-monitor
internet lte mesh
mobility mpi netanim
network nix-vector-routing ns3tcp
ns3wifi olsr openflow
point-to-point point-to-point-layout propagation
spectrum stats tap-bridge
template test tools
topology-read uan virtual-net-device
visualizer wifi wimax
$ ./waf configure --enable-tests
$ ./waf
会显示错误:
openflow/build/default/libopenflow.a(switch_1.o): In function`main':
个人估计, openflow与--enable-static,或者--enable-mpi有冲突。
改正:
$ ./waf configure --enable-tests
$ ./waf
OK
显示:
[1748/1749] SuidBuildTask
setting suid bit on executable/home/gpf/repos/ns-3-allinone/ns-3-dev/build/debug/src/emu/emu-sock-creator
[sudo] password for gpf:
[1749/1749] SuidBuildTask
setting suid bit on executable/home/gpf/repos/ns-3-allinone/ns-3-dev/build/debug/src/tap-bridge/tap-creator
Waf: Leaving directory`/home/gpf/repos/ns-3-allinone/ns-3-dev/build'
'build' finished successfully (26m20.503s)
Modules built:
aodv
click
csma
emu
internet
mobility
network
ns3wifi
point-to-point
spectrum
template
topology-read
visualizer
本文详细描述了在配置NS-3环境时遇到的冲突问题及其解决方案,涉及openflow与静态编译或MPI的冲突,通过修改配置命令避免了错误,并成功构建了所需模块。
4560

被折叠的 条评论
为什么被折叠?



