[ndnSIM] No package 'libndn-cxx' found (when porting NLSR)

Nick Gordon nmgordon at memphis.edu
Tue Jun 27 09:11:45 PDT 2017


This problem is because of a recent huge, breaking change that was implemented in ndn-cxx, where the default security system used was 
switched from the legacy v1 to the newer v2 system. NLSR is pretty tied into the v1 system, so we're taking more time than was expected to 
move up to the newest versions of ndn-cxx and NFD.

For our own development, we have pegged the versions of ndn-cxx, NFD, and ChronoSync that NLSR uses to specific commits. You'll need to run 
git checkout in each of those directories to get these specific commits, then build, install, etc.:

Chronosync: 097bb448f46b8bd9a5c1f431e824f8f6a169b650
ndn-cxx: b555b00c280b9c9ed46f24a1fbebc73b720601af
NFD: f4056d0242536f85b7d7b4de1b5ac50dad65c233

NLSR can be at the latest commit.

Please note that this is a temporary solution, so you shouldn't become very reliant on this fix.

-Nick


On 06/27/17 11:00, Carl Zu wrote:
> Dear John,
>
> May I kindly ask you to explain a bit more?
>
> Thanks,
> C
>
> On Tue, Jun 27, 2017 at 5:49 PM, John Baugh <jpbaugh at umich.edu <mailto:jpbaugh at umich.edu>> wrote:
>
>     Where is the CryptoPP installed?  It has to be in the directory that the scripts are looking for it in or the script needs modified.
>
>     On Jun 27, 2017 11:47 AM, "Carl Zu" <carlzu8 at gmail.com <mailto:carlzu8 at gmail.com>> wrote:
>
>         Hi Ashlesh
>
>         you are right. Did install log4xx. Now, the error is :
>
>         Checking for 'libndn-cxx' : yes
>         Checking for 'liblog4cxx' : yes
>         Checking for OpenSSL library : yes
>         Checking for 'protobuf' : yes
>         Checking for program 'protoc' : /usr/bin/protoc
>         Checking for library pthread : yes
>         Checking for 'sqlite3' : yes
>         Checking Crypto++ lib : 5.6.1
>         Checking if CryptoPP library works : no
>         Checking if CryptoPP library works : no
>
>
>         -------------------------------------------------------------------------------------------------------------------------------------
>
>         Apart from the above question, can I, please, ask you the reason behind the error below (*when I build NFD*):
>
>         ../tools/nfdc/main.cpp:66: error: undefined reference to 'ndn::nfd::Controller::Controller(ndn::Face&,
>         ndn::security::v2::KeyChain&, ndn::security::Validator&)'
>         ../tools/nfdc/legacy-nfdc.cpp:48: error: undefined reference to 'ndn::nfd::Controller::Controller(ndn::Face&,
>         ndn::security::v2::KeyChain&, ndn::security::Validator&)'
>         ../tools/nfdc/status-report.cpp:60: error: undefined reference to 'ndn::nfd::Controller::Controller(ndn::Face&,
>         ndn::security::v2::KeyChain&, ndn::security::Validator&)'
>         collect2: error: ld returned 1 exit status
>
>         ../tools/ndn-autoconfig/base.cpp:36: error: undefined reference to 'ndn::nfd::Controller::Controller(ndn::Face&,
>         ndn::security::v2::KeyChain&, ndn::security::Validator&)'
>         collect2: error: ld returned 1 exit status
>
>         ../tools/nfd-autoreg.cpp:56: error: undefined reference to 'ndn::nfd::Controller::Controller(ndn::Face&,
>         ndn::security::v2::KeyChain&, ndn::security::Validator&)'
>         collect2: error: ld returned 1 exit status
>
>         /usr/include/c++/4.8/ext/new_allocator.h:120: error: undefined reference to 'ndn::Face::Face(std::shared_ptr<ndn::Transport>,
>         boost::asio::io_service&, ndn::security::v2::KeyChain&)'
>         ../daemon/nfd.cpp:146: error: undefined reference to 'ndn::mgmt::Dispatcher::Dispatcher(ndn::Face&, ndn::security::v2::KeyChain&,
>         ndn::security::SigningInfo const&, unsigned long)'
>         ../rib/rib-manager.cpp:68: error: undefined reference to 'ndn::nfd::Controller::Controller(ndn::Face&,
>         ndn::security::v2::KeyChain&, ndn::security::Validator&)'
>         ../rib/service.cpp:65: error: undefined reference to 'ndn::Face::Face(std::shared_ptr<ndn::Transport>, boost::asio::io_service&,
>         ndn::security::v2::KeyChain&)'
>         ../rib/service.cpp:66: error: undefined reference to 'ndn::mgmt::Dispatcher::Dispatcher(ndn::Face&, ndn::security::v2::KeyChain&,
>         ndn::security::SigningInfo const&, unsigned long)'
>         collect2: error: ld returned 1 exit status
>
>
>         Thanks Ashlesh.
>         C
>
>         On Tue, Jun 27, 2017 at 5:11 PM, Ashlesh Gawande (agawande) <agawande at memphis.edu <mailto:agawande at memphis.edu>> wrote:
>
>             Need to install log4cxx
>
>             http://named-data.net/doc/NLSR/current/INSTALL.html <http://named-data.net/doc/NLSR/current/INSTALL.html>
>
>
>             Ashlesh
>
>             --------------------------------------------------------------------------------------------------------------------------------------------
>             *From:* ndnSIM <ndnsim-bounces at lists.cs.ucla.edu <mailto:ndnsim-bounces at lists.cs.ucla.edu>> on behalf of Carl Zu
>             <carlzu8 at gmail.com <mailto:carlzu8 at gmail.com>>
>             *Sent:* Tuesday, June 27, 2017 5:25:14 AM
>             *To:* ndnsim at lists.cs.ucla.edu <mailto:ndnsim at lists.cs.ucla.edu>
>             *Subject:* Re: [ndnSIM] No package 'libndn-cxx' found (when porting NLSR)
>             One step ahead. Now I get:
>
>             Checking for 'liblog4cxx' : not found
>
>             Checking for 'liblog4cxx'
>             ['/usr/bin/pkg-config', '--cflags', '--libs', 'liblog4cxx']
>             err: Package liblog4cxx was not found in the pkg-config search path.
>             Perhaps you should add the directory containing `liblog4cxx.pc'
>             to the PKG_CONFIG_PATH environment variable
>             No package 'liblog4cxx' found
>
>             I have seen the previous messages exchanged regarding this issue in this forum. ndn-cxx, NFD, and NLSR are the latest
>             versions. This is very strange that I still get this error. Any guidance is highly appreciated.
>
>             Thanks.
>             C
>
>
>             On Tue, Jun 27, 2017 at 9:50 AM, Carl Zu <carlzu8 at gmail.com <mailto:carlzu8 at gmail.com>> wrote:
>
>                 Hi
>
>                 I am trying to port NLSR to ndnSIM according to https://github.com/3rd-ndn-hackathon/ndnSIM-NLSR/blob/master/PORTING.md
>                 <https://github.com/3rd-ndn-hackathon/ndnSIM-NLSR/blob/master/PORTING.md>
>
>                 However, when I configure (./waf configure --enable-examples --enable-nlsr), I get the following error:
>
>                 Checking for 'libndn-cxx' : not found
>                 The configuration failed
>                 (complete log in /home/carl/ndnSIM-NLSR/ns-3/build/config.log)
>
>
>                 When I go through config.log, it says:
>
>
>                 Checking for 'libndn-cxx'
>                 ['/usr/bin/pkg-config', '--cflags', '--libs', 'libndn-cxx']
>                 err: Package libndn-cxx was not found in the pkg-config search path.
>                 Perhaps you should add the directory containing `libndn-cxx.pc'
>                 to the PKG_CONFIG_PATH environment variable
>                 No package 'libndn-cxx' found
>
>
>                 Any guidance is highly appreciated.
>
>                 Thanks,
>
>                 C
>
>
>
>
>         _______________________________________________
>         ndnSIM mailing list
>         ndnSIM at lists.cs.ucla.edu <mailto:ndnSIM at lists.cs.ucla.edu>
>         http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim <http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim>
>
>
>
>
> _______________________________________________
> 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/20170627/2b8cec7d/attachment-0001.html>


More information about the ndnSIM mailing list