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
$ 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
$ ./wafHowever, 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