<div dir="auto"><div>Hi Pawan</div><div dir="auto"><br></div><div dir="auto">If you installed ns-3 and ndnSIM many years ago in this directory, the directory may contain old binaries that you executed in step 1 and step 3.</div><div dir="auto">You upgraded one or more packages before the first step, but the old binaries are still being executed.</div><div dir="auto">In step 4 you modified the scenario script, causing waf to recompile, which fails.</div><div dir="auto"><br></div><div dir="auto">You can check the versions by executing this command in ns-3/src/ndnSIM directory:</div><div dir="auto">git submodule foreach git log -1</div><div dir="auto"><br></div><div dir="auto">Yours, Junxiao<br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Mon, Aug 3, 2020, 20:03 Pawan Subedi <<a href="mailto:psubedi@crimson.ua.edu">psubedi@crimson.ua.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p style="text-align:center"><font color="red"><strong>External Email</strong><br></font></p><div dir="ltr"><div class="gmail_default" style="color:#000000">Dear Junxiao,</div><div class="gmail_default" style="color:#000000"><br></div><div class="gmail_default" style="color:#000000">Thank you for your reply, but sadly both the statements are correct. Here are details on what happened actually:</div><div class="gmail_default" style="color:#000000">1. I ran our previous scenario, and I was able to get the results (including the trace files) as expected.</div><div class="gmail_default" style="color:#000000">2. I then copied the .cc file from the scratch folder. I tried running the scenario, this time with this copied file. I got the error messages that I sent in my email.</div><div class="gmail_default" style="color:#000000">3. I then deleted the copied file and ran the original file. To my surprise, I was able to get the results as expected. I have the results file from 12:46 PM today. </div><div class="gmail_default" style="color:#000000">4. I then added a single line (an empty line) to this .cc file, saved it and tried running the scenario. I again got the errors. I then tried removing the line, it didn't help and I kept getting the error messages.</div><div class="gmail_default" style="color:#000000">5. I then ran ./waf configure. I have ever since not been able to run the scenario. </div><div class="gmail_default" style="color:#000000"><br></div><div class="gmail_default" style="color:#000000">I haven't upgraded or downgraded any of the packages throughout the steps I have mentioned above. </div><div class="gmail_default" style="color:#000000"><br></div><div class="gmail_default" style="color:#000000">How can I check the version of ndnSim, NFD, and ndn-cxx from my installed files?</div><div><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div><br></div><div>Thank you!</div><div><br></div><div dir="ltr">Sincerely,<div>Pawan Subedi</div></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 3, 2020 at 3:55 PM Spyridon Mastorakis <<a href="mailto:smastorakis@unomaha.edu" target="_blank" rel="noreferrer">smastorakis@unomaha.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



<div>
Right.
<div><br>
</div>
<div>LocalControlHeader was deleted from ndn-cxx a few years back if I remember correctly.</div>
<div><br>
</div>
<div>
<div>
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div>Spyridon (Spyros) Mastorakis<br>
Assistant Professor<br>
Computer Science Department<br>
University of Nebraska, Omaha<br>
Peter Kiewit Institute Room 175A<br>
<a href="https://sites.google.com/site/spyridonmastorakis" target="_blank" rel="noreferrer">https://sites.google.com/site/spyridonmastorakis</a><br>
<br>
</div>
</div>
</div>
</div>
</div>
<div>
<blockquote type="cite">
<div>On Aug 3, 2020, at 3:52 PM, Junxiao Shi via ndnSIM <<a href="mailto:ndnsim@lists.cs.ucla.edu" target="_blank" rel="noreferrer">ndnsim@lists.cs.ucla.edu</a>> wrote:</div>
<br>
<div>
<div dir="ltr">
<div>Hi Pawan</div>
<div><br>
</div>
<div>Either "added a single line to the .cc file in the scratch folder" or "Our complete setup was working without any issues before adding this line" is false.</div>
<div>Did you perform any of the following actions?</div>
<div>
<ul>
<li>Upgrade or downgrade ndnSIM (e.g. git pull)</li><li>Upgrade or downgrade the scenario template</li><li>Upgrade or downgrade the ndn-cxx or NFD submodules</li></ul>
</div>
<div><br>
</div>
<div>Most likely, one of the above is not ndnSIM v2.0, but a later version.</div>
<div>"LocalControlHeader" is present in ndnSIM v2.0 (released 5 years ago), but deleted in later versions.</div>
<div><br>
</div>
<div>Yours, Junxiao</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, Aug 3, 2020 at 2:48 PM Pawan Subedi <<a href="mailto:psubedi@crimson.ua.edu" target="_blank" rel="noreferrer">psubedi@crimson.ua.edu</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<p style="text-align:center"><font color="red"><strong>External Email</strong><br>
</font></p>
<div dir="ltr">
<div>Dear ndnSim team,</div>
<div><br>
</div>
<div>My research group had a scenario using ndnSim2.0 and it was running all good. I made a simple change to the scenario (added a single line to the .cc file in the scratch folder) and now when I try to run the scenario, it throws errors.
 Our complete setup was working without any issues before adding this line. Here are the error messages and I am not sure why a previously working system is throwing these errors.</div>
<div>./ns3/ndnSIM/NFD/daemon/face/local-face.hpp:90:43: error: ‘LocalControlHeader’ in namespace ‘ndn::nfd’ does not name a type<br>
   isEmptyFilteredLocalControlHeader(const ndn::nfd::LocalControlHeader& header) const;<br>
                                           ^<br>
./ns3/ndnSIM/NFD/daemon/face/local-face.hpp:90:73: error: ISO C++ forbids declaration of ‘header’ with no type [-fpermissive]<br>
   isEmptyFilteredLocalControlHeader(const ndn::nfd::LocalControlHeader& header) const;<br>
                                                                         ^<br>
./ns3/ndnSIM/NFD/daemon/face/local-face.hpp: In member function ‘bool nfd::LocalFace::decodeAndDispatchInput(const ndn::Block&)’:<br>
./ns3/ndnSIM/NFD/daemon/face/local-face.hpp:142:38: error: ‘ndn::nfd::LocalControlHeader’ has not been declared<br>
     const Block& payload = ndn::nfd::LocalControlHeader::getPayload(element);<br>
                                      ^<br>
./ns3/ndnSIM/NFD/daemon/face/local-face.hpp:156:33: error: ‘ndn::nfd::LocalControlHeader’ has not been declared<br>
               mask |= ndn::nfd::LocalControlHeader::ENCODE_NEXT_HOP;<br>
                                 ^<br>
./ns3/ndnSIM/NFD/daemon/face/local-face.hpp:158:16: error: ‘class ndn::Interest’ has no member named ‘getLocalControlHeader’<br>
             i->getLocalControlHeader().wireDecode(element, mask);<br>
                ^<br>
./ns3/ndnSIM/NFD/daemon/face/local-face.hpp: At global scope:<br>
./ns3/ndnSIM/NFD/daemon/face/local-face.hpp:192:52: error: ‘LocalControlHeader’ in namespace ‘ndn::nfd’ does not name a type<br>
 LocalFace::isEmptyFilteredLocalControlHeader(const ndn::nfd::LocalControlHeader& header) const<br>
                                                    ^<br>
./ns3/ndnSIM/NFD/daemon/face/local-face.hpp:192:82: error: ISO C++ forbids declaration of ‘header’ with no type [-fpermissive]<br>
 LocalFace::isEmptyFilteredLocalControlHeader(const ndn::nfd::LocalControlHeader& header) const<br>
                                                                                  ^<br>
./ns3/ndnSIM/NFD/daemon/face/local-face.hpp: In member function ‘bool nfd::LocalFace::isEmptyFilteredLocalControlHeader(const int&) const’:<br>
./ns3/ndnSIM/NFD/daemon/face/local-face.hpp:199:23: error: ‘ndn::nfd::LocalControlHeader’ has not been declared<br>
     mask |= ndn::nfd::LocalControlHeader::ENCODE_INCOMING_FACE_ID;<br>
                       ^<br>
./ns3/ndnSIM/NFD/daemon/face/local-face.hpp:201:17: error: request for member ‘empty’ in ‘header’, which is of non-class type ‘const int’<br>
   return header.empty(mask);<br>
                 ^<br>
./ns3/ndnSIM/NFD/daemon/face/local-face.hpp: In member function ‘ndn::Block nfd::LocalFace::filterAndEncodeLocalControlHeader(const Packet&)’:<br>
./ns3/ndnSIM/NFD/daemon/face/local-face.hpp:210:23: error: ‘ndn::nfd::LocalControlHeader’ has not been declared<br>
     mask |= ndn::nfd::LocalControlHeader::ENCODE_INCOMING_FACE_ID;  <br>
</div>
<div><br>
</div>
<div>I tried recompiling the project with ./waf configure and still, the error exists.</div>
<div>
<div dir="ltr">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div><br>
</div>
<div>Thank you!</div>
<div><br>
</div>
<div dir="ltr">Sincerely,
<div>Pawan Subedi</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
</blockquote>
</div>
</div>
_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank" rel="noreferrer">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.lists.cs.ucla.edu_mailman_listinfo_ndnsim&d=DwICAg&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=eI5Bh74ovG-uIXQ5ksQETSPgRFzmJXjIZXneCqw580E&m=_G0OeNKO6Qc4xPFFgFAg3zwvmp5FSt5WYNaQtTBIFt4&s=EfnyI2v7Akk6pmp7SZnpIh9F5RLvO9eCcKbbZJesZ78&e=" target="_blank" rel="noreferrer">https://urldefense.proofpoint.com/v2/url?u=http-3A__www.lists.cs.ucla.edu_mailman_listinfo_ndnsim&d=DwICAg&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=eI5Bh74ovG-uIXQ5ksQETSPgRFzmJXjIZXneCqw580E&m=_G0OeNKO6Qc4xPFFgFAg3zwvmp5FSt5WYNaQtTBIFt4&s=EfnyI2v7Akk6pmp7SZnpIh9F5RLvO9eCcKbbZJesZ78&e=</a>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</div>

</blockquote></div>
</blockquote></div></div></div>