LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-09-2011, 05:41 AM   #1
tootz
Member
 
Registered: Feb 2011
Posts: 47

Rep: Reputation: 1
ns2 error while compiling


hi, i encountered this problem when compling the tcl code, i am not sure where went wrong, did i miss any library or component? pls advice, i have been solving this for quite long..

num_nodes is set 20
INITIALIZE THE LIST xListHead
invalid command name "Agent/UDP/PDP"
while executing
"Agent/UDP/PDP create _o30 "
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Agent/UDP/PDP"
("for" body line 4)
invoked from within
"for {set i 0} {$i < $val(nn) } {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0 ;#disable random motion
set p($i) [new Agent/UD..."
(file "simple_example.tcl" line 73)
 
Old 02-09-2011, 06:58 AM   #2
bwise
LQ Newbie
 
Registered: Feb 2011
Posts: 7

Rep: Reputation: 0
well obviously the problem is in

set p($i) [new Agent/UDP/PDP]

As you can see in
http://www.isi.edu/nsnam/ns/doc/node102.html

There is no such agent unless you integrated it yourself in ns. In which case we would need more information and the problem is not in the code you are providing rather than the process u followed to integrate it
 
Old 02-09-2011, 10:00 AM   #3
tootz
Member
 
Registered: Feb 2011
Posts: 47

Original Poster
Rep: Reputation: 1
how do i identify the problem? cause i dont know where the problem lies! how to troubleshoot, i need help!
 
Old 02-09-2011, 10:46 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,678

Rep: Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547
Quote:
There is no such agent unless you integrated it yourself in ns2.
In which case we would need more information ..
Please read http://www.linuxquestions.org/linux/...Ask_a_Question
> > > http://linuxsilo.net/docs/smart-questions_en.html

Basic information to answer an ns2 question :
1) Your Linux OS : Version of Ubuntu ? Like Ubuntu 10.10 Maverick.
2) Version, ns-allinone-2.xx ( ns-allinone-2.33 ? )
2a) And did you add any patching to ns2 ?
3) Which command is done ? ( ns <file-name>.tcl ? )
4) Please provide a link to the tcl file in question.
4a) Or attach your code as name.tcl.txt, by using the "paper clip" tool
in the 'Advanced Editor' : "Post Reply".

..
 
Old 02-09-2011, 11:29 AM   #5
tootz
Member
 
Registered: Feb 2011
Posts: 47

Original Poster
Rep: Reputation: 1
1) Your Linux OS : Ubuntu 10.04 LTS
2) Version, ns-allinone-2.34
2a) And did you add any patching to ns2 ? nope
3) Which command is done ? ns simple_example.tcl

Last edited by tootz; 02-09-2011 at 09:03 PM.
 
Old 02-09-2011, 01:42 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,678

Rep: Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547
OK, then please attach simple_example.tcl.txt : As a text file ( Hence .txt )
I.e. Make a copy of simple_example.tcl, and rename to simple_example.tcl.txt :
Else you cannot attach it as text.

( Rather difficult to run 'ns part2.png' , I think.)

Where did you get this tcl script ? A link, please.

..

Last edited by knudfl; 02-09-2011 at 01:45 PM.
 
Old 02-09-2011, 09:04 PM   #7
tootz
Member
 
Registered: Feb 2011
Posts: 47

Original Poster
Rep: Reputation: 1
do u have a mail so that i can email u or any msn tool or something?
 
Old 02-10-2011, 03:13 AM   #8
bwise
LQ Newbie
 
Registered: Feb 2011
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by tootz View Post
do u have a mail so that i can email u or any msn tool or something?
Attach it here as instructed so more people can take a look and possibly help you.
So, did you integrate Agent/UDP/PDP yourself or not ?

If yes you are probably not linking the right files in your makefile or not modifying correctly what is needed, you might want to take a look at :
http://elmurod.net/wps/?p=157

If not then can you tell us where you came up with Agent/UDP/PDP ?
 
Old 02-10-2011, 11:09 AM   #9
tootz
Member
 
Registered: Feb 2011
Posts: 47

Original Poster
Rep: Reputation: 1
i have seen the website and i have a c++ DSDV code.

i have make a folder in ns-2.34, however do i require to modify all of this below?

* $NS_ROOT/Makefile
* $NS_ROOT/queue/priqueue.cc
* $NS_ROOT/common/packet.h
* $NS_ROOT/trace/cmu-trace.h
* $NS_ROOT/trace/cmu-trace.cc
* $NS_ROOT/tcl/lib/ns-packet.tcl
* $NS_ROOT/tcl/lib/ns-lib.tcl
* $NS_ROOT/tcl/lib/ns-agent.tcl
* $NS_ROOT/tcl/lib/ns-mobilenode.tcl

if yes, how do i do abt doing it?
my file name is DSDV.h

could you kindly guide me?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling ns2 with openssl libraries zWaR Programming 3 10-01-2012 06:02 AM
compiling c++ program having cpptcl.h in ns2 MLinux Linux - General 1 11-22-2010 12:16 PM
compiling c++ program having cpptcl.h in ns2 MLinux Linux - Networking 2 11-22-2010 05:52 AM
Is there any restriction in compiling the c++ files in ns2 library? shyan Linux - Newbie 1 12-12-2008 06:00 AM
Compiling ns2 on FC4 sita Linux - Software 0 11-04-2005 02:25 PM


All times are GMT -5. The time now is 01:28 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration