[ndnSIM] Error compiling ndnSIM

Elídio Tomás da Silva elidio.silva at unilurio.ac.mz
Sat Mar 20 19:59:47 PDT 2021


Dear Alex,

The "quick fix" did indeed fix the problem.

Thanks.


On Sun, Mar 21, 2021, 02:28 Alex Afanasyev <aa at cs.fiu.edu> wrote:

> Hmm. Interesting. As a quick fix, add std:: to make_shared in failing
> places (std::make_shared), this should fix it.   If it works, will push the
> patch.
>
> ---
> Alex
>
> On Mar 20, 2021, at 10:02 PM, Elídio Tomás da Silva <
> elidio.silva at unilurio.ac.mz> wrote:
>
> 
> Dear ndnSIM team,
>
> I've been working with ndnSIM without major problems, but yesterday I
> updated GCC from "9.3.0" to version "10.2.0", on Gentoo Linux, and now I
> get the following error message:
>
>
> ---cut----------------------------------------------------------------------
> ../src/ndnSIM/ndn-cxx/ndn-cxx/util/scheduler.cpp: In member function
> ‘ndn::scheduler::EventId ndn::scheduler::Scheduler::schedule(boost::chrono::nanoseconds,
> ndn::scheduler::EventCallback)’:
> ../src/ndnSIM/ndn-cxx/ndn-cxx/util/scheduler.cpp:100:106: error: call of
> overloaded
> ‘make_shared<ndn::scheduler::EventInfo>(boost::chrono::nanoseconds&,
> std::remove _reference<std::function<void()>&>::type, uint32_t)’ is
> ambiguous
>
> 100 | auto i = m_queue.insert(make_shared<EventInfo>(after,
> std::move(callback), *ns3::Simulator::GetContext()*));
>
> ---cut-----------------------------------------------------------------------
>
> On another compilation tentative, I got a similar a error on "std::tie(group,
> std::ignore) =
> m_groups.insert(make_shared<StaticTrustAnchorGroup>(m_anchors, groupId));",
> from function "TrustAnchorContainer::insert(const std::string& groupId,
> Certificate&& cert)"
>
> Well, I can downgrade the GCC but maybe it is better to present this
> error here, and ask for guidance on correcting the issue, given that it
> should be a general issue with this GCC version.
>
> PS: ns3 without ndnSIM compiles without errors.
>
> Best regards.
>
>
>
>
> --
> Elídio Tomás da Silva
> Faculdade de Engenharia - Universidade Lúrio
> Contactos: +351 91 4823487 / +258 84 4845016
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20210321/1de535e5/attachment.html>


More information about the ndnSIM mailing list