<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Hi Glai,</div><div><br></div>You didn't follow my suggestion.  I suggested to create a directory and put all your new files in there:<div><br></div><div>scratch/your-scenario/<a href="http://dumb-requester.cc">dumb-requester.cc</a></div><div>scratch/your-scenario/<a href="http://your-scenario.cc">your-scenario.cc</a></div><div><br></div><div>NS-3's waf script treats differently just files that are put into scratch/ folder and directories.</div><div><br></div><div>---</div><div>Alex<br><div><br></div><div><br></div><div><div><div>On May 4, 2014, at 4:10 AM, Glai Amira <<a href="mailto:glai.amira@yahoo.fr">glai.amira@yahoo.fr</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div style="background-color: rgb(255, 255, 255); font-family: 'times new roman', 'new york', times, serif; font-size: 14pt;"><div class="" style=""><span class="" style="">hi Alex,</span></div><div style="background-color: transparent" class=""><span style="font-family: 'times new roman', 'new york', times, serif; font-size: 19px; font-style: normal;" class="">i try the solution but i have this error: "</span><span style="background-color: transparent; font-style: italic; color: rgb(157, 24, 17)" class="">Build failed</span></div><div style="background-color: transparent" class=""><span style="font-style: italic; color: rgb(157, 24, 17)" class=""> -> task in 'dumb-requester' failed (exit status 1): </span></div><div style="background-color: transparent" class=""><span style="font-style: italic; color: rgb(157, 24, 17)" class=""><span class="" style="white-space:pre">    </span>{task 152672332: cxx <a href="http://dumb-requester.cc">dumb-requester.cc</a> ->
 <a href="http://dumb-requester.cc">dumb-requester.cc</a>.5.o}</span></div><div style="background-color: transparent" class=""><span style="font-style: italic; color: rgb(157, 24, 17)" class="">['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-pthread', '-pthread', '-fno-strict-aliasing', '-fwrapv', '-fstack-protector', '-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/harfbuzz', '-I/usr/include/libxml2', '-I/usr/include', '-I/usr/include/python2.7', '-I/usr/include/i386-linux-gnu/python2.7', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE',
 '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_SQLITE3=1', '-DHAVE_IF_TUN_H=1', '-DHAVE_GSL=1', '-DNDEBUG', '-D_FORTIFY_SOURCE=2', '../scratch/<a href="http://dumb-requester.cc">dumb-requester.cc</a>', '-c', '-o', 'scratch/<a href="http://dumb-requester.cc">dumb-requester.cc</a>.5.o']</span>"</div><div style="background-color: transparent; color: rgb(157, 24, 17); font-size: 19px; font-family: 'times new roman', 'new york', times, serif; font-style: italic" class=""><br class="" style=""></div><div style="background-color: transparent; font-size: 19px; font-family: 'times new roman', 'new york', times, serif; font-style: italic" class="">and when i compile the "<a href="http://dumb-requester.cc">dumb-requester.cc</a>" file, i have this errors: </div><div style="background-color: transparent" class=""><span style="font-style: italic" class="">"</span><span style="background-color: transparent; font-style: italic; color: rgb(157, 24, 17)" class="">[2321/2383] cxxprogram: build/scratch/<a href="http://dumb-requester.cc">dumb-requester.cc</a>.5.o
 -> build/scratch/dumb-requester</span></div><div style="background-color: transparent" class=""><span style="font-style: italic; color: rgb(157, 24, 17)" class="">/usr/bin/ld: /usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation 0 has invalid symbol index 11</span></div><div style="background-color: transparent" class=""><span style="font-style: italic; color: rgb(157, 24, 17)" class="">/usr/bin/ld: /usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation 1 has invalid symbol index 12</span></div><div style="background-color: transparent" class=""><span style="font-style: italic; color: rgb(157, 24, 17)" class="">/usr/bin/ld: /usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation 2 has invalid symbol index 2</span></div><div style="background-color: transparent" class=""><span style="font-style: italic; color: rgb(157, 24, 17)" class="">/usr/bin/ld:
 /usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation 3 has invalid symbol index 2</span></div><div style="background-color: transparent" class=""><span style="font-style: italic; color: rgb(157, 24, 17)" class="">/usr/bin/ld: /usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation 4 has invalid symbol index 11</span></div><div style="background-color: transparent" class=""><span style="font-style: italic; color: rgb(157, 24, 17)" class="">/usr/bin/ld: /usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation 5 has invalid symbol index 13</span></div><div style="background-color: transparent" class=""><span style="font-style: italic; color: rgb(157, 24, 17)" class="">/usr/bin/ld: /usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation 6 has invalid symbol index 13</span></div><div style="background-color: transparent" class=""><span style="font-style: italic; color: rgb(157, 24, 17)" class="">/usr/bin/ld: /usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation 7 has invalid symbol index 13</span></div><div style="background-color: transparent" class=""><span style="font-style: italic; color: rgb(157, 24, 17)" class="">/usr/bin/ld: /usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation 8 has invalid symbol index 12</span></div><div style="background-color: transparent" class=""><span style="font-style: italic; color: rgb(157, 24, 17)" class="">/usr/bin/ld: /usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation 9 has invalid symbol index 13</span></div><div style="background-color: transparent" class=""><span style="font-style: italic; color: rgb(157, 24, 17)" class="">/usr/bin/ld: /usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation 10 has invalid symbol index 13</span></div><div style="background-color: transparent" class=""><span style="font-style: italic; color: rgb(157,
 24, 17)" class="">/usr/bin/ld: /usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation 11 has invalid symbol index 13</span></div><div style="background-color: transparent" class=""><span style="font-style: italic; color: rgb(157, 24, 17)" class="">/usr/bin/ld: /usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation 12 has invalid symbol index 13</span></div><div style="background-color: transparent" class=""><span style="font-style: italic; color: rgb(157, 24, 17)" class="">/usr/bin/ld: /usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation 13 has invalid symbol index 13</span></div><div style="background-color: transparent" class=""><span style="font-style: italic; color: rgb(157, 24, 17)" class="">/usr/bin/ld: /usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation 14 has invalid symbol index 13</span></div><div style="background-color: transparent" class=""><span style="font-style: italic;
 color: rgb(157, 24, 17)" class="">/usr/bin/ld: /usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation 15 has invalid symbol index 13</span></div><div style="background-color: transparent" class=""><span style="font-style: italic; color: rgb(157, 24, 17)" class="">/usr/bin/ld: /usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation 16 has invalid symbol index 13</span></div><div style="background-color: transparent" class=""><span style="font-style: italic; color: rgb(157, 24, 17)" class="">/usr/bin/ld: /usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation 17 has invalid symbol index 13</span></div><div style="background-color: transparent" class=""><span style="font-style: italic; color: rgb(157, 24, 17)" class="">/usr/bin/ld: /usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation 18 has invalid symbol index 13</span></div><div style="background-color: transparent" class=""><span style="font-style: italic; color: rgb(157, 24, 17)" class="">/usr/bin/ld: /usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation 19 has invalid symbol index 13</span></div><div style="background-color: transparent" class=""><span style="font-style: italic; color: rgb(157, 24, 17)" class="">/usr/bin/ld: /usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation 20 has invalid symbol index 13</span></div><div style="background-color: transparent" class=""><span style="font-style: italic; color: rgb(157, 24, 17)" class="">/usr/bin/ld: /usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation 21 has invalid symbol index 22</span></div><div style="background-color: transparent" class=""><span style="font-style: italic; color: rgb(157, 24, 17)" class="">/usr/bin/ld: /usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_line): relocation 0 has invalid symbol index 2</span></div><div style="background-color: transparent" class=""><span style="font-style: italic; color: rgb(157, 24, 17)" class="">/usr/lib/gcc/i686-linux-gnu/4.7/../../../i386-linux-gnu/crt1.o: In function `_start':</span></div><div style="background-color: transparent" class=""><span style="font-style: italic; color: rgb(157, 24, 17)" class="">(.text+0x18): undefined reference to `main'</span></div><div style="background-color: transparent" class=""><span style="font-style: italic; color: rgb(157, 24, 17)" class="">collect2: error: ld returned 1 exit status</span></div><div style="background-color: transparent" class=""><span style="font-style: italic; color: rgb(157, 24, 17)" class="">Waf: Leaving directory `/home/amoura/ndnSIM/ns-3/build'</span></div><div style="background-color: transparent" class=""><span style="font-style: italic; color: rgb(157, 24, 17)" class="">Build failed</span></div><div style="background-color: transparent" class=""><span style="font-style: italic; color: rgb(157, 24, 17)" class=""> -> task in 'dumb-requester' failed (exit status 1): </span></div><div style="background-color: transparent" class=""><span style="font-style: italic; color: rgb(157, 24, 17)" class=""><span class="" style="white-space:pre">     </span>{task 149728108: cxxprogram <a href="http://dumb-requester.cc">dumb-requester.cc</a>.5.o -> dumb-requester}</span></div><div style="background-color: transparent" class=""><span style="font-style: italic; color: rgb(157, 24, 17)" class="">['/usr/bin/g++', '-pthread', '-pthread', '-Wl,-Bsymbolic-functions', '-Wl,-z,relro', 'scratch/<a href="http://dumb-requester.cc">dumb-requester.cc</a>.5.o', '-o', '/home/amoura/ndnSIM/ns-3/build/scratch/dumb-requester', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-Wl,--no-as-needed', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.',
 '-L/usr/lib', '-L/usr/lib', '-lns3-dev-test-debug', '-lns3-dev-csma-layout-debug', '-lns3-dev-point-to-point-layout-debug', '-lns3-dev-netanim-debug', '-lns3-dev-lte-debug', '-lns3-dev-spectrum-debug', '-lns3-dev-antenna-debug', '-lns3-dev-aodv-debug', '-lns3-dev-dsdv-debug', '-lns3-dev-dsr-debug', '-lns3-dev-mesh-debug', '-lns3-dev-olsr-debug', '-lns3-dev-csma-debug', '-lns3-dev-wimax-debug', '-lns3-dev-applications-debug', '-lns3-dev-virtual-net-device-debug', '-lns3-dev-uan-debug', '-lns3-dev-energy-debug', '-lns3-dev-flow-monitor-debug', '-lns3-dev-ndnSIM-debug', '-lns3-dev-visualizer-debug', '-lns3-dev-nix-vector-routing-debug', '-lns3-dev-tap-bridge-debug', '-lns3-dev-internet-debug', '-lns3-dev-bridge-debug', '-lns3-dev-point-to-point-debug', '-lns3-dev-mpi-debug', '-lns3-dev-wifi-debug', '-lns3-dev-buildings-debug', '-lns3-dev-propagation-debug', '-lns3-dev-mobility-debug', '-lns3-dev-config-store-debug', '-lns3-dev-emu-debug',
 '-lns3-dev-fd-net-device-debug', '-lns3-dev-topology-read-debug', '-lns3-dev-network-debug', '-lns3-dev-stats-debug', '-lns3-dev-core-debug', '-lrt', '-lgsl', '-lgslcblas', '-lm', '-lsqlite3', '-lgtk-x11-2.0', '-lgdk-x11-2.0', '-latk-1.0', '-lgio-2.0', '-lpangoft2-1.0', '-lpangocairo-1.0', '-lgdk_pixbuf-2.0', '-lcairo', '-lpango-1.0', '-lfreetype', '-lfontconfig', '-lgobject-2.0', '-lglib-2.0', '-lxml2', '-lboost_graph-mt', '-lboost_system-mt', '-lboost_signals-mt', '-lboost_filesystem-mt', '-lpython2.7']</span><span style="font-style: italic" class="">" this errors were seen in "scratch/" folder, </span></div><div style="background-color: transparent; font-size: 19px; font-family: 'times new roman', 'new york', times, serif; font-style: italic;" class=""><span style="font-style: italic" class=""><br></span></div><div style="background-color: transparent; font-size: 19px; font-family: 'times new roman', 'new york', times, serif; font-style: italic;" class=""><span style="font-style: italic" class="">but i have this: "<span style="color: rgb(157, 24, 17);">program 'dumb-requester' not found; available programs are: ['aodv', 'src/aodv/examples/aodv', 'csma-bridge', 'src/bridge/examples/csma-bridge', 'csma-bridge-one-hop', 'src/bridge/examples/csma-bridge-one-hop', 'buildings-pathloss-profiler', 'src/buildings/examples/buildings-pathloss-profiler', 'config-store-save', 'src/config-store/examples/config-store-save', 'main-callback', 'src/core/examples/main-callback'</span>,..." when i compile "dumb-requester" file in its first location: src/ndnSIM/examples/custom-apps :(</span></div><div style="background-color: transparent; color: rgb(157, 24, 17); font-size: 19px; font-family: 'times new roman', 'new york', times, serif; font-style: italic;" class=""><br></div><div style="background-color: transparent; font-size: 19px; font-family: 'times new roman',
 'new york', times, serif; font-style: italic;" class="">best regards</div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: times new roman, new york, times, serif; font-size: 14pt" class=""> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt" class=""> <div dir="ltr" class="" style=""> <font size="2" face="Arial" class="" style=""> Le Dimanche 4 mai 2014 5h07, Alex Afanasyev <<a href="mailto:alexander.afanasyev@ucla.edu">alexander.afanasyev@ucla.edu</a>> a écrit :<br class="" style=""> </font> </div> <blockquote style="" class="">  <div class="" style=""><div id="yiv8837749172" class="" style=""><div class="" style=""><div class="" style="">Hi Glai,</div><div class="" style=""><br clear="none" class="" style=""></div><div class="" style="">The problem seems to be in the way you created your scenario.  DumbRequester is not part of of ndnSIM core, so you have to specifically compile it in your
 scenario.  If you're using scratch/ folder for your scenarios, then instead of just putting your scenario file in there, create a folder with the scenario name, put your main scenario file in there, and also copy <a rel="nofollow" shape="rect" target="_blank" href="http://dumb-requester.cc/" class="" style="">dumb-requester.cc</a> into the folder.  This way <a rel="nofollow" shape="rect" target="_blank" href="http://dumb-requester.cc/" class="" style="">dumb-requester.cc</a> class will be compiled together with your scenario and you shouldn't get errors anymore.</div><div class="" style=""><br clear="none" class="" style=""></div><div class="" style="">---</div><div class="" style="">Alex</div><br clear="none" class="" style=""><div class="" style=""><div class="" id="yiv8837749172yqtfd86084" style=""><div class="" style="">On May 3, 2014, at 3:15 PM, Cesar Ghali <<a rel="nofollow" shape="rect" ymailto="mailto:cghali@uci.edu" target="_blank" href="mailto:cghali@uci.edu" class="" style="">cghali@uci.edu</a>> wrote:</div><br clear="none" class="" style=""><blockquote type="cite" class="" style="">
  
    </blockquote></div></div></div><div class="" id="yiv8837749172yqtfd14177" style=""><div class="" style=""><div class="" style="">
    <div class="" style="">Were you able to compile ndnSIM using
      waf? What are the errors that you're getting?<br clear="none" class="" style="">
      <br clear="none" class="" style="">
      Cesar<br clear="none" class="" style="">
      <br clear="none" class="" style="">
      <br clear="none" class="" style="">
      On 05/03/2014 03:04 PM, Glai Amira wrote:<br clear="none" class="" style="">
    </div>
    <blockquote type="cite" class="" style="">
      <div style="background-color:rgb(255, 255, 255);font-family:'times new roman', 'new york', times, serif;font-size:14pt" class="">
        <div class="" style="">Hello everybody, </div>
        <div class="" style="">i use the 'dumbrequester' in a scenario,
          but i have this message: "<span class="" style="font-style:italic;color:rgb(205, 35, 44)">assert failed. cond="uid
            != 0", msg="Assert in TypeId::LookupByName: DumbRequester
            not found", file=../src/core/model/<a rel="nofollow" shape="rect" target="_blank" href="http://type-id.cc/" class="" style="">type-id.cc</a>, line=539 </span><span class="" style="color:rgb(205, 35, 44);font-style:italic;font-size:14pt">terminate called without an active
            exception</span><span class="" style="font-style:italic;font-size:14pt">" </span></div>
        <div class="" style="font-size:14pt;font-family:'times new roman', 'new york', times, serif;background-color:transparent;font-style:italic"><span class="" style="font-style:italic;font-weight:bold;font-size:14pt"><br clear="none" class="" style="">
          </span></div>
        <div class="" style="">can anyone help me???</div>
        <div class="" style=""><br clear="none" class="" style="">
        </div>
        <div class="" style="">and when i execute "dumbrequester" file
          .cc and .h, several errors was occurred, i don't know where is
          the problem, i don't change anything... :(</div>
        <div class="" style=""><br clear="none" class="" style="">
        </div>
        <div class="" style="">best regards.</div>
      </div>
      <br clear="none" class="" style="">
      <fieldset class="" style=""></fieldset>
      <br clear="none" class="" style="">
      <pre class="" style="">_______________________________________________
ndnSIM mailing list
<a rel="nofollow" shape="rect" class="" ymailto="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank" href="mailto:ndnSIM@lists.cs.ucla.edu" style="">ndnSIM@lists.cs.ucla.edu</a>
<a rel="nofollow" shape="rect" class="" target="_blank" href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" style="">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a>
</pre>
    </blockquote>
    <br clear="none" class="" style=""></div><br clear="none" class="" style=""></div></div></div><br class="" style=""><div class="" id="yqtfd69567" style="">_______________________________________________<br clear="none" class="" style="">ndnSIM mailing list<br clear="none" class="" style=""><a shape="rect" ymailto="mailto:ndnSIM@lists.cs.ucla.edu" href="mailto:ndnSIM@lists.cs.ucla.edu" class="" style="">ndnSIM@lists.cs.ucla.edu</a><br clear="none" class="" style=""><a shape="rect" href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank" class="" style="">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br clear="none" class="" style=""></div><br class="" style=""><br class="" style=""></div> </blockquote>  </div> </div>   </div> </div></div>_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim<br></blockquote></div><br></div></div></body></html>