Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails when building with ./waf #1

Open
ulen2000 opened this issue Apr 25, 2023 · 1 comment
Open

Build fails when building with ./waf #1

ulen2000 opened this issue Apr 25, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@ulen2000
Copy link

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)

@pulsejet
Copy link
Owner

The code needs to be updated for the latest ndn-cxx

@pulsejet pulsejet added the bug Something isn't working label Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants