[ndnSIM] "Incompatible types" error in V2vTracer::Connect()

John McKendry john.mckendry at gmail.com
Wed Apr 3 10:28:09 PDT 2013


I am trying to run the car-push scenario from the car-to-car ndnSIM code
from https://github.com/cawka/ndnSIM-nom-rapid-car2car . The car-relay
example is working, but I get an "Incompatible Types" error when I try to
run car-push. The error comes from the first line in V2vTracer::Connect(),
which is a call to TraceConnectWithoutContext().

This is the error:
Waf: Entering directory
`/home/mzeal/ns-dev/ns-3/ndnSIM-nom-rapid-car2car-master/build'
Waf: Leaving directory
`/home/mzeal/ns-dev/ns-3/ndnSIM-nom-rapid-car2car-master/build'
'build' finished successfully (0.069s)
0s -1 ndn.Consumer:Consumer()
msg="Incompatible types. (feed to "c++filt -t" if needed)
got=ns3::MemPtrCallbackImpl<ns3::ndn::V2vTracer*, void
(ns3::ndn::V2vTracer::*)(std::string, ns3::Ptr<ns3::ndn::Interest const>,
ns3::Ptr<ns3::ndn::Face const>), void, std::string,
ns3::Ptr<ns3::ndn::Interest const>, ns3::Ptr<ns3::ndn::Face const>,
ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>
expected=ns3::CallbackImpl<void, ns3::Ptr<ns3::ndn::Interest const>,
ns3::Ptr<ns3::ndn::Face const>, ns3::empty, ns3::empty, ns3::empty,
ns3::empty, ns3::empty, ns3::empty, ns3::empty>*", file=./ns3/callback.h,
line=470
terminate called without an active exception

This is the gdb traceback:
Program received signal SIGABRT, Aborted.
0x00007ffff53ac445 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0  0x00007ffff53ac445 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffff53afbab in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007ffff5f1769d in __gnu_cxx::__verbose_terminate_handler() () from
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3  0x00007ffff5f15846 in ?? () from
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007ffff5f15873 in std::terminate() () from
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5  0x00007ffff71e7286 in ns3::Callback<void, ns3::Ptr<ns3::ndn::Interest
const>, ns3::Ptr<ns3::ndn::Face const>, ns3::empty, ns3::empty, ns3::empty,
ns3::empty, ns3::empty, ns3::empty, ns3::empty>::DoAssign
(this=0x7fffffffc560, other=...) at ./ns3/callback.h:468
#6  0x00007ffff71e6c46 in ns3::Callback<void, ns3::Ptr<ns3::ndn::Interest
const>, ns3::Ptr<ns3::ndn::Face const>, ns3::empty, ns3::empty, ns3::empty,
ns3::empty, ns3::empty, ns3::empty, ns3::empty>::Assign
(this=0x7fffffffc560, other=...) at ./ns3/callback.h:445
#7  0x00007ffff71e691e in ns3::TracedCallback<ns3::Ptr<ns3::ndn::Interest
const>, ns3::Ptr<ns3::ndn::Face const>, ns3::empty, ns3::empty, ns3::empty,
ns3::empty, ns3::empty, ns3::empty>::ConnectWithoutContext (this=0x71b990,
callback=...) at ./ns3/traced-callback.h:118
#8  0x00007ffff71ee362 in ns3::Accessor::ConnectWithoutContext
(this=0x6b6870, obj=0x71b940, cb=...) at ./ns3/trace-source-accessor.h:98
#9  0x00007ffff76df314 in ns3::ObjectBase::TraceConnectWithoutContext
(this=0x71b940, name=..., cb=...)
    at ../src/core/model/object-base.cc:277
#10 0x0000000000455bbd in ns3::ndn::V2vTracer::Connect (this=0x11eb4f0) at
../extensions/v2v-tracer.cc:113
#11 0x0000000000455a17 in ns3::ndn::V2vTracer::V2vTracer (this=0x11eb4f0,
os=..., node=...) at ../extensions/v2v-tracer.cc:99
#12 0x00000000004565f0 in boost::make_shared<ns3::ndn::V2vTracer,
boost::shared_ptr<std::basic_ofstream<char, std::char_traits<char> > >,
ns3::Ptr<ns3::Node> > (a1=..., a2=...) at
/usr/local/include/boost/smart_ptr/make_shared.hpp:696
#13 0x000000000045573d in ns3::ndn::V2vTracer::InstallAll (file=...) at
../extensions/v2v-tracer.cc:69
#14 0x000000000043065b in main (argc=1, argv=0x7fffffffdde8) at
../scenarios/car-pusher.cc:169

This is in a fresh install of ns-3.16, ndnSIM, and the car2car extensions
from two days ago in Ubuntu 12.04. The code in V2vTracer looks just like
the code in CarRelayTracer to my naive eye, and I don't know enough about
ns-3 tracing to know where to begin fixing it. Any help will be greatly
appreciated.

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20130403/609f93dd/attachment.html>


More information about the ndnSIM mailing list