[ndnSIM] Build fails (./waf)

Alex Afanasyev alexander.afanasyev at ucla.edu
Tue Jun 16 14:51:22 PDT 2015


Dear Chaim,

To make it compile, you just need to recompile ndn-cxx library as a shared library (this was a recent change in order to avoid several problem caused by the static library):

// clone ndn-cxx
./waf configure --enable-shared --disable-static
./waf
sudo ./waf install


Then reconfigure/build ndnSIM as usual.

---
Alex


> On Jun 16, 2015, at 12:43 PM, Chaim Rieger <chaim.rieger at gmail.com> wrote:
> 
> ON Fedora 22, running the latest ndn-cxx and NFD
> 
> Fails with the following error
> 
> [2370/2454] cxxprogram: build/examples/tcp/star.cc.5.o -> build/examples/tcp/ns3-dev-star-debug
> /bin/ld: /usr/local/lib64/libndn-cxx.a(data.cpp.2.o): relocation R_X86_64_32 against `__pthread_key_create' can not be used when making a shared object; recompile with -fPIC
> /usr/local/lib64/libndn-cxx.a: error adding symbols: Bad value
> collect2: error: ld returned 1 exit status

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20150616/cf7bba6d/attachment.bin>


More information about the ndnSIM mailing list