You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build fails when building with ./waf, output as follow:
$ ./waf
Waf: Entering directory `/home/ulen/ns-allinone-3.38/ns-3.38/mini-ndn/dl/kua/build'
[ 1/12] Compiling src/worker.cpp
[ 3/12] Compiling src/auction.cpp
[ 9/12] Compiling src/client.cpp
../src/client.cpp: In member function ‘void kua::Client::sendFETCH(ndn::Name)’:
../src/client.cpp:101:37: error: ‘DelegationList’ is not a member of ‘ndn’
101 | interest.setForwardingHint(ndn::DelegationList({{15893, hint }}));
| ^~~~~~~~~~~~~~
../src/client.cpp: In member function ‘void kua::Client::populateStore(ndn::Name, std::istream&)’:
../src/client.cpp:251:72: error: no matching function for call to ‘ndn::Data::setContent(unsigned char*, size_t)’
251 | data->setContent(buffer.data(), static_cast<size_t>(nCharsRead));
| ^
In file included from /usr/local/include/ndn-cxx/face.hpp:25,
from ../src/client.cpp:1:
/usr/local/include/ndn-cxx/data.hpp:194:3: note: candidate: ‘ndn::Data& ndn::Data::setContent(const ndn::Block&)’
194 | setContent(const Block& block);
| ^~~~~~~~~~
/usr/local/include/ndn-cxx/data.hpp:194:3: note: candidate expects 1 argument, 2 provided
/usr/local/include/ndn-cxx/data.hpp:202:3: note: candidate: ‘ndn::Data& ndn::Data::setContent(nonstd::span_lite::span)’
202 | setContent(span value);
| ^~~~~~~~~~
/usr/local/include/ndn-cxx/data.hpp:202:3: note: candidate expects 1 argument, 2 provided
/usr/local/include/ndn-cxx/data.hpp:210:3: note: candidate: ‘ndn::Data& ndn::Data::setContent(ndn::ConstBufferPtr)’
210 | setContent(ConstBufferPtr value);
| ^~~~~~~~~~
/usr/local/include/ndn-cxx/data.hpp:210:3: note: candidate expects 1 argument, 2 provided
../src/auction.cpp: In member function ‘ndn::Block kua::AuctionMessage::wireEncode() const’:
../src/auction.cpp:31:28: error: ‘class ndn::encoding::Encoder’ has no member named ‘prependBlock’; did you mean ‘prependBytes’?
31 | size_t valLength = enc.prependBlock(VAR_V);
| ^~~~~~~~~~~~
../src/auction.cpp:31:28: note: in definition of macro ‘K_ENCODE_BLK’
31 | size_t valLength = enc.prependBlock(VAR_V);
| ^~~~~~~~~~~~
../src/auction.cpp:31:28: error: ‘class ndn::encoding::Encoder’ has no member named ‘prependBlock’; did you mean ‘prependBytes’?
31 | size_t valLength = enc.prependBlock(VAR_V);
| ^~~~~~~~~~~~
../src/auction.cpp:31:28: note: in definition of macro ‘K_ENCODE_BLK’
31 | size_t valLength = enc.prependBlock(VAR_V);
| ^~~~~~~~~~~~
../src/worker.cpp: In member function ‘void kua::Worker::onInterest(const ndn::InterestFilter&, const ndn::Interest&)’:
../src/worker.cpp:109:20: error: ‘const class ndn::Name’ has no member named ‘name’; did you mean ‘Name’?
109 | if (delegation.name.size() > 1 && delegation.name[-1].isNumber() &&
| ^~~~
| Name
../src/worker.cpp:109:50: error: ‘const class ndn::Name’ has no member named ‘name’; did you mean ‘Name’?
109 | if (delegation.name.size() > 1 && delegation.name[-1].isNumber() &&
| ^~~~
| Name
../src/worker.cpp:110:20: error: ‘const class ndn::Name’ has no member named ‘name’; did you mean ‘Name’?
110 | delegation.name[-1].toNumber() == CommandCodes::FETCH)
| ^~~~
| Name
Waf: Leaving directory `/home/ulen/ns-allinone-3.38/ns-3.38/mini-ndn/dl/kua/build'
Build failed
-> task in 'kua-client' failed with exit status 1 (run with -v to display more information)
-> task in 'kua-objects' failed with exit status 1 (run with -v to display more information)
-> task in 'kua-objects' failed with exit status 1 (run with -v to display more information)
The text was updated successfully, but these errors were encountered:
Build fails when building with ./waf, output as follow:
$ ./waf
Waf: Entering directory `/home/ulen/ns-allinone-3.38/ns-3.38/mini-ndn/dl/kua/build'
[ 1/12] Compiling src/worker.cpp
[ 3/12] Compiling src/auction.cpp
[ 9/12] Compiling src/client.cpp
../src/client.cpp: In member function ‘void kua::Client::sendFETCH(ndn::Name)’:
../src/client.cpp:101:37: error: ‘DelegationList’ is not a member of ‘ndn’
101 | interest.setForwardingHint(ndn::DelegationList({{15893, hint }}));
| ^~~~~~~~~~~~~~
../src/client.cpp: In member function ‘void kua::Client::populateStore(ndn::Name, std::istream&)’:
../src/client.cpp:251:72: error: no matching function for call to ‘ndn::Data::setContent(unsigned char*, size_t)’
251 | data->setContent(buffer.data(), static_cast<size_t>(nCharsRead));
| ^
In file included from /usr/local/include/ndn-cxx/face.hpp:25,
from ../src/client.cpp:1:
/usr/local/include/ndn-cxx/data.hpp:194:3: note: candidate: ‘ndn::Data& ndn::Data::setContent(const ndn::Block&)’
194 | setContent(const Block& block);
| ^~~~~~~~~~
/usr/local/include/ndn-cxx/data.hpp:194:3: note: candidate expects 1 argument, 2 provided
/usr/local/include/ndn-cxx/data.hpp:202:3: note: candidate: ‘ndn::Data& ndn::Data::setContent(nonstd::span_lite::span)’
202 | setContent(span value);
| ^~~~~~~~~~
/usr/local/include/ndn-cxx/data.hpp:202:3: note: candidate expects 1 argument, 2 provided
/usr/local/include/ndn-cxx/data.hpp:210:3: note: candidate: ‘ndn::Data& ndn::Data::setContent(ndn::ConstBufferPtr)’
210 | setContent(ConstBufferPtr value);
| ^~~~~~~~~~
/usr/local/include/ndn-cxx/data.hpp:210:3: note: candidate expects 1 argument, 2 provided
../src/auction.cpp: In member function ‘ndn::Block kua::AuctionMessage::wireEncode() const’:
../src/auction.cpp:31:28: error: ‘class ndn::encoding::Encoder’ has no member named ‘prependBlock’; did you mean ‘prependBytes’?
31 | size_t valLength = enc.prependBlock(VAR_V);
| ^~~~~~~~~~~~
../src/auction.cpp:31:28: note: in definition of macro ‘K_ENCODE_BLK’
31 | size_t valLength = enc.prependBlock(VAR_V);
| ^~~~~~~~~~~~
../src/auction.cpp:31:28: error: ‘class ndn::encoding::Encoder’ has no member named ‘prependBlock’; did you mean ‘prependBytes’?
31 | size_t valLength = enc.prependBlock(VAR_V);
| ^~~~~~~~~~~~
../src/auction.cpp:31:28: note: in definition of macro ‘K_ENCODE_BLK’
31 | size_t valLength = enc.prependBlock(VAR_V);
| ^~~~~~~~~~~~
../src/worker.cpp: In member function ‘void kua::Worker::onInterest(const ndn::InterestFilter&, const ndn::Interest&)’:
../src/worker.cpp:109:20: error: ‘const class ndn::Name’ has no member named ‘name’; did you mean ‘Name’?
109 | if (delegation.name.size() > 1 && delegation.name[-1].isNumber() &&
| ^~~~
| Name
../src/worker.cpp:109:50: error: ‘const class ndn::Name’ has no member named ‘name’; did you mean ‘Name’?
109 | if (delegation.name.size() > 1 && delegation.name[-1].isNumber() &&
| ^~~~
| Name
../src/worker.cpp:110:20: error: ‘const class ndn::Name’ has no member named ‘name’; did you mean ‘Name’?
110 | delegation.name[-1].toNumber() == CommandCodes::FETCH)
| ^~~~
| Name
Waf: Leaving directory `/home/ulen/ns-allinone-3.38/ns-3.38/mini-ndn/dl/kua/build'
Build failed
-> task in 'kua-client' failed with exit status 1 (run with -v to display more information)
-> task in 'kua-objects' failed with exit status 1 (run with -v to display more information)
-> task in 'kua-objects' failed with exit status 1 (run with -v to display more information)
The text was updated successfully, but these errors were encountered: