[ndnSIM] Dumb Requester

Amin Karami amin at ac.upc.edu
Mon Jun 24 04:03:28 PDT 2013


Hi Alex,
I did your organization, but there is an error message (after ./waf 
--run==ndn-dumb --vis):
from ../scratch/dumb-requester.h:23,
from ../scratch/dumb-requester.h:23,
from ../scratch/dumb-requester.h:23,
from ../scratch/dumb-requester.cc:23:
./ns3/ndn-app-face.h:53:1: error: expected class-name before ‘{’ token
./ns3/ndn-app-face.h:55:10: error: ‘TypeId’ does not name a type
./ns3/ndn-app-face.h:67:28: error: ‘ProtocolHandler’ has not been declared
./ns3/ndn-app-face.h:74:11: error: ‘ostream’ in namespace ‘std’ does not 
name a type
In file included from ../scratch/dumb-requester.h:32:0,
from ../src/ndnSIM/examples/custom-apps/dumb-requester.cc:23:
from ../src/ndnSIM/examples/custom-apps/dumb-requester.cc:23:
from ../src/ndnSIM/examples/custom-apps/dumb-requester.cc:23:
from ../src/ndnSIM/examples/custom-apps/dumb-requester.cc:23:
from ../src/ndnSIM/examples/custom-apps/dumb-requester.cc:23:
from ../src/ndnSIM/examples/custom-apps/dumb-requester.cc:23:
./ns3/ndn-interest.h:86:39: error: expected template-name before ‘<’ token
./ns3/ndn-interest.h:86:39: error: expected ‘{’ before ‘<’ token
./ns3/ndn-interest.h:86:39: error: expected unqualified-id before ‘<’ token
../src/ndnSIM/examples/custom-apps/dumb-requester.cc:122:1: error: 
expected ‘}’ at end of input
../src/ndnSIM/examples/custom-apps/dumb-requester.cc:122:1: error: 
expected ‘}’ at end of input
Waf: Leaving directory `/home/bluebit/Documents/NDN Simulator/ns-3/build'
Build failed
-> task in 'ndn-simple-with-content-freshness' failed (exit status 1):
{task 177151180: cxx dumb-requester.cc -> dumb-requester.cc.5.o}
['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', 
'-Wno-error=deprecated-declarations', '-fstrict-aliasing', 
'-Wstrict-aliasing', '-pthread', '-pthread', '-pthread', 
'-fno-strict-aliasing', '-fwrapv', '-fno-strict-aliasing', '-I.', 
'-I..', '-I/usr/include/gtk-2.0', 
'-I/usr/lib/i386-linux-gnu/gtk-2.0/include', '-I/usr/include/atk-1.0', 
'-I/usr/include/cairo', '-I/usr/include/gdk-pixbuf-2.0', 
'-I/usr/include/pango-1.0', '-I/usr/include/gio-unix-2.0', 
'-I/usr/include/glib-2.0', '-I/usr/lib/i386-linux-gnu/glib-2.0/include', 
'-I/usr/include/pixman-1', '-I/usr/include/freetype2', 
'-I/usr/include/libpng12', '-I/usr/include/libxml2', 
'-I/usr/local/include', '-I/usr/include/python2.7', 
'-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', 
'-DHAVE_IF_NETS_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_SQLITE3=1', 
'-DHAVE_IF_TUN_H=1', '-DHAVE_GSL=1', '-DNDEBUG', 
'../src/ndnSIM/examples/custom-apps/dumb-requester.cc', '-c', '-o', 
'src/ndnSIM/examples/custom-apps/dumb-requester.cc.5.o']


On 06/24/2013 07:40 ق.ظ, Alex Afanasyev wrote:
> Hi Amin,
>
> If you're using scratch/ folder, then you need to organize your code a little bit differently:
>
> mkdir scratch/ndn-dumb-scenario
> cp src/ndnSIM/examples/custom-apps/dumb-requester.* scratch/ndn-dumb-scenario/
> mv scratch/ndn-dumb.cc scratch/ndn-dumb-scenario/
>
> This way, NS-3 will know that all files under scratch/ndn-dumb-scenario/ need to be compiled together to create one scenario.
>
> ---
> Alex
>
> On Jun 22, 2013, at 6:08 AM, Amin Karami <amin at ac.upc.edu> wrote:
>
>> Hi!
>> I have ran dumb request by following code:
>>         ndn::AppHelper consumerHelper ("DumbRequester");
>>         consumerHelper.SetPrefix ("/dst1");
>>         consumerHelper.Install ("Src1");
>>
>> When i ran the simulator, an error occurs:
>>
>> assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: DumbRequester not found", file=../src/core/model/type-id.cc, line=419
>> terminate called without an active exception
>> Command ['/home/bluebit/Documents/NDN Simulator/ns-3/build/scratch/ndn-dumb', '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").
>>
>> _______________________________________________
>> ndnSIM mailing list
>> ndnSIM at lists.cs.ucla.edu
>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim



More information about the ndnSIM mailing list