<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"><meta http-equiv="Content-Type" content="text/html charset=utf-8"><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Spencer,<div class=""><br class=""></div><div class="">From what I understand, you're using ndn-cxx version 0.2.0 which is missing many new features needed by ndn-tools.  You need to use a more recent version (either master branch, beta1, or previous release) of ndn-cxx library in order for the code to be compilable.</div><div class=""><br class=""></div><div class="">---</div><div class="">Alex</div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Oct 1, 2015, at 9:48 AM, Spencer Lee <<a href="mailto:spencerlee@email.arizona.edu" class="">spencerlee@email.arizona.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Sorry - the error message is:<div class=""><br class=""><div class=""><div class=""><div class="">spen@spen-virtual-machine:~/NDN/ndn-tools$ ./waf</div><div class="">Waf: Entering directory `/home/spen/NDN/ndn-tools/build'</div><div class="">[ 3/40] Compiling core/version.cpp</div><div class="">[ 3/40] Compiling tools/peek/ndn-peek.cpp</div><div class="">[ 3/40] Compiling tools/peek/ndn-poke.cpp</div><div class="">[ 4/40] Compiling tools/dump/ndndump.cpp</div><div class="">../tools/dump/ndndump.cpp: In member function ‘void ndn::dump::Ndndump::onCapturedPacket(const pcap_pkthdr*, const uint8_t*)’:</div><div class="">../tools/dump/ndndump.cpp:163:65: error: no matching function for call to ‘ndn::Block::fromBuffer(const uint8_t*&, ssize_t&)’</div><div class="">   std::tie(isOk, block) = Block::fromBuffer(payload, payloadSize);</div><div class="">                                                                 ^</div><div class="">../tools/dump/ndndump.cpp:163:65: note: candidates are:</div><div class="">In file included from /usr/local/include/ndn-cxx/name-component.hpp:30:0,</div><div class="">                 from /usr/local/include/ndn-cxx/name.hpp:30,</div><div class="">                 from ../tools/dump/ndndump.hpp:42,</div><div class="">                 from ../tools/dump/ndndump.cpp:37:</div><div class="">/usr/local/include/ndn-cxx/encoding/block.hpp:160:3: note: static bool ndn::Block::fromBuffer(const ConstBufferPtr&, size_t, ndn::Block&)</div><div class="">   fromBuffer(const ConstBufferPtr& wire, size_t offset, Block& block);</div><div class="">   ^</div><div class="">/usr/local/include/ndn-cxx/encoding/block.hpp:160:3: note:   candidate expects 3 arguments, 2 provided</div><div class="">/usr/local/include/ndn-cxx/encoding/block.hpp:170:3: note: static bool ndn::Block::fromBuffer(const uint8_t*, size_t, ndn::Block&)</div><div class="">   fromBuffer(const uint8_t* buffer, size_t maxSize, Block& block);</div><div class="">   ^</div><div class="">/usr/local/include/ndn-cxx/encoding/block.hpp:170:3: note:   candidate expects 3 arguments, 2 provided</div><div class=""><br class=""></div><div class="">In file included from /usr/include/ndn-cxx/util/signal.hpp:25:0,</div><div class="">                 from /home/spen/NDN/ndn-tools/core/common.hpp:68,</div><div class="">                 from /home/spen/NDN/ndn-tools/core/version.hpp:23,</div><div class="">                 from ../tools/peek/ndn-poke.cpp:51:</div><div class="">/usr/include/ndn-cxx/util/signal-signal.hpp:108:4: error: #error "cannot declare Owner as friend"</div><div class=""> #  error "cannot declare Owner as friend"</div><div class="">    ^</div><div class="">../tools/peek/ndn-poke.cpp: In member function ‘boost::shared_ptr<ndn::Data> ndn::peek::NdnPoke::createDataPacket()’:</div><div class="">../tools/peek/ndn-poke.cpp:168:55: error: no matching function for call to ‘ndn::KeyChain::sign(ndn::Data&, ndn::security::SigningInfo)’</div><div class="">       m_keyChain.sign(*dataPacket, signingWithSha256());</div><div class="">                                                       ^</div><div class="">../tools/peek/ndn-poke.cpp:168:55: note: candidates are:</div><div class="">In file included from /home/spen/NDN/ndn-tools/core/common.hpp:63:0,</div><div class="">                 from /home/spen/NDN/ndn-tools/core/version.hpp:23,</div><div class="">                 from ../tools/peek/ndn-poke.cpp:51:</div><div class="">/usr/local/include/ndn-cxx/security/key-chain.hpp:179:3: note: template<class T> void ndn::KeyChain::sign(T&)</div><div class="">   sign(T& packet);</div><div class="">   ^</div><div class="">/usr/local/include/ndn-cxx/security/key-chain.hpp:179:3: note:   template argument deduction/substitution failed:</div><div class="">../tools/peek/ndn-poke.cpp:168:55: note:   candidate expects 1 argument, 2 provided</div><div class="">       m_keyChain.sign(*dataPacket, signingWithSha256());</div><div class="">                                                       ^</div><div class="">In file included from /home/spen/NDN/ndn-tools/core/common.hpp:63:0,</div><div class="">                 from /home/spen/NDN/ndn-tools/core/version.hpp:23,</div><div class="">                 from ../tools/peek/ndn-poke.cpp:51:</div><div class="">/usr/local/include/ndn-cxx/security/key-chain.hpp:190:3: note: template<class T> void ndn::KeyChain::sign(T&, const ndn::Name&)</div><div class="">   sign(T& packet, const Name& certificateName);</div><div class="">   ^</div><div class="">/usr/local/include/ndn-cxx/security/key-chain.hpp:190:3: note:   template argument deduction/substitution failed:</div><div class="">../tools/peek/ndn-poke.cpp:168:55: note:   cannot convert ‘ndn::security::signingWithSha256()()’ (type ‘ndn::security::SigningInfo’) to type ‘const ndn::Name&’</div><div class="">       m_keyChain.sign(*dataPacket, signingWithSha256());</div><div class="">                                                       ^</div><div class="">In file included from /home/spen/NDN/ndn-tools/core/common.hpp:63:0,</div><div class="">                 from /home/spen/NDN/ndn-tools/core/version.hpp:23,</div><div class="">                 from ../tools/peek/ndn-poke.cpp:51:</div><div class="">/usr/local/include/ndn-cxx/security/key-chain.hpp:202:3: note: ndn::Signature ndn::KeyChain::sign(const uint8_t*, size_t, const ndn::Name&)</div><div class="">   sign(const uint8_t* buffer, size_t bufferLength, const Name& certificateName);</div><div class="">   ^</div><div class="">/usr/local/include/ndn-cxx/security/key-chain.hpp:202:3: note:   candidate expects 3 arguments, 2 provided</div><div class="">/usr/local/include/ndn-cxx/security/key-chain.hpp:664:3: note: template<class T> void ndn::KeyChain::sign(T&, const ndn::IdentityCertificate&)</div><div class="">   sign(T& packet, const IdentityCertificate& certificate);</div><div class="">   ^</div><div class="">/usr/local/include/ndn-cxx/security/key-chain.hpp:664:3: note:   template argument deduction/substitution failed:</div><div class="">../tools/peek/ndn-poke.cpp:168:55: note:   cannot convert ‘ndn::security::signingWithSha256()()’ (type ‘ndn::security::SigningInfo’) to type ‘const ndn::IdentityCertificate&’</div><div class="">       m_keyChain.sign(*dataPacket, signingWithSha256());</div><div class="">                                                       ^</div><div class="">../tools/peek/ndn-poke.cpp:175:72: error: no matching function for call to ‘ndn::KeyChain::sign(ndn::Data&, ndn::security::SigningInfo)’</div><div class="">         m_keyChain.sign(*dataPacket, signingByIdentity(*m_identityName));</div><div class="">                                                                        ^</div><div class="">../tools/peek/ndn-poke.cpp:175:72: note: candidates are:</div><div class="">In file included from /home/spen/NDN/ndn-tools/core/common.hpp:63:0,</div><div class="">                 from /home/spen/NDN/ndn-tools/core/version.hpp:23,</div><div class="">                 from ../tools/peek/ndn-poke.cpp:51:</div><div class="">/usr/local/include/ndn-cxx/security/key-chain.hpp:736:1: note: template<class T> void ndn::KeyChain::sign(T&)</div><div class=""> KeyChain::sign(T& packet)</div><div class=""> ^</div><div class="">/usr/local/include/ndn-cxx/security/key-chain.hpp:736:1: note:   template argument deduction/substitution failed:</div><div class="">../tools/peek/ndn-poke.cpp:175:72: note:   candidate expects 1 argument, 2 provided</div><div class="">         m_keyChain.sign(*dataPacket, signingByIdentity(*m_identityName));</div><div class="">                                                                        ^</div><div class="">In file included from /home/spen/NDN/ndn-tools/core/common.hpp:63:0,</div><div class="">                 from /home/spen/NDN/ndn-tools/core/version.hpp:23,</div><div class="">                 from ../tools/peek/ndn-poke.cpp:51:</div><div class="">/usr/local/include/ndn-cxx/security/key-chain.hpp:190:3: note: template<class T> void ndn::KeyChain::sign(T&, const ndn::Name&)</div><div class="">   sign(T& packet, const Name& certificateName);</div><div class="">   ^</div><div class="">/usr/local/include/ndn-cxx/security/key-chain.hpp:190:3: note:   template argument deduction/substitution failed:</div><div class="">../tools/peek/ndn-poke.cpp:175:72: note:   cannot convert ‘ndn::security::signingByIdentity(const ndn::Name&)()’ (type ‘ndn::security::SigningInfo’) to type ‘const ndn::Name&’</div><div class="">         m_keyChain.sign(*dataPacket, signingByIdentity(*m_identityName));</div><div class="">                                                                        ^</div><div class="">In file included from /home/spen/NDN/ndn-tools/core/common.hpp:63:0,</div><div class="">                 from /home/spen/NDN/ndn-tools/core/version.hpp:23,</div><div class="">                 from ../tools/peek/ndn-poke.cpp:51:</div><div class="">/usr/local/include/ndn-cxx/security/key-chain.hpp:202:3: note: ndn::Signature ndn::KeyChain::sign(const uint8_t*, size_t, const ndn::Name&)</div><div class="">   sign(const uint8_t* buffer, size_t bufferLength, const Name& certificateName);</div><div class="">   ^</div><div class="">/usr/local/include/ndn-cxx/security/key-chain.hpp:202:3: note:   candidate expects 3 arguments, 2 provided</div><div class="">/usr/local/include/ndn-cxx/security/key-chain.hpp:664:3: note: template<class T> void ndn::KeyChain::sign(T&, const ndn::IdentityCertificate&)</div><div class="">   sign(T& packet, const IdentityCertificate& certificate);</div><div class="">   ^</div><div class="">/usr/local/include/ndn-cxx/security/key-chain.hpp:664:3: note:   template argument deduction/substitution failed:</div><div class="">../tools/peek/ndn-poke.cpp:175:72: note:   cannot convert ‘ndn::security::signingByIdentity(const ndn::Name&)()’ (type ‘ndn::security::SigningInfo’) to type ‘const ndn::IdentityCertificate&’</div><div class="">         m_keyChain.sign(*dataPacket, signingByIdentity(*m_identityName));</div><div class="">                                                                        ^</div><div class=""><br class=""></div><div class="">In file included from /usr/include/ndn-cxx/util/signal.hpp:25:0,</div><div class="">                 from /home/spen/NDN/ndn-tools/core/common.hpp:68,</div><div class="">                 from /home/spen/NDN/ndn-tools/core/version.hpp:23,</div><div class="">                 from ../tools/peek/ndn-peek.cpp:51:</div><div class="">/usr/include/ndn-cxx/util/signal-signal.hpp:108:4: error: #error "cannot declare Owner as friend"</div><div class=""> #  error "cannot declare Owner as friend"</div><div class="">    ^</div><div class=""><br class=""></div><div class="">In file included from /usr/include/ndn-cxx/util/signal.hpp:25:0,</div><div class="">                 from ../core/common.hpp:68,</div><div class="">                 from ../core/version.hpp:23,</div><div class="">                 from ../core/version.cpp:20:</div><div class="">/usr/include/ndn-cxx/util/signal-signal.hpp:108:4: error: #error "cannot declare Owner as friend"</div><div class=""> #  error "cannot declare Owner as friend"</div><div class="">    ^</div><div class=""><br class=""></div><div class="">Waf: Leaving directory `/home/spen/NDN/ndn-tools/build'</div><div class="">Build failed</div><div class=""> -> task in 'dump-objects' failed (exit status 1): </div><div class=""><span class="" style="white-space:pre">   </span>{task 140390751412688: cxx ndndump.cpp -> ndndump.cpp.1.o}</div><div class="">['/usr/bin/g++', '-pedantic', '-Wall', '-O2', '-g', '-std=c++11', '-I/home/spen/NDN/ndn-tools/build/tools/dump', '-I/home/spen/NDN/ndn-tools/tools/dump', '-I/home/spen/NDN/ndn-tools/build', '-I/home/spen/NDN/ndn-tools', '-I/usr/include', '-DNDEBUG', '-DHAVE_INTTYPES_H=1', '-DHAVE_STDINT_H=1', '-DHAVE_SYS_BITYPES_H=1', '-DHAVE_SYS_TYPES_H=1', '-DHAVE_NDN_CXX=1', '-DHAVE_PCAP=1', '../tools/dump/ndndump.cpp', '-c', '-o', '/home/spen/NDN/ndn-tools/build/tools/dump/ndndump.cpp.1.o']</div><div class=""> -> task in '../../bin/ndnpoke' failed (exit status 1): </div><div class=""><span class="" style="white-space:pre">        </span>{task 140390751412944: cxx ndn-poke.cpp -> ndn-poke.cpp.2.o}</div><div class="">['/usr/bin/g++', '-pedantic', '-Wall', '-O2', '-g', '-std=c++11', '-I/home/spen/NDN/ndn-tools/build', '-I/home/spen/NDN/ndn-tools', '-I/usr/include', '-DNDEBUG', '-DHAVE_INTTYPES_H=1', '-DHAVE_STDINT_H=1', '-DHAVE_SYS_BITYPES_H=1', '-DHAVE_SYS_TYPES_H=1', '-DHAVE_NDN_CXX=1', '../tools/peek/ndn-poke.cpp', '-c', '-o', '/home/spen/NDN/ndn-tools/build/tools/peek/ndn-poke.cpp.2.o']</div><div class=""> -> task in '../../bin/ndnpeek' failed (exit status 1): </div><div class=""><span class="" style="white-space:pre">     </span>{task 140390751402576: cxx ndn-peek.cpp -> ndn-peek.cpp.1.o}</div><div class="">['/usr/bin/g++', '-pedantic', '-Wall', '-O2', '-g', '-std=c++11', '-I/home/spen/NDN/ndn-tools/build', '-I/home/spen/NDN/ndn-tools', '-I/usr/include', '-DNDEBUG', '-DHAVE_INTTYPES_H=1', '-DHAVE_STDINT_H=1', '-DHAVE_SYS_BITYPES_H=1', '-DHAVE_SYS_TYPES_H=1', '-DHAVE_NDN_CXX=1', '../tools/peek/ndn-peek.cpp', '-c', '-o', '/home/spen/NDN/ndn-tools/build/tools/peek/ndn-peek.cpp.1.o']</div><div class=""> -> task in 'core-objects' failed (exit status 1): </div><div class=""><span class="" style="white-space:pre">  </span>{task 140390751796496: cxx version.cpp -> version.cpp.1.o}</div><div class="">['/usr/bin/g++', '-pedantic', '-Wall', '-O2', '-g', '-std=c++11', '-I/usr/include', '-DNDEBUG', '-DHAVE_INTTYPES_H=1', '-DHAVE_STDINT_H=1', '-DHAVE_SYS_BITYPES_H=1', '-DHAVE_SYS_TYPES_H=1', '-DHAVE_NDN_CXX=1', '../core/version.cpp', '-c', '-o', '/home/spen/NDN/ndn-tools/build/core/version.cpp.1.o']</div></div></div></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Thu, Oct 1, 2015 at 8:57 AM, Alex Afanasyev <span dir="ltr" class=""><<a href="mailto:alexander.afanasyev@ucla.edu" target="_blank" class="">alexander.afanasyev@ucla.edu</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Spencer,<br class="">
<br class="">
Would you mind copying/pasting the error message?<br class="">
<br class="">
---<br class="">
Alex<br class="">
<div class=""><div class="h5"><br class="">
> On Oct 1, 2015, at 8:10 AM, Spencer Lee <<a href="mailto:spencerlee@email.arizona.edu" class="">spencerlee@email.arizona.edu</a>> wrote:<br class="">
><br class="">
> Hi,<br class="">
><br class="">
> If anyone gets a chance to respond,<br class="">
> I was wondering if anyone has received the same build errors and has a solution:<br class="">
><br class="">
> I received build errors when trying to compile ndn-tools on the way to installation - using ./waf<br class="">
> I was wondering if similar issues have been found before,<br class="">
> compile fails when trying ndndump. Deprecated repositories for ndndump and ndn-tlv-ping also gave build errors when trying to ./waf<br class="">
><br class="">
> I am using a vm of Ubuntu 14.04.3<br class="">
> gcc version is 4.8.4<br class="">
> NFD and ndn-cxx seemed to have installed fine,<br class="">
> last git commit hashes for NFD, ndn-cxx and ndn-tools are 62a939, ec0499 and ef1e27, respectively.<br class="">
><br class="">
> Thank you very much,<br class="">
> Spencer Lee<br class="">
><br class="">
><br class="">
</div></div>> _______________________________________________<br class="">
> Nfd-dev mailing list<br class="">
> <a href="mailto:Nfd-dev@lists.cs.ucla.edu" class="">Nfd-dev@lists.cs.ucla.edu</a><br class="">
> <a href="http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev" rel="noreferrer" target="_blank" class="">http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev</a><br class="">
</blockquote></div><br class=""></div>
_______________________________________________<br class="">Nfd-dev mailing list<br class=""><a href="mailto:Nfd-dev@lists.cs.ucla.edu" class="">Nfd-dev@lists.cs.ucla.edu</a><br class=""><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev" class="">http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev</a><br class=""></div></blockquote></div><br class=""></div></body></html>