[ndnSIM] Compiling ndnSIM failed on Mac OSX 10.12

Alex Afanasyev aa at CS.UCLA.EDU
Thu Nov 10 12:34:56 PST 2016


I'm assuming you're using macports on macOS.  If so, you need to completely remove them and reinstall from scratch, as it needs to be done for every major macOS upgrade (see more here: https://trac.macports.org/wiki/Migration <https://trac.macports.org/wiki/Migration>).

---
Alex

> On Nov 2, 2016, at 2:38 AM, Mahdi Faghih Imani <smahdi.imani at googlemail.com> wrote:
> 
> Hi,
> 
> I have already installed ndnSIM on Mac OS X, but when I upgrade to 10.12 building is failed. I have updated MacPorts and HomeBrew and Installed boost, cryptopp, … libraries. Unfortunately, ndnSIM does’nt compile yet and I have get this error:
> 
> Mahdis-MBP:ndnSIM Imani$ cd ns-3/
> Mahdis-MBP:ns-3 Imani$ ./waf
> Waf: Entering directory `/Users/Imani/ndnSIM/ns-3/build'
> [2723/2800] Linking build/libns3-dev-ndnSIM-debug.dylib
> Undefined symbols for architecture x86_64:
>   "boost::re_detail::get_mem_block()", referenced from:
>       boost::re_detail::save_state_init::save_state_init(boost::re_detail::saved_state**, boost::re_detail::saved_state**) in interest-filter.cpp.3.o
>       boost::re_detail::perl_matcher<std::__1::__wrap_iter<char const*>, std::__1::allocator<boost::sub_match<std::__1::__wrap_iter<char const*> > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::extend_stack() in interest-filter.cpp.3.o
>       boost::re_detail::save_state_init::save_state_init(boost::re_detail::saved_state**, boost::re_detail::saved_state**) in face-uri.cpp.3.o
>       boost::re_detail::perl_matcher<std::__1::__wrap_iter<char const*>, std::__1::allocator<boost::sub_match<std::__1::__wrap_iter<char const*> > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::extend_stack() 
> .
> .
> .
> "CryptoPP::RandomPool::GenerateIntoBufferedTransformation(CryptoPP::BufferedTransformation&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned long long)", referenced from:
>       vtable for CryptoPP::AutoSeededRandomPool in sec-tpm-file.cpp.3.o
>       vtable for CryptoPP::AutoSeededRandomPool in random.cpp.3.o
>   "CryptoPP::StringStore::TransferTo2(CryptoPP::BufferedTransformation&, unsigned long long&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool)", referenced from:
>       CryptoPP::SourceTemplate<CryptoPP::StringStore>::Pump2(unsigned long long&, bool) in certificate.cpp.3.o
>       CryptoPP::SourceTemplate<CryptoPP::StringStore>::Pump2(unsigned long long&, bool) in public-key.cpp.3.o
>       CryptoPP::SourceTemplate<CryptoPP::StringStore>::Pump2(unsigned long long&, bool) in sec-tpm-file.cpp.3.o
>       CryptoPP::SourceTemplate<CryptoPP::StringStore>::Pump2(unsigned long long&, bool) in sec-tpm.cpp.3.o
>       CryptoPP::SourceTemplate<CryptoPP::StringStore>::Pump2(unsigned long long&, bool) in validator.cpp.3.o
>       CryptoPP::SourceTemplate<CryptoPP::StringStore>::Pump2(unsigned long long&, bool) in crypto.cpp.3.o
>       CryptoPP::SourceTemplate<CryptoPP::StringStore>::Pump2(unsigned long long&, bool) in string-helper.cpp.3.o
>       ...
>   
>   "CryptoPP::Filter::CopyRangeTo2(CryptoPP::BufferedTransformation&, unsigned long long&, unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) const", referenced from:
>       vtable for CryptoPP::FileSource in dummy-keychain.cpp.3.o
>       vtable for CryptoPP::SourceTemplate<CryptoPP::FileStore> in dummy-keychain.cpp.3.o
>       vtable for CryptoPP::InputRejecting<CryptoPP::Filter> in dummy-keychain.cpp.3.o
>       vtable for CryptoPP::Base64Decoder in dummy-keychain.cpp.3.o
>       vtable for CryptoPP::Unflushable<CryptoPP::Filter> in dummy-keychain.cpp.3.o
>       vtable for CryptoPP::StringSource in certificate.cpp.3.o
>       vtable for CryptoPP::SourceTemplate<CryptoPP::StringStore> in certificate.cpp.3.o
>       ...
>   "CryptoPP::ByteQueue::CopyRangeTo2(CryptoPP::BufferedTransformation&, unsigned long long&, unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) const", referenced from:
>       vtable for CryptoPP::DERSequenceEncoder in certificate-extension.cpp.3.o
>       vtable for CryptoPP::DERSequenceEncoder in certificate-subject-description.cpp.3.o
>       vtable for CryptoPP::DERSequenceEncoder in certificate.cpp.3.o
>       vtable for CryptoPP::DERSequenceEncoder in public-key.cpp.3.o
>       vtable for CryptoPP::DERSequenceEncoder in sec-tpm.cpp.3.o
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> 
> Waf: Leaving directory `/Users/Imani/ndnSIM/ns-3/build'
> Build failed
>  -> task in 'ns3-ndnSIM' failed (exit status 1): 
> 	{task 4426214416: cxxshlib ndn-app.cpp.3.o,ndn-consumer-batches.cpp.3.o,ndn-consumer-cbr.cpp.3.o,ndn-consumer-window.cpp.3.o,ndn-consumer-zipf-mandelbrot.cpp.3.o,ndn-consumer.cpp.3.o,ndn-producer.cpp.3.o,ndn-app-helper.cpp.3.o,ndn-
> .
> .
> .
> 
> 
> Isn’t ndnSIM campatible with Mac OS X 10.12?! Can you help me, please?
> 
> Thanks.
> 
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20161110/764c9a40/attachment.html>


More information about the ndnSIM mailing list