LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   antnet algorithm execution problem (https://www.linuxquestions.org/questions/linux-wireless-networking-41/antnet-algorithm-execution-problem-869712/)

savita1811 03-20-2011 12:30 AM

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"

knudfl 03-21-2011 10:10 AM

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.
..

savita1811 03-21-2011 10:42 PM

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.

savita1811 03-23-2011 10:27 AM

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

knudfl 03-23-2011 11:39 AM

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.

..

savita1811 03-25-2011 07:43 AM

ok sir m trying my best to do it.Thank u again for giving me u r precious time

savita1811 03-27-2011 09:03 AM

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

knudfl 03-28-2011 10:33 PM

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.
...

savita1811 03-29-2011 07:48 AM

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"

knudfl 03-29-2011 08:01 AM

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.

savita1811 03-29-2011 09:35 AM

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

knudfl 03-29-2011 02:36 PM

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.

..

savita1811 03-30-2011 03:35 AM

here i had uploaded zip file for antnet
"https://docs.google.com/leaf?id=0B30Dk8kh-e_HZGVhMzI3YjktYmFkMy00OWYzLWE5OWUtMTBhOWMzNjE3MjYx&hl=en"

nawe2k 06-11-2011 01:42 AM

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.


All times are GMT -5. The time now is 03:47 PM.