<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Whats the version of ndn-cxx and NFD? Can you try updating ndn-cxx and NFD (install them from source) and then compile NLSR again?</p>
<p><br>
</p>
<p>Ashlesh</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Ndn-interest <ndn-interest-bounces@lists.cs.ucla.edu> on behalf of Alexander Ni <alexni1992@gmail.com><br>
<b>Sent:</b> Tuesday, August 30, 2016 9:10:01 PM<br>
<b>To:</b> ndn-interest@lists.cs.ucla.edu<br>
<b>Subject:</b> [Ndn-interest] NLSR build error</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>Hello,<br>
<br>
</div>
I tried to build NLSR (0.3.0-6-g63bd034), but get next error.  <br>
<div>
<div><br>
[root@Producer1 NLSR]# ./waf configure<br>
Setting top to                           : /usr/ndn/NLSR <br>
Setting out to                           : /usr/ndn/NLSR/build <br>
Checking for 'g++' (C++ compiler)        : /usr/lib64/ccache/g++ <br>
Checking supported CXXFLAGS              : -std=c++11 <br>
Checking supported CXXFLAGS              : -O2 -g -pedantic -Wall -Wextra -Wno-unused-parameter -fdiagnostics-color
<br>
Checking for program 'doxygen'           : /usr/bin/doxygen <br>
Checking for program 'tar'               : /usr/bin/tar <br>
Checking for program 'sphinx-build'      : /usr/bin/sphinx-build <br>
Checking for program 'pkg-config'        : /usr/bin/pkg-config <br>
Checking for 'libndn-cxx'                : yes <br>
Checking for 'liblog4cxx'                : yes <br>
Checking for OpenSSL library             : yes <br>
Checking boost includes                  : 1.58.0 <br>
Checking boost libs                      : ok <br>
Checking for boost linkage               : ok <br>
Checking for 'protobuf'                  : yes <br>
Checking for program 'protoc'            : /usr/bin/protoc <br>
'configure' finished successfully (7.053s)<br>
[root@Producer1 NLSR]# ./waf<br>
Waf: Entering directory `/usr/ndn/NLSR/build'<br>
[ 1/57] Compiling src/<a href="http://version.hpp.in">version.hpp.in</a><br>
[ 2/57] Processing nsync/sync-state.proto<br>
[ 3/57] Processing sphinx_build [man]: docs/manpages/nlsr.conf.rst docs/manpages/nlsr.rst docs/manpages/nlsrc.rst docs/conf.py -> build/docs/manpages/nlsr.1 build/docs/manpages/nlsr.conf.5 build/docs/manpages/nlsrc.1<br>
<br>
[ 4/57] Compiling src/main.cpp<br>
[ 5/57] Compiling src/tlv/coordinate-lsa.cpp<br>
[ 6/57] Compiling src/tlv/adjacency.cpp<br>
[ 7/57] Compiling src/tlv/adjacency-lsa.cpp<br>
[ 8/57] Compiling src/sequencing-manager.cpp<br>
[ 9/57] Compiling src/route/routing-table-calculator.cpp<br>
[11/57] Compiling src/route/name-prefix-table-entry.cpp<br>
[11/57] Compiling src/route/map.cpp<br>
[12/57] Compiling src/publisher/lsdb-status-publisher.cpp<br>
[13/57] Compiling src/nlsr.cpp<br>
[14/57] Compiling src/logger.cpp<br>
[15/57] Compiling src/conf-file-processor.cpp<br>
[16/57] Compiling src/adjacency-list.cpp<br>
[17/57] Compiling nsync/sync-logging.cc<br>
[18/57] Compiling nsync/sync-full-leaf.cc<br>
[19/57] Compiling nsync/sync-diff-state.cc<br>
[20/57] Compiling nsync/sync-diff-leaf.cc<br>
[21/57] Compiling src/conf-parameter.cpp<br>
[22/57] Compiling src/lsa.cpp<br>
[23/57] Compiling src/nlsr-runner.cpp<br>
[24/57] Compiling src/route/fib-entry.cpp<br>
[25/57] Compiling src/route/name-prefix-table.cpp<br>
[26/57] Compiling src/route/routing-table.cpp<br>
[27/57] Compiling src/tlv/lsa-info.cpp<br>
[28/57] Compiling src/tlv/name-lsa.cpp<br>
[29/57] Compiling tools/nlsrc.cpp<br>
[30/57] Compiling src/tlv/lsdb-status.cpp<br>
[31/57] Compiling src/publisher/lsdb-dataset-interest-handler.cpp<br>
[32/57] Compiling src/publisher/lsa-publisher.cpp<br>
[33/57] Compiling src/name-prefix-list.cpp<br>
[34/57] Compiling src/communication/sync-logic-handler.cpp<br>
[35/57] Compiling nsync/sync-std-name-info.cc<br>
[36/57] Compiling nsync/sync-name-info.cc<br>
[37/57] Compiling nsync/sync-logic.cc<br>
[38/57] Compiling nsync/sync-full-state.cc<br>
[39/57] Compiling nsync/sync-digest.cc<br>
[40/57] Compiling nsync/sync-interest-table.cc<br>
[41/57] Compiling nsync/sync-leaf.cc<br>
[42/57] Compiling nsync/sync-seq-no.cc<br>
[43/57] Compiling nsync/sync-socket.cc<br>
[45/57] Compiling build/nsync/<a href="http://sync-state.pb.cc">sync-state.pb.cc</a><br>
[44/57] Compiling nsync/sync-state.cc<br>
[46/57] Compiling src/adjacent.cpp<br>
[47/57] Compiling src/hello-protocol.cpp<br>
[48/57] Compiling src/lsdb.cpp<br>
[49/57] Compiling src/route/face-map.cpp<br>
[50/57] Compiling src/route/fib.cpp<br>
[51/57] Compiling src/route/nexthop-list.cpp<br>
[52/57] Compiling src/route/nexthop.cpp<br>
[53/57] Compiling src/update/prefix-update-commands.cpp<br>
[54/57] Compiling src/update/prefix-update-processor.cpp<br>
[55/57] Compiling src/utility/face-controller.cpp<br>
../src/utility/face-controller.cpp: In member function ‘void nlsr::util::FaceController::onCanonizeFailure(const string&, const CommandSuccessCallback&, const CommandFailureCallback&, const ndn::util::FaceUri&)’:<br>
../src/utility/face-controller.cpp:79:13: error: ‘ControlResponse’ is not a member of ‘ndn::nfd’<br>
   onFailure(ndn::nfd::ControlResponse(CANONIZE_ERROR_CODE,<br>
             ^<br>
<br>
In file included from ../src/route/fib.cpp:32:0:<br>
../src/route/fib.hpp:166:41: error: ‘ControlResponse’ in namespace ‘ndn::nfd’ does not name a type<br>
   onRegistrationFailure(const ndn::nfd::ControlResponse& response,<br>
                                         ^<br>
../src/route/fib.hpp:173:43: error: ‘ControlResponse’ in namespace ‘ndn::nfd’ does not name a type<br>
   onUnregistrationFailure(const ndn::nfd::ControlResponse& response,<br>
                                           ^<br>
../src/route/fib.hpp:181:40: error: ‘ControlResponse’ in namespace ‘ndn::nfd’ does not name a type<br>
   onSetStrategyFailure(const ndn::nfd::ControlResponse& response,<br>
                                        ^<br>
../src/route/fib.cpp:470:44: error: ‘ControlResponse’ in namespace ‘ndn::nfd’ does not name a type<br>
 Fib::onRegistrationFailure(const ndn::nfd::ControlResponse& response,<br>
                                            ^<br>
../src/route/fib.cpp: In member function ‘void nlsr::Fib::onRegistrationFailure(const int&, const string&, const ndn::nfd::ControlParameters&, const string&, uint8_t)’:<br>
../src/route/fib.cpp:476:30: error: request for member ‘getText’ in ‘response’, which is of non-class type ‘const int’<br>
   _LOG_DEBUG(message << ": " << response.getText() << " (code: " << response.getCode() << ")");<br>
                              ^<br>
../src/route/fib.cpp:476:66: error: request for member ‘getCode’ in ‘response’, which is of non-class type ‘const int’<br>
   _LOG_DEBUG(message << ": " << response.getText() << " (code: " << response.getCode() << ")");<br>
                                                                  ^<br>
../src/route/fib.cpp: At global scope:<br>
../src/route/fib.cpp:491:46: error: ‘ControlResponse’ in namespace ‘ndn::nfd’ does not name a type<br>
 Fib::onUnregistrationFailure(const ndn::nfd::ControlResponse& response,<br>
                                              ^<br>
../src/route/fib.cpp: In member function ‘void nlsr::Fib::onUnregistrationFailure(const int&, const string&)’:<br>
../src/route/fib.cpp:494:30: error: request for member ‘getText’ in ‘response’, which is of non-class type ‘const int’<br>
   _LOG_DEBUG(message << ": " << response.getText() << " (code: " << response.getCode() << ")");<br>
                              ^<br>
../src/route/fib.cpp:494:66: error: request for member ‘getCode’ in ‘response’, which is of non-class type ‘const int’<br>
   _LOG_DEBUG(message << ": " << response.getText() << " (code: " << response.getCode() << ")");<br>
                                                                  ^<br>
../src/route/fib.cpp: At global scope:<br>
../src/route/fib.cpp:506:43: error: ‘ControlResponse’ in namespace ‘ndn::nfd’ does not name a type<br>
 Fib::onSetStrategyFailure(const ndn::nfd::ControlResponse& response,<br>
                                           ^<br>
<br>
../src/nlsr.cpp: In member function ‘void nlsr::Nlsr::destroyFaces()’:<br>
../src/nlsr.cpp:341:71: error: no matching function for call to ‘nlsr::Fib::destroyFace(const string&, std::_Bind_helper<false, void (nlsr::Nlsr::*)(const ndn::nfd::ControlParameters&), nlsr::Nlsr*, const std::_Placeholder<1>&>::type, std::_Bind_helper<false,
 void (nlsr::Nlsr::*)(const ndn::mgmt::ControlResponse&), nlsr::Nlsr*, const std::_Placeholder<1>&>::type)’<br>
                       std::bind(&Nlsr::onDestroyFaceFailure, this, _1));<br>
                                                                       ^<br>
In file included from ../src/nlsr.hpp:46:0,<br>
                 from ../src/nlsr.cpp:28:<br>
../src/route/fib.hpp:127:3: note: candidate: void nlsr::Fib::destroyFace(const string&, const CommandSucceedCallback&, const CommandFailCallback&)<br>
   destroyFace(const std::string& faceUri,<br>
   ^<br>
../src/route/fib.hpp:127:3: note:   no known conversion for argument 3 from ‘std::_Bind_helper<false, void (nlsr::Nlsr::*)(const ndn::mgmt::ControlResponse&), nlsr::Nlsr*, const std::_Placeholder<1>&>::type {aka std::_Bind<std::_Mem_fn<void (nlsr::Nlsr::*)(const
 ndn::mgmt::ControlResponse&)>(nlsr::Nlsr*, std::_Placeholder<1>)>}’ to ‘const CommandFailCallback& {aka const std::function<void(unsigned int, const std::__cxx11::basic_string<char>&)>&}’<br>
<br>
../src/hello-protocol.cpp: In member function ‘void nlsr::HelloProtocol::registerPrefixes(const ndn::Name&, const string&, double, const milliseconds&)’:<br>
../src/hello-protocol.cpp:215:62: error: no matching function for call to ‘nlsr::Fib::registerPrefix(const ndn::Name&, const string&, double&, const milliseconds&, ndn::nfd::RouteFlags, int, std::_Bind_helper<false, void (nlsr::HelloProtocol::*)(const ndn::nfd::ControlParameters&,
 const ndn::Name&, const boost::chrono::duration<long int, boost::ratio<1l, 1000l> >&), nlsr::HelloProtocol*, const std::_Placeholder<1>&, const ndn::Name&, const boost::chrono::duration<long int, boost::ratio<1l, 1000l> >&>::type, std::_Bind_helper<false,
 void (nlsr::HelloProtocol::*)(const ndn::mgmt::ControlResponse&, const ndn::Name&), nlsr::HelloProtocol*, const std::_Placeholder<1>&, const ndn::Name&>::type)’<br>
                                            this, _1, adjName));<br>
                                                              ^<br>
In file included from ../src/nlsr.hpp:46:0,<br>
                 from ../src/hello-protocol.cpp:24:<br>
../src/route/fib.hpp:105:3: note: candidate: void nlsr::Fib::registerPrefix(const ndn::Name&, const string&, uint64_t, const milliseconds&, uint64_t, uint8_t)<br>
   registerPrefix(const ndn::Name& namePrefix, const std::string& faceUri,<br>
   ^<br>
../src/route/fib.hpp:105:3: note:   candidate expects 6 arguments, 8 provided<br>
../src/route/fib.hpp:111:3: note: candidate: void nlsr::Fib::registerPrefix(const ndn::Name&, const string&, uint64_t, const milliseconds&, uint64_t, uint8_t, const CommandSucceedCallback&, const CommandFailCallback&)<br>
   registerPrefix(const ndn::Name& namePrefix,<br>
   ^<br>
../src/route/fib.hpp:111:3: note:   no known conversion for argument 8 from ‘std::_Bind_helper<false, void (nlsr::HelloProtocol::*)(const ndn::mgmt::ControlResponse&, const ndn::Name&), nlsr::HelloProtocol*, const std::_Placeholder<1>&, const ndn::Name&>::type
 {aka std::_Bind<std::_Mem_fn<void (nlsr::HelloProtocol::*)(const ndn::mgmt::ControlResponse&, const ndn::Name&)>(nlsr::HelloProtocol*, std::_Placeholder<1>, ndn::Name)>}’ to ‘const CommandFailCallback& {aka const std::function<void(unsigned int, const std::__cxx11::basic_string<char>&)>&}’<br>
<br>
Waf: Leaving directory `/usr/ndn/NLSR/build'<br>
Build failed<br>
 -> task in 'nlsr-objects' failed (exit status 1): <br>
    {task 140328346116752: cxx face-controller.cpp -> face-controller.cpp.3.o}<br>
['/usr/lib64/ccache/g++', '-O2', '-g', '-pedantic', '-Wall', '-Wextra', '-Wno-unused-parameter', '-fdiagnostics-color', '-std=c++11', '-I/usr/ndn/NLSR/build', '-I/usr/ndn/NLSR', '-I/usr/ndn/NLSR/build/src', '-I/usr/ndn/NLSR/src', '-I/usr/ndn/NLSR/build/nsync',
 '-I/usr/ndn/NLSR/nsync', '-I/usr/include', '-I/usr/local/include', '-DNDEBUG', '-DHAVE_NDN_CXX=1', '-DHAVE_LOG4CXX=1', '-DHAVE_PROTOBUF=1', '../src/utility/face-controller.cpp', '-c', '-o', '/usr/ndn/NLSR/build/src/utility/face-controller.cpp.3.o']<br>
 -> task in 'nlsr-objects' failed (exit status 1): <br>
    {task 140328346085264: cxx fib.cpp -> fib.cpp.3.o}<br>
['/usr/lib64/ccache/g++', '-O2', '-g', '-pedantic', '-Wall', '-Wextra', '-Wno-unused-parameter', '-fdiagnostics-color', '-std=c++11', '-I/usr/ndn/NLSR/build', '-I/usr/ndn/NLSR', '-I/usr/ndn/NLSR/build/src', '-I/usr/ndn/NLSR/src', '-I/usr/ndn/NLSR/build/nsync',
 '-I/usr/ndn/NLSR/nsync', '-I/usr/include', '-I/usr/local/include', '-DNDEBUG', '-DHAVE_NDN_CXX=1', '-DHAVE_LOG4CXX=1', '-DHAVE_PROTOBUF=1', '../src/route/fib.cpp', '-c', '-o', '/usr/ndn/NLSR/build/src/route/fib.cpp.3.o']<br>
 -> task in 'nlsr-objects' failed (exit status 1): <br>
    {task 140328346084432: cxx nlsr.cpp -> nlsr.cpp.3.o}<br>
['/usr/lib64/ccache/g++', '-O2', '-g', '-pedantic', '-Wall', '-Wextra', '-Wno-unused-parameter', '-fdiagnostics-color', '-std=c++11', '-I/usr/ndn/NLSR/build', '-I/usr/ndn/NLSR', '-I/usr/ndn/NLSR/build/src', '-I/usr/ndn/NLSR/src', '-I/usr/ndn/NLSR/build/nsync',
 '-I/usr/ndn/NLSR/nsync', '-I/usr/include', '-I/usr/local/include', '-DNDEBUG', '-DHAVE_NDN_CXX=1', '-DHAVE_LOG4CXX=1', '-DHAVE_PROTOBUF=1', '../src/nlsr.cpp', '-c', '-o', '/usr/ndn/NLSR/build/src/nlsr.cpp.3.o']<br>
 -> task in 'nlsr-objects' failed (exit status 1): <br>
    {task 140328346083600: cxx hello-protocol.cpp -> hello-protocol.cpp.3.o}<br>
['/usr/lib64/ccache/g++', '-O2', '-g', '-pedantic', '-Wall', '-Wextra', '-Wno-unused-parameter', '-fdiagnostics-color', '-std=c++11', '-I/usr/ndn/NLSR/build', '-I/usr/ndn/NLSR', '-I/usr/ndn/NLSR/build/src', '-I/usr/ndn/NLSR/src', '-I/usr/ndn/NLSR/build/nsync',
 '-I/usr/ndn/NLSR/nsync', '-I/usr/include', '-I/usr/local/include', '-DNDEBUG', '-DHAVE_NDN_CXX=1', '-DHAVE_LOG4CXX=1', '-DHAVE_PROTOBUF=1', '../src/hello-protocol.cpp', '-c', '-o', '/usr/ndn/NLSR/build/src/hello-protocol.cpp.3.o']<br>
<span style="color:rgb(0,0,0);font-family:arial,tahoma,verdana,sans-serif;font-size:13.3333px;line-height:18.2px"></span><br>
<span style="color:rgb(0,0,0);font-family:arial,tahoma,verdana,sans-serif;font-size:13.3333px;line-height:18.2px"></span>
<div>
<div class="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr"><span style="color:rgb(0,0,0);font-family:arial,tahoma,verdana,sans-serif;font-size:13.3333px;line-height:18.2px">Best Regards,</span><br>
<div><span style="color:rgb(0,0,0);font-family:arial,tahoma,verdana,sans-serif;font-size:13.3333px;line-height:18.2px">Alexander Ni</span></div>
<div><span style="color:rgb(0,0,0);font-family:arial,tahoma,verdana,sans-serif;font-size:13.3333px;line-height:18.2px"><br>
</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>