LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   problem in ns2 (https://www.linuxquestions.org/questions/linux-newbie-8/problem-in-ns2-4175533808/)

nadine01 02-12-2015 08:18 AM

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"

knudfl 02-12-2015 11:14 AM

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


-

nadine01 02-12-2015 03:14 PM

plz sir how to use it???

nadine01 02-12-2015 03:21 PM

Thannnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnk's sir

nadine01 02-13-2015 12:51 PM

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

knudfl 02-13-2015 01:13 PM

← 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


-

John VV 02-13-2015 01:19 PM

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-????)

nadine01 02-13-2015 03:11 PM

sir i have this result

that means leach it add????

knudfl 02-13-2015 05:46 PM

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


-

nadine01 02-13-2015 06:11 PM

thank u sir

i m sorry for image

nadine01 02-18-2015 11:30 AM

I'm very sorry sir

But in the leach.out i have 0 butyes

knudfl 02-18-2015 11:45 AM

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


-

nadine01 02-18-2015 12:14 PM

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

nadine01 02-18-2015 12:16 PM

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)

nadine01 02-18-2015 03:07 PM

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!


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