how to install ofswitch13 with ns3.29?

110 views
Skip to first unread message

Alex

unread,
Oct 22, 2019, 10:19:46 AM10/22/19
to ns-3-users
Recently, I want to use the ofswitch13 module, and I follow the guide of the site:http://www.lrc.ic.unicamp.br/ofswitch13/ step by step.Just like follows

$ cd ns-3.29/src 
$ git clone --recurse-submodules https://github.com/ljerezchaves/ofswitch13.git
$ cd ofswitch13 
$ git checkout 4.0.0 && git submodule update --recursive
$ cd lib/ofsoftswitch13 
$ ./boot.sh 
$ ./configure --enable-ns3-lib 
$ make
$ cd ../../../../
$ patch -p1 < src/ofswitch13/utils/ofswitch13-src-3_29.patch 
$ patch -p1 < src/ofswitch13/utils/ofswitch13-doc-3_29.patch
$ ./waf configure
$ ./waf
However, there is a error that tell me to recompile with -fPIC.
I have tried to change the CXXFLAGS , but still not work.
The error message has been attached as follows,Could anybody save from this problem?

/usr/bin/ld: /home/mxy/repos/ns-3-allinone/ns-3.29/src/ofswitch13/lib/ofsoftswitch13/udatapath/libns3ofswitch13.a(ofpbuf.o): relocation R_X86_64_PC32 against symbol `ofpbuf_prealloc_tailroom' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status

If there are any other message necessary, just ask me to write them down.
Thank you very much

차중혁

unread,
Jul 1, 2020, 3:58:40 AM7/1/20
to ns-3-users


2019년 10월 22일 화요일 오후 11시 19분 46초 UTC+9, Alex 님의 말:

차중혁

unread,
Jul 1, 2020, 8:55:13 PM7/1/20
to ns-3-...@googlegroups.com
yup, you have to care version of ofswitch, gcc, g++, ns-3

2020년 7월 1일 (수) 오후 4:58, 차중혁 <ckwn...@gmail.com>님이 작성:
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/b3c51b07-04b9-4e1e-a853-baa1bcae9531o%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages