[ndnSIM] A compiling problem

李孟涵 limenghan1101 at gmail.com
Sun May 5 21:00:22 PDT 2013


Hi Alex,

    I downloaded NS-3 from git://github.com/cawka/ns-3-dev-ndnSIM.git,
system is Ubuntu 12.04.1 in Parallels Desktop MAC.

    The following are complete error messages:
parallels at parallels-Parallels-Virtual-Platform:~/ndnSIM/ns-3$ ./waf
--run=ndn-simple --vis
Waf: Entering directory `/home/parallels/ndnSIM/ns-3/build'
Waf: Leaving directory `/home/parallels/ndnSIM/ns-3/build'
'build' finished successfully (2.988s)
assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName:
ns3::LteNetDevice not found", file=../src/core/model/type-id.cc, line=419
terminate called without an active exception
Command
['/home/parallels/ndnSIM/ns-3/build/src/ndnSIM/examples/ns3-dev-ndn-simple-debug',
'--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>").

    The attachment is my build/config.log.

    Thanks~


2013/5/5 Alex Afanasyev <alexander.afanasyev at ucla.edu>

> HI Menghan,
>
> I have pushed a couple of commits that should solve the configure process.
> Apparently, there was an indentation mistake at line 39, which caused the
> error that you have observed (library installed, but not detected).  Thanks
> for pointing to the problem!
>
> As for LteNetDevice it is something different and definitely not related
> to the boost libraries.  Can you tell me which commit of the base NS-3 you
> have (just to double check), as well as what is your system (which
> version).  And last, can you send the exact command that you're typing that
> produces the error.  (If you can send or share in some way your
> build/config.log, it can also help.)
>
> ---
> Alex
>
> On May 4, 2013, at 3:02 AM, 李孟涵 <limenghan1101 at gmail.com> wrote:
>
> Hi Alex,
>
>     Thanks for your efforts in continuously updating the code. I have
> fixed the above problem. However, when I try to continue to compile the
> code, I met libboost problem below.
>
> ndnSIM will not be build as it requires boost libraries: iostreams
> Please upgrade your distribution or install custom boost libraries (
> http://ndnsim.net/faq.html#boost-libraries)
>
>     I have already built boost 1.53 in accordance with the tips form the
> FAQ, and the boost libs indeed included iostreams. So I checked wscript in
> ndnSIM to search the cause of error. Finally I tried to delete line 37 and
> 38. Then I can successfully build ndnSIM. But I don't know whether delete
> the judgement of "mt" can cause other problems. Seemingly, I failed to run
> ndn-simple and caused the following error:
>
> assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName:
> ns3::LteNetDevice not found", file=../src/core/model/type-id.cc, line=419
> terminate called without an active exception
>
>     If my behavior of deleting the code is inappropriate, then what should
> I do to successfully build the code.
>
>     Thanks!
>
>
> 2013/5/4 Alex Afanasyev <alexander.afanasyev at ucla.edu>
>
>> Hi Menghan,
>>
>> Thanks for catching the problem!  Yesterday I was updating NS-3 base to
>> the latest version (based on NS-3.17 release candidate / developer head)
>> and forgot to push out necessary changes to ndnSIM.
>>
>> If you re-clone everything again, the error should disappear and the code
>> should compile successfully.
>>
>> ---
>> Alex
>>
>> On May 3, 2013, at 9:13 AM, 李孟涵 <limenghan1101 at gmail.com> wrote:
>>
>> > Hi all,
>> >
>> >     I downloaded ndnSIM code from github without making any changes.
>> But I can't build ndnSIM successfully. When I used waf to compile ndnSIM
>> code, there were following error messages appeared.
>> >
>> > parallels at parallels-Parallels-Virtual-Platform:~/ndnSIM/ns-3$ ./waf
>> configure --enable-examples --enable-ndn-plugins=topology,mobility
>> > Traceback (most recent call last):
>> >   File
>> "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Scripting.py",
>> line 97, in waf_entry_point
>> >     run_commands()
>> >   File
>> "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Scripting.py",
>> line 149, in run_commands
>> >     parse_options()
>> >   File
>> "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Scripting.py",
>> line 127, in parse_options
>> >     Context.create_context('options').execute()
>> >   File
>> "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Options.py",
>> line 134, in execute
>> >     super(OptionsContext,self).execute()
>> >   File
>> "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py",
>> line 87, in execute
>> >     self.recurse([os.path.dirname(g_module.root_path)])
>> >   File
>> "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py",
>> line 128, in recurse
>> >     user_function(self)
>> >   File "/home/parallels/ndnSIM/ns-3/wscript", line 209, in options
>> >     opt.recurse('src')
>> >   File
>> "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py",
>> line 128, in recurse
>> >     user_function(self)
>> >   File "/home/parallels/ndnSIM/ns-3/src/wscript", line 47, in options
>> >     opt.recurse(module, mandatory=False)
>> >   File
>> "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py",
>> line 128, in recurse
>> >     user_function(self)
>> >   File "/home/parallels/ndnSIM/ns-3/src/ndnSIM/wscript", line 15, in
>> options
>> >     opt.tool_options('boost', tooldir=["waf-tools"])
>> > AttributeError: 'OptionsContext' object has no attribute 'tool_options'
>> > parallels at parallels-Parallels-Virtual-Platform:~/ndnSIM/ns-3$ ./waf
>> configure
>> > Traceback (most recent call last):
>> >   File
>> "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Scripting.py",
>> line 97, in waf_entry_point
>> >     run_commands()
>> >   File
>> "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Scripting.py",
>> line 149, in run_commands
>> >     parse_options()
>> >   File
>> "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Scripting.py",
>> line 127, in parse_options
>> >     Context.create_context('options').execute()
>> >   File
>> "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Options.py",
>> line 134, in execute
>> >     super(OptionsContext,self).execute()
>> >   File
>> "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py",
>> line 87, in execute
>> >     self.recurse([os.path.dirname(g_module.root_path)])
>> >   File
>> "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py",
>> line 128, in recurse
>> >     user_function(self)
>> >   File "/home/parallels/ndnSIM/ns-3/wscript", line 209, in options
>> >     opt.recurse('src')
>> >   File
>> "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py",
>> line 128, in recurse
>> >     user_function(self)
>> >   File "/home/parallels/ndnSIM/ns-3/src/wscript", line 47, in options
>> >     opt.recurse(module, mandatory=False)
>> >   File
>> "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py",
>> line 122, in recurse
>> >     wscript_module=load_module(node.abspath())
>> >   File
>> "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py",
>> line 281, in load_module
>> >     exec(compile(code,path,'exec'),module.__dict__)
>> >   File "/home/parallels/ndnSIM/ns-3/src/ndnSIM/wscript", line 4, in
>> <module>
>> >     import Logs
>> > ImportError: No module named Logs
>> >
>> >   If above errors are due to lacking necessary patches or other reasons?
>> >   Look forward to your reply!Thanks a lot~
>> >
>> > Best regards,
>> > --
>> > Menghan Li
>> > Ph.D. Candidate,
>> > Department of Computer Science and Technology,
>> > Tsinghua University, Beijing, China.
>> > _______________________________________________
>> > ndnSIM mailing list
>> > ndnSIM at lists.cs.ucla.edu
>> > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>>
>>
>
>
> --
> 李孟涵(Menghan Li)
> Ph.D. Candidate,
> Department of Computer Science and Technology,
> Tsinghua University, Beijing, China.
>
>
>


-- 
李孟涵(Menghan Li)
Ph.D. Candidate,
Department of Computer Science and Technology,
Tsinghua University, Beijing, China.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20130506/ad33396c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: application/octet-stream
Size: 56716 bytes
Desc: not available
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20130506/ad33396c/attachment.obj>


More information about the ndnSIM mailing list