LinuxQuestions.org
Visit Jeremy's Blog.
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 09-15-2011, 08:36 AM   #1
indumit18
LQ Newbie
 
Registered: Sep 2011
Posts: 12

Rep: Reputation: Disabled
error while recompiling Ns2 makefile.in


i added a new folder that contains x.cc, x.h, x.o, x.tcl files and edited in the "makefile.in" in following places
"INCLUDES=" , "OBJ_CC=", "NS_TCL_LIB"

and while recompiling it using "make" command we get the following error:

Makefile.in is newer than Makefile.
You need to re-run configure.
false
make: *** [Makefile] Error 1


i need to know the reason for this error and how to rectify it.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 09-15-2011, 08:58 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

Rep: Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635
Welcome to LQ.

"Makefile" is generated from Makefile.in.
When you edit the Makefile.in, a new Makefile is a must :
cd ns-allinone-2.xx/ns-2.xx/ && make clean && mv Makefile Makefile.orig
&& ./configure && make

.
 
2 members found this post helpful.
Old 05-12-2014, 12:11 AM   #3
hd_uni_pro
Member
 
Registered: Mar 2014
Posts: 31

Rep: Reputation: Disabled
Exclamation run blackholeaodv and error

hello
i want run blackholeaodv.tcl But I get this error:
http://www.uplooder.net/img/image/91...b/untitled.JPG
A friend said I should file .cc

introduce to Files:makefile.in

How do it
 
Old 05-12-2014, 02:29 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

Rep: Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635
#3, @hd_uni_pro.

"blackholeaodv.tcl" is a generic name : Several files with that name.
And :
A file.tcl with e.g. "set opt(ragent) Agent/rtProto/blackholeAODV"
.. is not usable, as none of the available blackholeaodv patches
are defining a "new rtProto/blackholeAODV". See #11.

The usable patches are : 1) ns-2.34 → blackhole2013-ns234-patch.tar.gz
https://drive.google.com/file/d/0B7S...it?usp=sharing
2) ns-2.35 → blackholeaodv2005-ns235-patching-2.tar.gz
https://drive.google.com/file/d/0B7S...it?usp=sharing

Usable simulation examples : blackholeaodv2005-examples.tar.gz
https://drive.google.com/file/d/0B7S...it?usp=sharing

LQ blackholeaodv http://www.linuxquestions.org/questions/tags/blackhole/
. http://www.linuxquestions.org/questi...blackholeaodv/
And `Google ns2 Forum´ https://groups.google.com/forum/?fro...E/H1jBy6Ifx5gJ

-

Last edited by knudfl; 05-13-2014 at 05:52 AM.
 
2 members found this post helpful.
Old 05-12-2014, 02:56 AM   #5
hd_uni_pro
Member
 
Registered: Mar 2014
Posts: 31

Rep: Reputation: Disabled
Quote:
Originally Posted by hd_uni_pro View Post
hello
i want run blackholeaodv.tcl But I get this error:
http://www.uplooder.net/img/image/91...b/untitled.JPG
A friend said I should file .cc

introduce to Files:makefile.in

How do it
i upload files :

black_h-o-l-e_attack_.zip
 
Old 05-12-2014, 03:38 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

Rep: Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635
# 5.

'black_h-o-l-e_attack_.zip' : Don't know how you got it in that format (zip).
The package is an exact copy of "blackholeaodv2005-ns235-patch.tar.gz",
that I made up last year : ``June 2013´´.
( The included `blackholeaodv.tcl´ is not a usable example, sorry.)

Solution : Stick to the examples in blackholeaodv2005-examples.tar.gz .


Remark : Do not quote entire posts. And do not quote your own posts.
A "one word" reference will do.

-

Last edited by knudfl; 05-12-2014 at 03:42 AM.
 
Old 05-12-2014, 03:53 AM   #7
hd_uni_pro
Member
 
Registered: Mar 2014
Posts: 31

Rep: Reputation: Disabled
Hi and thanks Engineer

I opened the zip file and copy the file I got the DNS error
I left a message a few posts above general how do I fix it?
Also, I would grateful if you post me the answer
http://www.linuxquestions.org/questi...dv-4175504687/
Grateful
 
Old 05-12-2014, 03:54 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

Rep: Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635
# 5.

A new package blackholeaodv2005-ns235-patching-2.tar.gz,
without the two examples.tcl is available :
https://drive.google.com/file/d/0B7S...it?usp=sharing
( The edited bhAODV.tcl is present in 'blackholeaodv2005-examples.tar.gz'.)

-
 
1 members found this post helpful.
Old 05-12-2014, 04:36 AM   #9
hd_uni_pro
Member
 
Registered: Mar 2014
Posts: 31

Rep: Reputation: Disabled
do'nt work

Quote:
Originally Posted by knudfl View Post
# 5.

A new package blackholeaodv2005-ns235-patching-2.tar.gz,
without the two examples.tcl is available :
https://drive.google.com/file/d/0B7S...it?usp=sharing
( The edited bhAODV.tcl is present in 'blackholeaodv2005-examples.tar.gz'.)

-
i download file and run it in ns2.29
but display error
files must run it in NS 2-35 ?

Last edited by hd_uni_pro; 05-12-2014 at 04:38 AM.
 
Old 05-12-2014, 06:19 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

Rep: Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635
# 9 .

If you edited the files in `black_h-o-l-e_attack_.zip´
to work in ns-2.29, why do any changes ?
 
Old 05-12-2014, 09:49 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

Rep: Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635
# 3 .

"blackholeaodv.tcl" is not a simulation file.
Is also located as ns-2.xx/blackholeaodv/blackholeaodv.tcl ,
.. and is meant to be included in tcl/lib/ns-lib.tcl , like :
Code:
#LMS
source ../mcast/ns-lms.tcl

# BlackoleAODV
source ../../blackholeaodv/blackholeaodv.tcl

# STL dependent modules get included
# ONLY when STL is found
... I.e. you would have to rebuild 'ns' to have it included. But : It doesn't work.
Other file changes https://drive.google.com/file/d/0B7S...it?usp=sharing

-

Last edited by knudfl; 05-13-2014 at 05:53 AM.
 
1 members found this post helpful.
Old 05-14-2014, 04:40 AM   #12
hd_uni_pro
Member
 
Registered: Mar 2014
Posts: 31

Rep: Reputation: Disabled
error

hello
I did download the file that you've

And ran

* But it gave the following message:
http://www.uplooder.net/img/image/12...a/untitled.JPG

How do I fix it
 
Old 05-14-2014, 05:55 AM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

Rep: Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635
# 12 .

See post #11 : "blackholeaodv.tcl" is not a simulation file.

And will also not work as a "configuration file".

Conclusion : Do not use 'blackholeaodv.tcl'.

-

Last edited by knudfl; 05-14-2014 at 08:06 AM.
 
1 members found this post helpful.
Old 05-14-2014, 06:11 AM   #14
hd_uni_pro
Member
 
Registered: Mar 2014
Posts: 31

Rep: Reputation: Disabled
Wow
Too bad

Last edited by hd_uni_pro; 05-24-2014 at 01:48 AM.
 
Old 05-24-2014, 01:50 AM   #15
hd_uni_pro
Member
 
Registered: Mar 2014
Posts: 31

Rep: Reputation: Disabled
how convert to simulation file !
 
  


Reply

Tags
blackhole, blackholeaodv, ns2


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
Make-3.82 error:Makefile:282:error: mixed implicit and normal rules Ramanc51 Linux - Newbie 5 06-08-2011 07:55 AM
error recompiling php BCarey Slackware 4 03-01-2008 06:56 PM
error in recompiling the code ravindra1103 Linux - Kernel 1 04-06-2007 04:35 AM
Lilo error after recompiling xp1o1d5 Linux - General 12 07-26-2006 10:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:35 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