Build failed during building the "Open Flow Switch Module"

254 views
Skip to first unread message

Rohit Kalsekar

unread,
Jul 16, 2016, 9:42:30 PM7/16/16
to ns-3-users
Hello Everyone,

1) I wanted to configure the "Open Flow Switch Module" for obtaining NS-3 network switch code. I followed the instructions which are given in the link:
( https://www.nsnam.org/docs/release/3.13/models/html/openflow-switch.html ) and I got the correct message, which is "NS-3 OpenFlow Integration, as given in the step 3 of the link as well.   
2) However, when I ran the build command which is " ./waf build ", I got the following error message: 

./libns3.25-openflow-debug.so: undefined reference to `update_checksums'
collect2: error: ld returned 1 exit status
Waf: Leaving directory `/home/rkalse/repos/ns-3-allinone/ns-3.25/build'
Build failed
 -> task in 'openflow-switch' failed (exit status 1): 
{task 139807469943504: cxxprogram openflow-switch.cc.1.o -> ns3.25-openflow-switch-debug}
['/usr/bin/g++', '-pthread', '-pthread', 'src/openflow/examples/openflow-switch.cc.1.o', '-o', '/home/rkalse/repos/ns-3-allinone/ns-3.25/build/src/openflow/examples/ns3.25-openflow-switch-debug', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-Wl,--no-as-needed', '-L.', '-L/home/rkalse/openflow/build/default', '-L/home/rkalse/openflow/lib', '-lns3.25-openflow-debug', '-lns3.25-applications-debug', '-lns3.25-internet-debug', '-lns3.25-bridge-debug', '-lns3.25-mpi-debug', '-lns3.25-traffic-control-debug', '-lns3.25-csma-debug', '-lns3.25-config-store-debug', '-lns3.25-network-debug', '-lns3.25-stats-debug', '-lns3.25-core-debug', '-lrt', '-lgsl', '-lgslcblas', '-lm', '-lsqlite3', '-lopenflow', '-ldl', '-ldl', '-lxml2', '-lgtk-x11-2.0', '-lgdk-x11-2.0', '-lpangocairo-1.0', '-latk-1.0', '-lcairo', '-lgdk_pixbuf-2.0', '-lgio-2.0', '-lpangoft2-1.0', '-lpango-1.0', '-lgobject-2.0', '-lglib-2.0', '-lfontconfig', '-lfreetype', '-lxml2']

3) How to rectify this issue ? Do I need to include any other library file ?
4) Finally, I want to construct a basic network switch which can exchange data between several nodes. So, will the Open Flow Switch Model be a good choice or do I need to find any other module ?

Thanks in advance for your time.

Best Regards,
Rohit K

Rohit Kalsekar

unread,
Aug 2, 2016, 12:19:24 PM8/2/16
to ns-3-users
Can someone help me please ? Thanks

Tommaso Pecorella

unread,
Aug 2, 2016, 5:11:51 PM8/2/16
to ns-3-users
Hi,

if you're using 3.25, you need to use the 3.25 documentation.
Once you say it, it's quite obvious, isn't it ?


T.

Rohit Kalsekar

unread,
Aug 4, 2016, 1:07:37 PM8/4/16
to ns-3-users
Perfect.. It got installed successfully.. thank you sir for your reply.

Best regards,
Rohit K

Zaina Hamid

unread,
Oct 20, 2016, 12:52:53 PM10/20/16
to ns-3-users
Tommasco,

Does ns3 and OpenFlow's integration have issues working on a Mac, due to strlcpy? I seem to find that as a common reason but no solution as such. any advice?

Zaina Hamid

unread,
Oct 20, 2016, 12:53:28 PM10/20/16
to ns-3-users
Tommasco,

Does ns3 and OpenFlow's integration have issues working on a Mac, due to strlcpy? I seem to find that as a common reason but no solution as such. any advice?


Tommaso Pecorella

unread,
Oct 22, 2016, 11:27:33 AM10/22/16
to ns-3-users
Hi,

yes, OpenFlow does not compile on a Mac right now.
I'd suggest to check with Luciano Jerez Chaves <luc...@lrc.ic.unicamp.br>, who did a more advanced OpenFlow1.3 module, you can find it here: http://www.lrc.ic.unicamp.br/ofswitch13/
The library seems to be pre-built for a Debian host, but Luciano could add the sources to the repository (maybe).

Cheers,

T.

noel.fa...@gmail.com

unread,
Oct 24, 2016, 1:19:55 AM10/24/16
to ns-3-users
Hello Everyone,

I have asked Luciano Jerez Chaves personally and currently the OpenFlow 1.3 module does not compile under MAC due to the library being used to process OpenFlow packets.

Hope this helps.

Cheers,
Noel
Reply all
Reply to author
Forward
0 new messages