LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-12-2015, 09:18 AM   #1
nadine01
Member
 
Registered: Oct 2014
Posts: 62

Rep: Reputation: Disabled
problem in ns2


hello friend

i have problem in instalation of ns2.34
ld: libotcl.so: hidden symbol `__stack_chk_fail_local' isn't defined
ld: final link failed: Bad value
make: *** [libotcl.so] Error 1
otcl-1.13 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems

i do this solution but don't work
Replace
-SHLIB_LD="ld -shared"
with
+SHLIB_LD="gcc -shared"
 
Old 02-12-2015, 12:14 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Please use the patch ``otcl_ns234_gcc-4.4.patch´´
https://drive.google.com/file/d/0B7S...ew?usp=sharing
... which will edit the otcl-1.13/Makefile.in , line 16
From : SHLIB_LD= @SHLIB_LD@
To : SHLIB_LD= gcc -shared


* The classic way of using a patch for otcl-1.13/configure :
... isn't working with e.g. Ubuntu 12.04 - i686.
( Example "patch not working" : otcl-113-configure.in.patch ).
I.e. please do not edit otcl-1.13/configure


-

Last edited by knudfl; 02-12-2015 at 12:40 PM.
 
1 members found this post helpful.
Old 02-12-2015, 04:14 PM   #3
nadine01
Member
 
Registered: Oct 2014
Posts: 62

Original Poster
Rep: Reputation: Disabled
plz sir how to use it???
 
Old 02-12-2015, 04:21 PM   #4
nadine01
Member
 
Registered: Oct 2014
Posts: 62

Original Poster
Rep: Reputation: Disabled
Thannnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnk's sir
 
Old 02-13-2015, 01:51 PM   #5
nadine01
Member
 
Registered: Oct 2014
Posts: 62

Original Poster
Rep: Reputation: Disabled
hello sir

know i try with this https://abdusyarif.wordpress.com/201...-step-by-step/

all step done until
If the previous commands passed successfully then you are ready to test your “Leach” by running ./test:
i have this problem
bash: ./test: Permission denied
 
Old 02-13-2015, 02:13 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
← ref. #5.

Permission denied :
Is what you get when unpacking ns-allinone-2.34.tar.gz with a Windows© tool.

You can do : $ chmod +x test
.... to add the executable bit.
May also be corrupt : 'leach_test'.


P.S. : The text ..
https://abdusyarif.wordpress.com/201...-step-by-step/
... isn't valid any more. Don't expect Leach to work.
The text is a copy of the '01 Apr 2011' post #5 here
http://www.linuxquestions.org/questi...34-a-870368/#5
The edited cmu-trace.h is in post #9 here
http://www.linuxquestions.org/questi...ra13-907076/#9


-

Last edited by knudfl; 02-13-2015 at 02:18 PM.
 
1 members found this post helpful.
Old 02-13-2015, 02:19 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
Quote:
The text is a copy of the '01 Apr 2011' post
over the years i have learned NOT to take anything published on April FIRST ( April FOOLS day) seriously
not even in scientific journals

always be skeptical of ANYTHING published on 04-01-???? ( or DMY 01-04-????)
 
Old 02-13-2015, 04:11 PM   #8
nadine01
Member
 
Registered: Oct 2014
Posts: 62

Original Poster
Rep: Reputation: Disabled
sir i have this result

that means leach it add????

Last edited by nadine01; 02-13-2015 at 07:07 PM.
 
Old 02-13-2015, 06:46 PM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
← ref. #5.

There is no command by name ./leach.out .
The script leach.out is a text file, to be read in an editor.
Or with $ cat leach.out

The same goes for leach.err : Also a text file that you can read.

The only command to be run is $ ./test , which will then run leach_test,
... with the options you can read in leach_test.


P.S. : No black images, please. Just copy / paste the text to the post.


-
 
1 members found this post helpful.
Old 02-13-2015, 07:11 PM   #10
nadine01
Member
 
Registered: Oct 2014
Posts: 62

Original Poster
Rep: Reputation: Disabled
thank u sir

i m sorry for image
 
Old 02-18-2015, 12:30 PM   #11
nadine01
Member
 
Registered: Oct 2014
Posts: 62

Original Poster
Rep: Reputation: Disabled
I'm very sorry sir

But in the leach.out i have 0 butyes
 
Old 02-18-2015, 12:45 PM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
← ref. #11.

What's in leach.err ?
Must look like this, for an OK build of ns-2.34 + {leach, pegasis}
Code:
mac/chanel.cc: INITIALIZE THE LIST xListHead
SORTING LISTS ...DONE!
If any different, it's an indication of using the wrong 'ns'.
Please make sure, that you have no PATH set for ns in .bashrc,
.. and that the '/usr/local/bin/ns' is the one with "Leach".


-
 
Old 02-18-2015, 01:14 PM   #13
nadine01
Member
 
Registered: Oct 2014
Posts: 62

Original Poster
Rep: Reputation: Disabled
When i make ./test
i have this msg

num_nodes is set 3
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Loading connection pattern...
Loading scenario file...
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 89.8
SORTING LISTS ...DONE!
NS EXITING...
 
Old 02-18-2015, 01:16 PM   #14
nadine01
Member
 
Registered: Oct 2014
Posts: 62

Original Poster
Rep: Reputation: Disabled
in leach error

invalid command name "source/home/laroui/Bureau/ns-allinone-2.34/ns-2.34/mit/uAMPS/stats.tcl"
while executing
"source/home/laroui/Bureau/ns-allinone-2.34/ns-2.34/mit/uAMPS/stats.tcl"
(file "mit/uAMPS/sims/uamps.tcl" line 16)
invoked from within
"source.orig mit/uAMPS/sims/uamps.tcl"
("uplevel" body line 1)
invoked from within
"uplevel source.orig[list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source mit/uAMPS/sims/uamps.tcl"
(file "tcl/mobility/leach.tcl" line 18)
invoked from within
"source.orig tcl/mobility/leach.tcl"
("uplevel" body line 1)
invoked from within
"uplevel source.orig[list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source tcl/mobility/$opt(rp).tcl"
(file "tcl/ex/wireless.tcl" line 187)
 
Old 02-18-2015, 04:07 PM   #15
nadine01
Member
 
Registered: Oct 2014
Posts: 62

Original Poster
Rep: Reputation: Disabled
Now i have this problem


At 1.0999999999999999:
Total Energy = 29779.716165978647
Total Data = 0
Total Alive = 4

Simulation complete.

num_nodes is set 101
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 222.8


and leach.err
INITIALIZE THE LIST xListHead
SORTING LISTS ...DONE!
 
  


Reply

Tags
ns2, pegasis


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
after installing NS2 termina shows the message ns2 not installed profaditya Linux - Newbie 2 09-25-2014 03:15 PM
NS2: How to set idle(sleeping) time to a node in wireless network in ns2 pon Linux - Newbie 0 08-19-2014 07:45 PM
NS2: Require eap-sim authentication code for simulation in ns2.24 noamankhatib Linux - Software 0 04-29-2013 01:03 PM


All times are GMT -5. The time now is 11:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration