LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-20-2011, 12:30 AM   #1
savita1811
LQ Newbie
 
Registered: Mar 2011
Posts: 8

Rep: Reputation: 0
Angry antnet algorithm execution problem


hi i m doing my project on ant routing algorithm in ns2.33,i had made changes to almost every file.
but when i tried to run the algorithm the error i get is like this
"invalid command name "Agent/Antnet"
while executing
"Agent/Antnet create _o386 0"
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/Antnet $i"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $sz} {incr i} {
set nn($i) [ new Agent/Antnet $i]
}"
please tell me what shuold i do?is there any need for changes in makefile or any other files.plz i u had a soln plz mail me immediately its urgent!!!!

"suvarnapatil.40@gmail.com"

Last edited by savita1811; 03-20-2011 at 05:33 AM. Reason: email address
 
Old 03-21-2011, 10:10 AM   #2
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
Welcome to LQ.

Assume antnet-1.0.tgz > antnet/ , or similar
http://antalgorithm.googlecode.com/files/antnet.tar.gz
cd ns-allinone-2.33/ns-2.33 && cp Makefile Makefile-back && make clean
The Makefile ( or Makefile.in ) edits : Add to section OBJ_CC :

antnet/antnet.o antnet/antnet_common.o antnet/antnet_rtable.o
... and then run make.

Please read http://www.linuxquestions.org/linux/rules.html
And http://linuxsilo.net/docs/smart-questions_en.html
http://www.linuxquestions.org/linux/...Ask_a_Question
All technical discussion is meant to take place in the Forums,
so everybody can benefit from the answers. Hence no technical emails.
Using the word 'urgent' is not very polite : Here we are all volunteers,
answering questions in our spare time.
..
 
Old 03-21-2011, 10:42 PM   #3
savita1811
LQ Newbie
 
Registered: Mar 2011
Posts: 8

Original Poster
Rep: Reputation: 0
Thank u very much knudfl for giving u r precious time to solve my problm.
I m really sorry for using the word "urgent".Actually i m new to this site ,dats y i dont know.
 
Old 03-23-2011, 10:27 AM   #4
savita1811
LQ Newbie
 
Registered: Mar 2011
Posts: 8

Original Poster
Rep: Reputation: 0
I had made changes as specified by u in makefile.in ,but after "./configure" and "make" it is again giving same error of "invalid command name Agent/Antnet".plz suggest me the changes that i should do
 
Old 03-23-2011, 11:39 AM   #5
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
Difficult to say where the errors are, if you made a lot of edits.

These are the links I found two days ago. Besides that : Never heard of it before.

https://antnet.wordpress.com/

http://antalgorithm.googlecode.com/f...tnetmanual.pdf

http://www.idsia.ch/~gianni/antnet.html

http://code.google.com/p/antalgorithm/

One thing : If you run ./configure, the Makefile will change.
'./configure' should only be used, if you have added something to Makefile.in .
But according to post # 4, that seems to be OK.

..

Last edited by knudfl; 03-23-2011 at 11:43 AM.
 
1 members found this post helpful.
Old 03-25-2011, 07:43 AM   #6
savita1811
LQ Newbie
 
Registered: Mar 2011
Posts: 8

Original Poster
Rep: Reputation: 0
ok sir m trying my best to do it.Thank u again for giving me u r precious time
 
Old 03-27-2011, 09:03 AM   #7
savita1811
LQ Newbie
 
Registered: Mar 2011
Posts: 8

Original Poster
Rep: Reputation: 0
i had made changes in makefile and by running "make",it is giving error that "antnet/antnet.cc- Antnet::Antnet(addr_t id) : Agent(PT_ANT),....... "PT_ANT" is not declared in its scope and same error in recv function,send function of antnet.cc file
 
Old 03-28-2011, 10:33 PM   #8
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
Suggest : Upload the edited files to Google Docs /// Shared.

Include folders with the right names, or a description of file location.
Copy all files and folders into a <new-folder> ( antnet-files/ )
tar -zcf antnet-files.tar.gz antnet-files/
... and it's ready for upload.
...

Last edited by knudfl; 03-29-2011 at 07:43 AM.
 
Old 03-29-2011, 07:48 AM   #9
savita1811
LQ Newbie
 
Registered: Mar 2011
Posts: 8

Original Poster
Rep: Reputation: 0
hi sir i had uploaded all the files along with code antnet.tcl on google docs with public access on web.
the link is "https://docs.google.com/leaf?id=0B30Dk8kh-e_HMDRmYTE2YTktYjIyNy00MmY0LWE2MTUtYWJjN2NkOGE3MGFi&hl=en" and email id="suvarnapatil.40@gmail.com"
 
Old 03-29-2011, 08:01 AM   #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
The link
https://docs.google.com/leaf?id=0B30...OGE3MGFi&hl=en

.. is for antnet.h only. You told in post #1, that a lot of edits were made.
Please pack up all the edited files into a ".tar.gz" like mentioned in # 8.
 
Old 03-29-2011, 09:35 AM   #11
savita1811
LQ Newbie
 
Registered: Mar 2011
Posts: 8

Original Poster
Rep: Reputation: 0
https://docs.google.com/leaf?id=0B30...MTE5Yjk3&hl=en,
https://docs.google.com/leaf?id=0B30...NDcwNWY4&hl=en,
https://docs.google.com/leaf?id=0B30...MjY2M2M5&hl=en,
https://docs.google.com/leaf?id=0B30...YjFkODkw&hl=en,
https://docs.google.com/leaf?id=0B30...OTgzZWJh&hl=en,
https://docs.google.com/leaf?id=0B30...OGQ3Y2Iz&hl=en,
https://docs.google.com/leaf?id=0B30...ZDE4ODlm&hl=en,
https://docs.google.com/leaf?id=0B30...ZTEwYWQy&hl=en,
https://docs.google.com/leaf?id=0B30...ZGRlMzVj&hl=en,
https://docs.google.com/leaf?id=0B30...OTgzZWJh&hl=en,
https://docs.google.com/leaf?id=0B30...YjFkODkw&hl=en,
https://docs.google.com/leaf?id=0B30...MjY2M2M5&hl=en,
https://docs.google.com/leaf?id=0B30...NDcwNWY4&hl=en,
https://docs.google.com/leaf?id=0B30...MTE5Yjk3&hl=en,
https://docs.google.com/leaf?id=0B30...NDExNzk5&hl=en,
https://docs.google.com/leaf?id=0B30...MGQxZDU5&hl=en,
https://docs.google.com/leaf?id=0B30...MjA0OTk2&hl=en,
https://docs.google.com/leaf?id=0B30...NmIzODAz&hl=en,
https://docs.google.com/leaf?id=0B30...MTU0Yjcw&hl=en,
https://docs.google.com/leaf?id=0B30...N2VkZGQy&hl=en ,
https://docs.google.com/leaf?id=0B30...MWQwYWY4&hl=en,
https://docs.google.com/leaf?id=0B30...YWEzMDc4&hl=en,
https://docs.google.com/leaf?id=0B30...MzhiODNm&hl=en,
https://docs.google.com/leaf?id=0B30...ODU0YTA1&hl=en,
https://docs.google.com/leaf?id=0B30...ZDQ1NzA5&hl=en,
https://docs.google.com/leaf?id=0B30...ZWRmNjFi&hl=en,
https://docs.google.com/leaf?id=0B30...YWNmODNj&hl=en,
https://docs.google.com/leaf?id=0B30...MDc0MTVi&hl=en,
https://docs.google.com/leaf?id=0B30...NjE0OGUy&hl=en,
https://docs.google.com/leaf?id=0B30...OGE3MGFi&hl=en.
here all the files are attached where antnet.tcl is the code
 
Old 03-29-2011, 02:36 PM   #12
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
I guess, the files belong to certain folders.

Please pack all the files into the right folders,
and afterwards into a top directory. And do tar -zcf etc. etc.
See post # 8.
Then I may have a look at things.


I don't think you'd appreciate getting applications in all loose parts.

..
 
Old 03-30-2011, 03:35 AM   #13
savita1811
LQ Newbie
 
Registered: Mar 2011
Posts: 8

Original Poster
Rep: Reputation: 0
here i had uploaded zip file for antnet
"https://docs.google.com/leaf?id=0B30Dk8kh-e_HZGVhMzI3YjktYmFkMy00OWYzLWE5OWUtMTBhOWMzNjE3MjYx&hl=en"
 
Old 06-11-2011, 01:42 AM   #14
nawe2k
LQ Newbie
 
Registered: Jun 2010
Posts: 5

Rep: Reputation: 0
hello
I had that error in post #1. according to post#2, I change makefile.in and make clean.
now when i run make i have this error.
"Makefile:163: *** commands commence before first target. stop."
I need your help. please help me.
Thanks

sorry for my bad english.
 
  


Reply

Tags
antnet, 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
[SOLVED] Problem with execution on linux puth Programming 2 06-12-2010 08:53 PM
Apache path/execution problem Seventh Linux - Software 5 12-15-2009 06:31 AM
Mandrake 10.2 Kernel execution problem tkokkinos Linux - Software 6 11-19-2009 09:25 AM
token bucket algorithm vs Leaky bucket algorithm xeon123 Linux - Networking 2 03-26-2007 04:57 AM
Ntwk program execution problem vishamr2000 General 2 01-23-2007 05:49 AM

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

All times are GMT -5. The time now is 08:07 PM.

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