named-data / NLSR

Named Data Link State Routing
https://docs.named-data.net/NLSR
GNU General Public License v3.0
48 stars 37 forks source link

Build fails because Keychain does not have makeCertificate member #15

Closed tanim-ics closed 2 years ago

tanim-ics commented 2 years ago

I am trying to build NLSR and it throws error as following:

[14/40] Compiling src/communication/sync-protocol-adapter.cpp
[15/40] Compiling src/conf-parameter.cpp
[21/40] Compiling src/stats-collector.cpp
[22/40] Compiling src/update/nfd-rib-commands.cpp
[33/40] Compiling src/statistics.cpp
../src/conf-parameter.cpp: In member function ‘nonstd::optional_lite::optional<ndn::security::v2::Certificate> nlsr::ConfParameter::initializeKey()’:
../src/conf-parameter.cpp:162:26: error: ‘class ndn::security::v2::KeyChain’ has no member named ‘makeCertificate’; did you mean ‘addCertificate’?
   auto cert = m_keyChain.makeCertificate(key, signingByIdentity(routerIdentity));
                          ^~~~~~~~~~~~~~~
                          addCertificate

../src/communication/sync-protocol-adapter.cpp: In member function ‘void nlsr::SyncProtocolAdapter::onPSyncUpdate(const std::vector<psync::MissingDataInfo>&)’:
../src/communication/sync-protocol-adapter.cpp:115:64: error: ‘const struct psync::MissingDataInfo’ has no member named ‘incomingFace’
     m_syncUpdateCallback(update.prefix, update.highSeq, update.incomingFace);
                                                                ^~~~~~~~~~~~

Waf: Leaving directory `/home/picocluster/Desktop/tm/NLSR/build'
Build failed
 -> task in 'nlsr-objects' failed with exit status 1 (run with -v to display more information)
 -> task in 'nlsr-objects' failed with exit status 1 (run with -v to display more information)

How can I solve the issue?