[ndnSIM] Build fails (./waf)

Chaim Rieger chaim.rieger at gmail.com
Wed Jun 17 09:26:35 PDT 2015


Thank you Alex,
The install worked. however can not run the sim

[crieger at localhost ns-3] $ sudo ./waf
Waf: Entering directory `/home/crieger/ndnSIM/ns-3/build'
Waf: Leaving directory `/home/crieger/ndnSIM/ns-3/build'
'build' finished successfully (4.288s)


Error message when attempting to run the sim

Waf: Entering directory `/home/crieger/ndnSIM/ns-3/build'
Waf: Leaving directory `/home/crieger/ndnSIM/ns-3/build'
'build' finished successfully (4.270s)
/home/crieger/ndnSIM/ns-3/build/src/ndnSIM/examples/ns3-dev-ndn-simple-debug: 
error while loading shared libraries: libndn-cxx.so.0.3.2: cannot open 
shared object file: No such file or directory
Command 
['/home/crieger/ndnSIM/ns-3/build/src/ndnSIM/examples/ns3-dev-ndn-simple-debug'] 
exited with code 127



I did
sudo ./waf uninstall
sudo ./waf clean
on both ndn-cxx and NFD and reinstalled them prior to compiling ndn-sim.



On 06/16/2015 02:51 PM, Alex Afanasyev wrote:
> 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

-- 
--
Chaim Rieger




More information about the ndnSIM mailing list