[ndnSIM] To run my simulation

NDIKUMANA ANSELME anselme333 at gmail.com
Tue Feb 3 16:12:06 PST 2015


Dear Alex,

After shifting to the current version, i have realized that they are  many
changes which requires more time  for getting  familiar with.  I would
appreciate if you have any hint on how  to fix the below errors in previous
version in which can help me to  speed up my simulation.

>./utils/print-introspected-doxygen.cc: In function ‘int main(int, char**)’:
> > ../utils/print-introspected-doxygen.cc:782:14: warning: ‘auto’ will
> change meaning in C++0x; please remove it [-Wc++0x-compat]
> > ../utils/print-introspected-doxygen.cc:782:20: error: ISO C++ forbids
> declaration of ‘logComponent’ with no type [-fpermissive]
> > ../utils/print-introspected-doxygen.cc:782:35: error: range-based-for
> loops are not allowed in C++98 mode



I have removed the 'auto' in  print-introspected-doxygen.cc and log.cc ,
 but i am not able to run  simulation with visualizer. i get the following
error:

assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName:
ns3::VisualSimulatorImpl not found", file=../src/core/model/type-id.cc,
line=539
terminate called without an active exception
Command ['/home/anselme/ndnSIM/ns-3/build/scratch/ndn-simple',
'--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>")


2015-01-30 15:40 GMT+09:00 NDIKUMANA ANSELME <anselme333 at gmail.com>:

> Dear Sir,
>
> Thank you so much for the help. I have found a problem in my  boost
> libraries and is now fixed
>
> With Regards,
>
> Anselme NDIKUMANA
>
> 2015-01-30 13:21 GMT+09:00 Alex Afanasyev <alexander.afanasyev at ucla.edu>:
>
>> The versions of base NS-3 and ndnSIM must be matched.  In your case they
>> are not.
>>
>> You should either download everything from scratch, as shown on
>> ndnsim.net or manually update both NS-3 and ndnSIM to the latest
>> versions.
>>
>>>> Alex
>>
>> On Jan 29, 2015, at 8:11 PM, NDIKUMANA ANSELME <anselme333 at gmail.com>
>> wrote:
>>
>> Dear Sir,
>>
>> Thank you for the reply. i was using the old one and after its
>> re-installation, i got the following errors:
>>
>> ../utils/print-introspected-doxygen.cc: In function ‘int main(int,
>> char**)’:
>> ../utils/print-introspected-doxygen.cc:782:14: warning: ‘auto’ will
>> change meaning in C++0x; please remove it [-Wc++0x-compat]
>> ../utils/print-introspected-doxygen.cc:782:20: error: ISO C++ forbids
>> declaration of ‘logComponent’ with no type [-fpermissive]
>> ../utils/print-introspected-doxygen.cc:782:35: error: range-based-for
>> loops are not allowed in C++98 mode
>>
>> i have also tried to install the latest version and i got the following
>> errors:
>>
>> o
>> from /home/anselme/simulation/nacc2.0/ns-3/src/ndnSIM: The configuration
>> failed
>> --------------------------------------------------------------
>> Checking for 'libndn-cxx'
>> ['/usr/bin/pkg-config', '--cflags', '--libs', 'libndn-cxx']
>> err: Package libndn-cxx was not found in the pkg-config search path.
>> Perhaps you should add the directory containing `libndn-cxx.pc'
>> to the PKG_CONFIG_PATH environment variable
>> No package 'libndn-cxx' found
>>
>> from /home/anselme/simulation/nacc2.0/ns-3/src/ndnSIM: The configuration
>> failed
>>
>> Checking boost includes
>> 1.55.0
>> ------------------------------------------
>> Checking boost libs
>> Found the boost path in /usr/lib with the libraries:
>>     /usr/lib/libboost_iostreams.so.1.46.1
>>     /usr/lib/libboost_program_options.so.1.46.1
>>     /usr/lib/libboost_serialization.so.1.46.1
>>     /usr/lib/libboost_wserialization.so.1.46.1
>> Trying pattern boost_system(-gcc[0-9]{0,3})+(-1_55)+
>> Trying pattern boost_system(-1_55)+
>> Trying pattern boost_system(-1_55)+
>> Trying pattern boost_system(-gcc[0-9]{0,3})+
>> Trying pattern boost_system
>> Trying pattern boost_system
>> lib system not found in /usr/lib
>> from /home/anselme/simulation/nacc2.0/ndn-cxx: The configuration failed
>>
>>
>> 2015-01-30 1:48 GMT+09:00 Spyridon (Spyros) Mastorakis <
>> spiros.mastorakis at gmail.com>:
>>
>>> Hello,
>>>
>>> which version of ndnSIM are you using? I suspect that you are using the
>>> previous one, so I would suggest that you install the current one.
>>>
>>> --
>>> Spyridon (Spyros) Mastorakis
>>> Personal Website: http://cs.ucla.edu/~mastorakis/
>>> Internet Research Laboratory
>>> PhD Computer Science
>>> UCLA
>>>
>>>
>>>
>>>
>>> > On Jan 28, 2015, at 5:06 AM, NDIKUMANA ANSELME <anselme333 at gmail.com>
>>> wrote:
>>> >
>>> > Hello,
>>> >
>>> > I am experiencing the problem of running my simulation , i keeps
>>> getting the errors from ndn-net-device-face in which i have not modified:
>>> >
>>> > In file included from ./ns3/ndnSIM/model/nacc.h:22:0,
>>> >                  from ./ns3/ndn-face.h:25,
>>> >                  from ./ns3/ndn-api-face.h:29,
>>> >                  from ./ns3/ndnSIM-module.h:18,
>>> >                  from ../scratch/congestioncontrolsenario2.cc:3:
>>> > ./ns3/ndnSIM/model/ndn-net-device-face.h:44:1: error: expected
>>> class-name before ‘{’ token
>>> > ./ns3/ndnSIM/model/ndn-net-device-face.h:62:35: error:
>>> ‘InterestHandler’ does not name a type
>>> > ./ns3/ndnSIM/model/ndn-net-device-face.h:62:52: error: ISO C++ forbids
>>> declaration of ‘interestHandler’ with no type [-fpermissive]
>>> > ./ns3/ndnSIM/model/ndn-net-device-face.h:62:75: error: ‘DataHandler’
>>> does not name a type
>>> > ./ns3/ndnSIM/model/ndn-net-device-face.h:62:88: error: ISO C++ forbids
>>> declaration of ‘dataHandler’ with no type [-fpermissive]
>>> >
>>> >  i have tried to re-install ndnSIM  and  i got  the fallowing error .
>>> >
>>> > ../utils/print-introspected-doxygen.cc: In function ‘int main(int,
>>> char**)’:
>>> > ../utils/print-introspected-doxygen.cc:782:14: warning: ‘auto’ will
>>> change meaning in C++0x; please remove it [-Wc++0x-compat]
>>> > ../utils/print-introspected-doxygen.cc:782:20: error: ISO C++ forbids
>>> declaration of ‘logComponent’ with no type [-fpermissive]
>>> > ../utils/print-introspected-doxygen.cc:782:35: error: range-based-for
>>> loops are not allowed in C++98 mode
>>> >
>>> > i have removed auto and i still receiving errors. From  gcc perceptive
>>> i  tried to run my simulation with -std=c++0x option but no success.
>>> >
>>> > Any support on how to handle this issue will be appreciated.
>>> >
>>> > Thank You
>>> >
>>> > _______________________________________________
>>> > ndnSIM mailing list
>>> > ndnSIM at lists.cs.ucla.edu
>>> > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>>>
>>>
>> _______________________________________________
>> 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/20150204/ef6e696d/attachment.html>


More information about the ndnSIM mailing list