[ndnSIM] Linking failure during compilng an example under ndnSIM2.1

Alex Afanasyev aa at CS.UCLA.EDU
Wed Nov 11 01:50:59 PST 2015


I would guess that you have multiple versions of boost installed (1.54 and 1.57).  Did you install one of them from source?

I would try removing one and try to recompile everything.  Is it on Ubuntu or some other Linux distribution?  Which exactly version of scenario template (which commit) you're using?

--
Alex

> On Nov 7, 2015, at 8:55 AM, Shuai Gao <gaoxlh at gmail.com> wrote:
> 
> Hi all,
> I  have installed the ndnSIM 2.1  according to the guide during the "Getting Started".  I can run the examples sucecssfully.
> 
> Then I copy the example "ndn-simple.cpp" into "/ndnSIM2.1/scenario/scenarios" and rename it as "my-simple.cpp". After I run "./waf --run=my-simple", I get the following error:
> 
> Waf: Entering directory `/home/gsxlh/ndnSIM2.1/scenario/build'
> [2/2] Linking build/my-simple
> /usr/bin/ld: warning: libboost_thread.so.1.54.0, needed by /usr/local/lib/libns3-dev-ndnSIM-optimized.so, may conflict with libboost_thread.so.1.57.0
> /usr/bin/ld: warning: libboost_system.so.1.54.0, needed by /usr/local/lib/libns3-dev-ndnSIM-optimized.so, may conflict with libboost_system.so.1.57.0
> /usr/bin/ld: warning: libboost_random.so.1.54.0, needed by /usr/local/lib/libns3-dev-ndnSIM-optimized.so, may conflict with libboost_random.so.1.57.0
> /usr/bin/ld: warning: libboost_regex.so.1.54.0, needed by /usr/local/lib/libns3-dev-ndnSIM-optimized.so, may conflict with libboost_regex.so.1.57.0
> /usr/bin/ld: warning: libboost_chrono.so.1.54.0, needed by /usr/local/lib/libns3-dev-ndnSIM-optimized.so, may conflict with libboost_chrono.so.1.57.0
> /usr/bin/ld: warning: libboost_filesystem.so.1.54.0, needed by /usr/local/lib/libns3-dev-ndnSIM-optimized.so, may conflict with libboost_filesystem.so.1.57.0
> /usr/local/lib/libns3-dev-emu-optimized.so: undefined reference to `ns3::LogComponent::LogComponent(std::string const&, ns3::LogLevel)'
> collect2: error: ld returned 1 exit status
> 
> Waf: Leaving directory `/home/gsxlh/ndnSIM2.1/scenario/build'
> Build failed
>  -> task in 'my-simple' failed (exit status 1):
>     {task 3067429772L: cxxprogram my-simple.cpp.2.o -> my-simple}
> ['/usr/bin/g++', '-pthread', '-Wl,-Bdynamic', '-pthread', '-Wl,-Bdynamic', '-pthread', '-Wl,-Bdynamic', '-pthread', '-Wl,-Bdynamic', '-pthread', '-Wl,-Bdynamic' ......
> 
> 
> Can you help me fix this error?
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim

-------------- 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/20151111/34e0d4b1/attachment.bin>


More information about the ndnSIM mailing list