[ndnSIM] Error Compiling ndn-cxx

stephen.m.dudley at L3Harris.com stephen.m.dudley at L3Harris.com
Thu Aug 29 06:06:38 PDT 2019


I am attempting to compile ndn-cxx from the 2.7 version. The compile fails, and don't understand the source of the problem.  It contains errors like the following.

no matching function for call to 'ndn::Face::Face(std::shared_ptr<ndn::util::DummyClientFace::Transport>&)'
no known conversion for argument 1 from 'std::shared_ptr<ndn::util::DummyClientFace::Transport>' to 'boost::asio::io_service&'
candidate expects 1 argument, 2 provided
candidate expects 0 arguments, 2 provided

Normally, I would think that this was a programming error, but since I assume that the download is from a build that actually works, that seems strange.  What else could be happening?  (I did have to download manually since connection to a repository without a recognized certificate is blocked by my company.  So, suggestions that I download again but this time use the git clone process instead won't really help me.)

The log messages are given below, if that provides any insights.

ndn-cxx> ./waf
Waf: Entering directory `/var/tmp/second/ndnSIM/ndn-cxx/build'
fatal: not a git repository (or any of the parent directories): .git
[ 34/139] Compiling src/util/regex/regex-top-matcher.cpp
[ 36/139] Compiling src/util/network-monitor.cpp
[ 37/139] Compiling src/util/indented-stream.cpp
[ 38/139] Compiling src/util/dummy-client-face.cpp
[ 39/139] Compiling src/util/config-file.cpp
../src/util/dummy-client-face.cpp: In constructor 'ndn::util::DummyClientFace::DummyClientFace(const ndn::util::DummyClientFace::Options&, std::shared_ptr<ndn::util::DummyClientFace::Transport>)':
../src/util/dummy-client-face.cpp:85:26: error: no matching function for call to 'ndn::Face::Face(std::shared_ptr<ndn::util::DummyClientFace::Transport>&)'
   , m_transport(transport)
                          ^
In file included from ../src/util/dummy-client-face.hpp:25:0,
                 from ../src/util/dummy-client-face.cpp:22:
../src/util/../face.hpp:149:3: note: candidate: ndn::Face::Face(boost::asio::io_service&)
   Face(boost::asio::io_service& ioService);
   ^~~~
../src/util/../face.hpp:149:3: note:   no known conversion for argument 1 from 'std::shared_ptr<ndn::util::DummyClientFace::Transport>' to 'boost::asio::io_service&'
../src/util/../face.hpp:120:3: note: candidate: ndn::Face::Face()
   Face();
   ^~~~
../src/util/../face.hpp:120:3: note:   candidate expects 0 arguments, 1 provided
../src/util/dummy-client-face.cpp: In constructor 'ndn::util::DummyClientFace::DummyClientFace(const ndn::util::DummyClientFace::Options&, std::shared_ptr<ndn::util::DummyClientFace::Transport>, boost::asio::io_service&)':
../src/util/dummy-client-face.cpp:93:26: error: no matching function for call to 'ndn::Face::Face(std::shared_ptr<ndn::util::DummyClientFace::Transport>&, boost::asio::io_service&)'
   , m_transport(transport)
                          ^
In file included from ../src/util/dummy-client-face.hpp:25:0,
                 from ../src/util/dummy-client-face.cpp:22:
../src/util/../face.hpp:149:3: note: candidate: ndn::Face::Face(boost::asio::io_service&)
   Face(boost::asio::io_service& ioService);
   ^~~~
../src/util/../face.hpp:149:3: note:   candidate expects 1 argument, 2 provided
../src/util/../face.hpp:120:3: note: candidate: ndn::Face::Face()
   Face();
   ^~~~
../src/util/../face.hpp:120:3: note:   candidate expects 0 arguments, 2 provided

Waf: Leaving directory `/var/tmp/second/ndnSIM/ndn-cxx/build'
Build failed
-> task in 'ndn-cxx' failed (exit status 1):
        {task 140358633750352: cxx dummy-client-face.cpp -> dummy-client-face.cpp.2.o}
['/usr/bin/g++', '-pedantic', '-Wall', '-O2', '-g', '-std=c++11', '-fPIC', '-include', '/var/tmp/second/ndnSIM/ndn-cxx/build/ndn-cxx.2', '-I/var/tmp/second/ndnSIM/ndn-cxx/build', '-I/var/tmp/second/ndnSIM/ndn-cxx', '-I/var/tmp/second/ndnSIM/ndn-cxx/build/src', '-I/var/tmp/second/ndnSIM/ndn-cxx/src', '-I/usr/include', '-I/usr/local/include', '-DNDEBUG', '../src/util/dummy-client-face.cpp', '-c', '-o', '/var/tmp/second/ndnSIM/ndn-cxx/build/src/util/dummy-client-face.cpp.2.o']

Stephen Dudley
801-594-2627


  

CONFIDENTIALITY NOTICE: This email and any attachments are for the sole use of the intended recipient and may contain material that is proprietary, confidential, privileged or otherwise legally protected or restricted under applicable government laws. Any review, disclosure, distributing or other use without expressed permission of the sender is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies without reading, printing, or saving.

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


More information about the ndnSIM mailing list