LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Error during the installation of NS 2.29.3 (https://www.linuxquestions.org/questions/linux-software-2/error-during-the-installation-of-ns-2-29-3-a-894161/)

udaiya 07-27-2011 05:42 PM

Error during the installation of NS 2.29.3
 
Hi friends
During the installation of NS 2.29.3 in ubuntu 10.04 i got this error. can anybody help me please.

/home/udai/ns-allinone-2.29/otcl-1.11/otcl.c:495: undefined reference to `__stack_chk_fail_local'
otcl.o: In function `Otcl_Init':
/home/udai/ns-allinone-2.29/otcl-1.11/otcl.c:2284: undefined reference to `__stack_chk_fail_local'
ld: libotcl.so: hidden symbol `__stack_chk_fail_local' isn't defined
ld: final link failed: Nonrepresentable section on output
make: *** [libotcl.so] Error 1
otcl-1.11 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems


Thanks
UDAI

John VV 07-27-2011 06:45 PM

please use a descriptive title for a post
" help me" can get this post deleted

and use google for that ns2 error
and the install guide

udaiya 07-27-2011 07:47 PM

Thanks for ur reply
 
I tried several solution everything gives me some error.



Quote:

Originally Posted by John VV (Post 4427121)
please use a descriptive title for a post
" help me" can get this post deleted

and use google for that ns2 error
and the install guide


John VV 07-27-2011 08:00 PM

this looks like a build error ( someplace in the build of something)

you did not install something
or
you did not apply the required patches to build it
or ubuntu10 is to old for the patches you did install
or
?????

is there a "guide" you are fallowing ??????
if so
what ?
and where ?

???? and did you READ and fallow the error massage ?
http://nsnam.isi.edu/nsnam/index.php/Troubleshooting
what did you do ?
and what was the outcome of that ?

udaiya 07-27-2011 09:30 PM

I did as per READ me file
 
Dear John
My project is all about IEEE 802.11e. For Implementing they use NS-2.29.3 and Ns-2.27.For both the Package I am getting error.I am new to NS ,i do know how to solve this kind of error.
Still now I used to compile as per README file.
Besides I found three syntax errors in tcl.mp4 and configure.in file in tcl and otcl packages.I will correct the errors and then i tried to install it. i got this error. Do i have to prefer any other Operating system or Any other version.
Kindly help me.


Quote:

Originally Posted by John VV (Post 4427167)
this looks like a build error ( someplace in the build of something)

you did not install something
or
you did not apply the required patches to build it
or ubuntu10 is to old for the patches you did install
or
?????

is there a "guide" you are fallowing ??????
if so
what ?
and where ?

???? and did you READ and fallow the error massage ?
http://nsnam.isi.edu/nsnam/index.php/Troubleshooting
what did you do ?
and what was the outcome of that ?


udaiya 07-27-2011 09:37 PM

Request for installation procedure
 
Can you please tell me the exact procedure for the installation of either Ns 2.29.3 or Ns2.27



Quote:

Originally Posted by John VV (Post 4427167)
this looks like a build error ( someplace in the build of something)

you did not install something
or
you did not apply the required patches to build it
or ubuntu10 is to old for the patches you did install
or
?????

is there a "guide" you are fallowing ??????
if so
what ?
and where ?

???? and did you READ and fallow the error massage ?
http://nsnam.isi.edu/nsnam/index.php/Troubleshooting
what did you do ?
and what was the outcome of that ?


John VV 07-27-2011 11:03 PM

the instructions are on the wiki page i posted
and now here too
http://nsnam.isi.edu/nsnam/index.php...nstalling_ns-2

but the 2.29 version dates back to BEFORE 2006 and the 2.27 is even older
2.34 is the current and that is also a bit old 2009

also you are on ubuntu 10 also old 11.4 is current

search this forum for ns2 and nsnam

udaiya 07-27-2011 11:20 PM

same Error during the installation of NS 2.29.3
 
I followed the one what mentioned in wiki. i got the same error after ./install command on ns-allinone-2.29 directory
I couldn't find the command for ns-2.29.3 in Distribution specific Instructions


otcl.o: In function `OTclDispatch':
/home/udai/ns-allinone-2.29/otcl-1.11/otcl.c:495: undefined reference to `__stack_chk_fail_local'
otcl.o: In function `Otcl_Init':
/home/udai/ns-allinone-2.29/otcl-1.11/otcl.c:2284: undefined reference to `__stack_chk_fail_local'
ld: libotcl.so: hidden symbol `__stack_chk_fail_local' isn't defined
ld: final link failed: Nonrepresentable section on output
make: *** [libotcl.so] Error 1
otcl-1.11 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems

Regards
Udai


Quote:

Originally Posted by John VV (Post 4427267)
the instructions are on the wiki page i posted
and now here too
http://nsnam.isi.edu/nsnam/index.php...nstalling_ns-2

but the 2.29 version dates back to BEFORE 2006 and the 2.27 is even older
2.34 is the current and that is also a bit old 2009

also you are on ubuntu 10 also old 11.4 is current

search this forum for ns2 and nsnam


udaiya 07-27-2011 11:34 PM

ns2hcca patch in 2.29,3 format
 
Previously i installed ns-2.34 .But for my project i got the patch which is written for ns-2.29.3.
So i was not able to run the patch file in 2.34.I do know what changes need tobe done to make the patch run in 2.34
The patch information is available in the following link
http://cng1.iet.unipi.it/wiki/index.php/Ns2hcca

udaiya 07-28-2011 05:49 AM

Applied one solution but New error
 
Hi John
I find one solution in the following link
http://nsnam.isi.edu/nsnam/index.php/User_Information
Thay are saying “This error is because the linker being used is “ld -shared” instead of “gcc -shared”. If you edit one line in otcl-1.13/configure, and rerun install, it should work:”
I tried it but i got new error

Tcl.cc: In member function ‘void Tcl::eval(char*)’:
Tcl.cc:182: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc: In member function ‘int TclObject::traceVar(const char*, TclObject*)’:
Tcl.cc:421: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc: In static member function ‘static int TclClass::create_shadow(void*, Tcl_Interp*, int, const char**)’:
Tcl.cc:509: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc:511: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc: In static member function ‘static int TclClass::dispatch_instvar(void*, Tcl_Interp*, int, const char**)’:
Tcl.cc:566: error: invalid conversion from ‘const char*’ to ‘char*’
Tcl.cc:571: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc: In member function ‘virtual void TclClass::bind()’:
Tcl.cc:603: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc:605: warning: deprecated conversion from string constant to ‘char*’
make: *** [Tcl.o] Error 1
tclcl-1.17 make failed! Exiting …














Quote:

Originally Posted by John VV (Post 4427267)
the instructions are on the wiki page i posted
and now here too
http://nsnam.isi.edu/nsnam/index.php...nstalling_ns-2

but the 2.29 version dates back to BEFORE 2006 and the 2.27 is even older
2.34 is the current and that is also a bit old 2009

also you are on ubuntu 10 also old 11.4 is current

search this forum for ns2 and nsnam


knudfl 07-28-2011 06:10 AM

'ns-2.29.3' :
cd ns-allinone-2.29/ && export CC=gcc-3.4 CXX=g++-3.4 && ./install

'ns-2.34' : Will usually compile with the default gcc/g++ 4.4.3.
Problems ? Then use version 3.4 like for ns-allinone-2.29.

For g++-3.4 : Add hardy lines to /etc/apt/sources.list :
Code:

deb http://76.73.4.58/ubuntu/ hardy-updates main
deb http://76.73.4.58/ubuntu/ hardy universe
deb http://security.ubuntu.com/ubuntu hardy-security main
deb http://security.ubuntu.com/ubuntu hardy-security universe

And : sudo apt-get update && sudo apt-get install g++-3.4

"ns2hcca patch" : Please show a link for download.

All ns2 versions have install info : LQ Search → keyword = ns-allinone.

NS 2.27 Ubuntu #3 http://www.linuxquestions.org/questi...10-a-782356/#3

..

udaiya 07-28-2011 06:40 AM

Error Again
 
Hi
First of all Thanks.And I followed the steps you mentioned below

For "sudo apt-get install g++-3.4" it says
Reading package lists... Done
Building dependency tree
Reading state information... Done
g++-3.4 is already the newest version.
The following packages were automatically installed and are no longer required:
libavutil49
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.

For "./install" it says
`.gnu.linkonce.t._ZN11taskPending10taskStatusEh' referenced in section `.rodata' of wpan/p802_15_4mac.o: defined in discarded section `.gnu.linkonce.t._ZN11taskPending10taskStatusEh' of wpan/p802_15_4mac.o
collect2: ld returned 1 exit status
make: *** [ns] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
udai@udai-laptop:~/ns-allinone-2.29$

Regards
Udai

Quote:

Originally Posted by knudfl (Post 4427509)
'ns-2.29.3' :
cd ns-allinone-2.29/ && export CC=gcc-3.4 CXX=g++-3.4 && ./install

'ns-2.34' : Will usually compile with the default gcc/g++ 4.4.3.
Problems ? Then use version 3.4 like for ns-allinone-2.29.

For g++-3.4 : Add hardy lines to /etc/apt/sources.list :
Code:

deb http://76.73.4.58/ubuntu/ hardy-updates main
deb http://76.73.4.58/ubuntu/ hardy universe
deb http://security.ubuntu.com/ubuntu hardy-security main
deb http://security.ubuntu.com/ubuntu hardy-security universe

And : sudo apt-get update && sudo apt-get install g++-3.4

"ns2hcca patch" : Please show a link for download.

All ns2 versions have install info : LQ Search → keyword = ns-allinone.

NS 2.27 Ubuntu #3 http://www.linuxquestions.org/questi...10-a-782356/#3

..


knudfl 07-28-2011 09:10 AM

# 12 : Is this about ns-2.34 or ns-2.29 ? ? Were any patches applied ?

General solution : cd ns-allinone-2.xx/ns-2.xx/ && make clean.
... And then back to :
cd ns-allinone-2.xx/ && export CC=gcc-3.4 CXX=g++-3.4 && ./install


And a link for the "ns2hcca patch", please.

..

udaiya 07-28-2011 09:16 AM

I dont want ns 2.34. i want only ns 2.29.3
Ns2hcca patch will be available in the following link

http://cng1.iet.unipi.it/wiki/index.php/Ns2hcca




Quote:

Originally Posted by knudfl (Post 4427672)
# 12 : Is this about ns-2.34 or ns-2.29 ? ? Were any patches applied ?

General solution : cd ns-allinone-2.xx/ns-2.xx/ && make clean.
... And then back to :
cd ns-allinone-2.xx/ && export CC=gcc-3.4 CXX=g++-3.4 && ./install


And a link for the "ns2hcca patch", please.

..


knudfl 07-28-2011 02:29 PM

No luck on Ubuntu 10.04 Lucid, 64bits with ns-2.29.3 + ns2hcca-2.29-060823.patch.
http://cng1.iet.unipi.it/archive/ns2...60823.patch.gz

I also get the error ""`.gnu.linkonce.t._ZN11taskPending10taskStatusEh' referenced
in section `.rodata' of wpan/p802_15_4mac.o: defined in discarded section""


CentOS 5.6, 32bits : No errors.

All later ns2 versions were originally built and tested on RHEL5, CentOS 5.
Usually there are workarounds for Ubuntu. Don't know any for this patch.
Have tried with g++-3.3, g++-3.4, g++-4.1 : Errors.
An un-patched ns-2.29.3, and ns-2.29.3 with other patches : No problems.

..


All times are GMT -5. The time now is 10:54 AM.