LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 03-31-2015, 12:00 PM   #1
shyjuu
Member
 
Registered: Mar 2015
Posts: 47

Rep: Reputation: Disabled
Error while running modified AODV code


I am using Ubuntu 12.04 64bit machine and ns-2.35 on virtual machine
I am getting error while running my modified AODV code
I had done modification and placed all modified code in folder named iaodv at the location same as aodv

I am attaching following things

1. two image of error which I am getting while running tcl file.
2. tcl file that i am trying to execute.
2. all modification that i have done in one zip file named IAODV here.

Thanks a lot in advance

Click image for larger version

Name:	iaodv50 error1.png
Views:	36
Size:	124.1 KB
ID:	17951

Click image for larger version

Name:	iaodv50 error 2.png
Views:	21
Size:	125.8 KB
ID:	17953

link inside to my google drive.txt
 
Old 03-31-2015, 12:54 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by shyjuu View Post
I am using Ubuntu 12.04 64bit machine and ns-2.35 on virtual machine
I am getting error while running my modified AODV code I had done modification and placed all modified code in folder named iaodv at the location same as aodv I am attaching following things

1. two image of error which I am getting while running tcl file.
2. tcl file that i am trying to execute.
2. all modification that i have done in one zip file named IAODV here.
This dovetails nicely with the several other threads you've opened about AODV and modifying it:

http://www.linuxquestions.org/questi...on-4175538024/
http://www.linuxquestions.org/questi...s2-4175537017/
http://www.linuxquestions.org/questi...dv-4175536846/

Sorry, we're not going to download your code and fix it for you. Post a SPECIFIC question, and we can try to help, but based on the screen shots, it seems as if it's the same errors you've seen before...so, apply the same solutions you've been given before. YOU wrote this code, didn't you?? Which means you should be able to debug it...again, we're not going to download it and fix it for you. We've given you guidance, links, and instructions..now, you have to apply those things.

Last edited by TB0ne; 03-31-2015 at 12:56 PM.
 
Old 03-31-2015, 01:11 PM   #3
shyjuu
Member
 
Registered: Mar 2015
Posts: 47

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
This dovetails nicely with the several other threads you've opened about AODV and modifying it:
No sir I have not been guided to solve the error whose image i had shown, so do guide me for this, so i can work my own way
 
Old 03-31-2015, 01:38 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by shyjuu View Post
No sir I have not been guided to solve the error whose image i had shown, so do guide me for this, so i can work my own way
Sorry, you HAVE been 'guided' before...see the three links in my first reply, and ANY of the advice knudfl gave you in your OTHER threads about AODV. You have everything you need, but aren't applying any of it. Each error is going to be different, and requires you to THINK about the solution. Again, as you were told before, we haven't seen your code..and we are not going to download it and debug it for you.

Last edited by TB0ne; 03-31-2015 at 01:40 PM.
 
Old 03-31-2015, 02:08 PM   #5
shyjuu
Member
 
Registered: Mar 2015
Posts: 47

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Sorry, you HAVE been 'guided' before...see the three links in my first reply, and ANY of the advice knudfl gave you in your OTHER threads about AODV. You have everything you need, but aren't applying any of it. Each error is going to be different, and requires you to THINK about the solution. Again, as you were told before, we haven't seen your code..and we are not going to download it and debug it for you.
SIR by seeing my this post you should agree that i had tried possible solution and then after i am looking for solution on this forum and i am glad i am getting response also
 
Old 03-31-2015, 03:27 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by shyjuu View Post
SIR by seeing my this post you should agree that i had tried possible solution and then after i am looking for solution on this forum and i am glad i am getting response also
Oh? Why should I agree to this?? Your posts have shown next to ZERO effort on your part, since you've started asking about NS2.

You have NOT "tried possible solution"...since you've been handed it several times, but just don't seem to understand it. You have been asked to tell us which solution(s) you've tried, from what web links, but haven't, and keep posting, asking us to fix your code.

AGAIN: we are not going to debug your code for you. YOU wrote it, and should be able to follow the documentation (which you have ALSO been pointed to, but either haven't read or understood), to fix your issues. Unless you put effort into this, it won't get done. We aren't going to look things up for you, or write/fix your code for you, but will be VERY happy to help you once you show us what effort you've put forth.
 
Old 03-31-2015, 10:24 PM   #7
shyjuu
Member
 
Registered: Mar 2015
Posts: 47

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Oh? Why should I agree to this?? Your posts have shown next to ZERO effort on your part, since you've started asking about NS2.

You have NOT "tried possible solution"...since you've been handed it several times, but just don't seem to understand it. You have been asked to tell us which solution(s) you've tried, from what web links, but haven't, and keep posting, asking us to fix your code.

AGAIN: we are not going to debug your code for you. YOU wrote it, and should be able to follow the documentation (which you have ALSO been pointed to, but either haven't read or understood), to fix your issues. Unless you put effort into this, it won't get done. We aren't going to look things up for you, or write/fix your code for you, but will be VERY happy to help you once you show us what effort you've put forth.
Sir after showing this image also you are saying that i am not trying its strange for me , you tell me what should i post to get you assured, even i am uploaded my modified tcl file.
 
Old 04-01-2015, 02:10 PM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by shyjuu View Post
Sir after showing this image also you are saying that i am not trying its strange for me , you tell me what should i post to get you assured,
If you don't understand, I don't know how to make it more clear. TELL US what you have tried. Despite being repeatedly asked, all you say is "I tried possible solutions"...but STILL don't tell us what they were, post a link to them, tell us what step(s) you tried, etc.

You have posted three different threads about AODV, and how to modify it, and add new protocols; ALL were/are things you can easily find the answer to with a brief search. This tells us you have NOT searched. You were handed links to documentation, sample code, and given steps...yet CONTINUE to ask what is (essentially), the same question. We can only point you to answers...we can't make you understand them. Unless YOU, PERSONALLY, start to learn from what you were told, there is no point in posting.
Quote:
even i am uploaded my modified tcl file.
And we have told you several times now that we WILL NOT download your code and fix it for you. You have been shown the documentation and given answers. It is now up to you to APPLY that knowledge.

Last edited by TB0ne; 04-01-2015 at 02:40 PM.
 
Old 04-02-2015, 12:28 PM   #9
shyjuu
Member
 
Registered: Mar 2015
Posts: 47

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
If you don't understand, I don't know how to make it more clear. TELL US what you have tried. Despite being repeatedly .
I am getting this error while running make command to recompile ns-2


"Makefile:279: *** commands commence before first target. Stop."

how to solve this
 
Old 04-02-2015, 12:38 PM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #9.

`commands commence before first target'
... happens by a wrong Makefile.in (Makefile) syntax.

Line 279 is section `OBJ_CC'.

All the object lines must be like :
<TAB>apps/pbc.o \

The most common errors are : a missing ' \ '
.. or one (or more) <space> after ' \ ',
or by using space`s instead of <TAB>


-
 
Old 04-02-2015, 12:42 PM   #11
shyjuu
Member
 
Registered: Mar 2015
Posts: 47

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Re #9.

`commands commence before first target'
... happens by a wrong Makefile.in (Makefile) syntax.
-
knudfl sir please look at my first post in which i had attached image of error and suggest me solution for that, thanks a lot in advance
 
Old 04-02-2015, 12:55 PM   #12
shyjuu
Member
 
Registered: Mar 2015
Posts: 47

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Re #9.

`commands commence before first target'
... happens by a wrong Makefile.in (Makefile) syntax.

-
Thanks a lot, now i am abel to run make command, but after running it i am getting the error whose image i had attached
Attached Thumbnails
Click image for larger version

Name:	after make error.png
Views:	13
Size:	241.0 KB
ID:	17986  
 
Old 04-02-2015, 01:11 PM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #12.

Black images will not be read : No images with text, please.
* I guess you know how to copy / paste a text.

Error output : Use 'CODE Tags'.
Please use the ' # ' button in the 'Advanced Editor'.


-
 
Old 04-03-2015, 01:07 PM   #14
shyjuu
Member
 
Registered: Mar 2015
Posts: 47

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Re #12.

Black images will not be read : No images with text, please.
* I guess you know how to copy / paste a text.

-
Following error is produced when i run tcl file using my new protocol named IAODV

Code:
 (_o14 cmd line 1)
    invoked from within
"_o14 cmd addr"
    invoked from within
"catch "$self cmd $args" ret"
    invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
    (procedure "_o14" line 2)
    (SplitObject unknown line 2)
    invoked from within
"_o14 addr"
    ("eval" body line 1)
    invoked from within
"eval $node addr $args"
    ("default" arm line 2)
    invoked from within
"switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 "$node start-dsr"
}
AODV {
set ragent [$self cre..."
    (procedure "_o3" line 14)
    (Simulator create-wireless-node line 14)
    invoked from within
"_o3 create-wireless-node"
    ("eval" body line 1)
    invoked from within
"eval $self create-wireless-node $args"
    (procedure "_o3" line 23)
    (Simulator node line 23)
    invoked from within
"$ns_ node"
    ("for" body line 2)
    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
}"
    (file "vanetiaodv.tcl" line 59)
 
Old 04-03-2015, 01:20 PM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #14.

vanetiaodv.tcl : Unknown file.

The file can be attached as vanetiaodv.tcl.txt .

Attachments : That's the paper clip tool in the 'Advanced Editor'.


-
 
  


Reply

Tags
iaodv, ns2



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
I modified the AODV code part of NS2.31 for selecting a node which have minumamenergy lakshmanarao.k Programming 1 03-11-2015 04:51 PM
implementation code for AODV using C++ salma sindagiri Programming 1 11-21-2014 01:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 03:05 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration