LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 07-27-2011, 05:42 PM   #1
udaiya
LQ Newbie
 
Registered: Jul 2011
Posts: 15

Rep: Reputation: Disabled
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

Last edited by udaiya; 07-27-2011 at 07:45 PM.
 
Old 07-27-2011, 06:45 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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
 
Old 07-27-2011, 07:47 PM   #3
udaiya
LQ Newbie
 
Registered: Jul 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
Thanks for ur reply

I tried several solution everything gives me some error.



Quote:
Originally Posted by John VV View Post
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
 
Old 07-27-2011, 08:00 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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 ?
 
Old 07-27-2011, 09:30 PM   #5
udaiya
LQ Newbie
 
Registered: Jul 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
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 View Post
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 ?
 
Old 07-27-2011, 09:37 PM   #6
udaiya
LQ Newbie
 
Registered: Jul 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
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 View Post
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 ?
 
Old 07-27-2011, 11:03 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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

Last edited by John VV; 07-27-2011 at 11:12 PM.
 
Old 07-27-2011, 11:20 PM   #8
udaiya
LQ Newbie
 
Registered: Jul 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
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 View Post
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
 
Old 07-27-2011, 11:34 PM   #9
udaiya
LQ Newbie
 
Registered: Jul 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
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
 
Old 07-28-2011, 05:49 AM   #10
udaiya
LQ Newbie
 
Registered: Jul 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
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 View Post
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
 
Old 07-28-2011, 06:10 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
'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

..

Last edited by knudfl; 07-28-2011 at 06:12 AM.
 
Old 07-28-2011, 06:40 AM   #12
udaiya
LQ Newbie
 
Registered: Jul 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
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 View Post
'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

..
 
Old 07-28-2011, 09:10 AM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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.

..
 
Old 07-28-2011, 09:16 AM   #14
udaiya
LQ Newbie
 
Registered: Jul 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
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 View Post
# 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.

..
 
Old 07-28-2011, 02:29 PM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.

..

Last edited by knudfl; 07-28-2011 at 02:36 PM.
 
  


Reply



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



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

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