[Mini-NDN] ndn-tools build failed on Ubuntu 16.04 LTS

Peter Maynard pmaynard01 at qub.ac.uk
Wed Nov 6 02:39:39 PST 2019


Hi Zakaria, 

Have you tried running sudo ./install.sh -a ?
This will perform all the steps for you and install the dependencies.
If you want to do it manually, you can check out that script, it will
show you what libraries are needed.

Your error below may be related to the boost libs. Make sure you have
them installed and also run 'sudo ldconfig' which updated the shared
library cache. 

Regards, 
Pete

On Wed, 2019-11-06 at 11:08 +0100, Zakaria SABIR wrote:
> Hi,
> 
> I have a problem with the build of ndn-tools. In fact, it's my first
> time installing mini-ndn, so I am following the tutorial on the
> official website (
> http://minindn.memphis.edu/mini_ndn_installation.php). The command
> "./waf configure" ran successfully, but the next command "./waf"
> doesn't. I have always errors:
> 
> zakaria at ubuntu:~/mini-ndn/ndn-tools$ sudo ./waf configure
> [sudo] password for zakaria: 
> Setting top to                           : /home/zakaria/mini-
> ndn/ndn-tools 
> Setting out to                           : /home/zakaria/mini-
> ndn/ndn-tools/build 
> Checking for 'g++' (C++ compiler)        : /usr/bin/g++ 
> Checking C++ compiler version            : 5.4.0 
> Checking supported CXXFLAGS              : -std=c++14 
> Checking supported LINKFLAGS             : -fuse-ld=gold 
> Checking for program 'sphinx-build'      : /usr/local/bin/sphinx-
> build 
> Checking for program 'pkg-config'        : /usr/bin/pkg-config 
> Checking for 'libndn-cxx'                : yes 
> Checking for program 'dpkg-architecture' : /usr/bin/dpkg-
> architecture 
> Checking boost includes                  : 1.58.0 
> Checking boost libs                      : boost_system
> boost_program_options boost_filesystem 
> Checking for boost linkage               : ok 
> Checking for 'libpcap'                   : yes 
> Checking if struct tcphdr has member th_off  : yes 
> Checking if struct udphdr has member uh_ulen : yes 
> Checking supported CXXFLAGS                  : -O2 -g -pedantic -Wall
> -Wextra -Wnon-virtual-dtor -Wno-unused-parameter -fdiagnostics-color 
> Checking supported LINKFLAGS                 : -Wl,-O1 
> Tools to build                               : peek, dump, dissect,
> ping, chunks, dissect-wireshark 
> 'configure' finished successfully (16.311s)
> zakaria at ubuntu:~/mini-ndn/ndn-tools$ sudo ./waf
> Waf: Entering directory `/home/zakaria/mini-ndn/ndn-tools/build'
> [ 5/39] Linking build/bin/ndnpeek
> ../tools/peek/ndnpeek/ndnpeek.hpp:61: error: undefined reference to
> 'ndn::scheduler::Scheduler::~Scheduler()'
> ../tools/peek/ndnpeek/main.cpp:182: error: undefined reference to
> 'ndn::io::loadBuffer(std::istream&, ndn::io::IoEncoding)'
> ../tools/peek/ndnpeek/main.cpp:197: error: undefined reference to
> 'ndn::io::loadBuffer(std::istream&, ndn::io::IoEncoding)'
> ../tools/peek/ndnpeek/ndnpeek.cpp:38: error: undefined reference to
> 'ndn::scheduler::Scheduler::Scheduler(boost::asio::io_service&)'
> ../tools/peek/ndnpeek/ndnpeek.cpp:70: error: undefined reference to
> 'ndn::Interest::setHopLimit(nonstd::optional_lite::optional<unsigned
> char>)'
> ../tools/peek/ndnpeek/ndnpeek.cpp:51: error: undefined reference to
> 'ndn::scheduler::Scheduler::schedule(boost::chrono::duration<long,
> boost::ratio<1l, 1000000000l> >, std::function<void ()>)'
> collect2: error: ld returned 1 exit status
> 
> Waf: Leaving directory `/home/zakaria/mini-ndn/ndn-tools/build'
> Build failed
>  -> task in 'ndnpeek' failed with exit status 1 (run with -v to
> display more information)
> 
> Could you help me, please?
> Thanks in advance.
> 
> --
> ==============================================================
> Zakaria SABIR, Ph.D. Student, Computer Sciences, Connected Vehicles,
> Systems Engineering Laboratory, National School of Applied Sciences, 
>     
> Ibn Tofail University, Kenitra, Morocco                             
>                                
> zaksabir at gmail.com ; zakaria.sabir at uit.ac.ma                         
>              
> ==============================================================
> P Consider the environment. Please don't print this e-mail unless you
> have to.
>> 
> _______________________________________________
> Mini-NDN mailing list
> Mini-NDN at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn
-- 
Pete Maynard 
https://petermaynard.co.uk 
GnuPGP: 0x248FC016ABB8D69D 


More information about the Mini-NDN mailing list