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-04-2010, 12:52 PM   #1
san_as
LQ Newbie
 
Registered: Feb 2010
Posts: 7

Rep: Reputation: 0
unable to install ns 2.34 on ubuntu9.10


Hello all,
I am getting problem while installing ns allinone 2.34 on ubuntu 9.10.
I am getting following error while building otcl-1.13

otcl.o: In function `Otcl_Init':
/usr/src/ns-allinone-2.34/otcl-1.13/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.13 make failed! Exiting ...


Plz tell the solution.Waiting for reply
Thank you all.
 
Old 02-04-2010, 02:25 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
Look into http://nsnam.isi.edu/nsnam/index.php/User_Information, Ubuntu installation guide. In short
Quote:
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:

--- configure.orig 2009-11-02 12:14:52.556167945 -0800
+++ configure 2009-11-02 12:17:28.966706099 -0800
@@ -6301,7 +6301,7 @@
;;
Linux*)
SHLIB_CFLAGS="-fpic"
- SHLIB_LD="ld -shared"
+ SHLIB_LD="gcc -shared"
SHLIB_SUFFIX=".so"
DL_LIBS="-ldl"
SHLD_FLAGS=""
 
Old 02-06-2010, 05:07 AM   #3
san_as
LQ Newbie
 
Registered: Feb 2010
Posts: 7

Original Poster
Rep: Reputation: 0
still problem exist in installing ns2.34

hi,thank y for reply.I edit line SHLIB_LD="gcc -shared".But still problem persist.I made changes in both configure & configure.in file.

Changes made are as follows:
;;
Linux*)
SHLIB_CFLAGS="-fpic"
SHLIB_LD="gcc -shared"
SHLIB_SUFFIX=".so"
DL_LIBS="-ldl"
SHLD_FLAGS=""
Is there any other correction is required.

Last edited by san_as; 02-06-2010 at 05:10 AM.
 
  


Reply


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
How to set up a tv tuner card in ubuntu9.10 basheer Ubuntu 4 04-08-2010 09:55 AM
grub, ubuntu9.10 and XP with encryption: bad combo! tangomar Linux - Newbie 5 02-02-2010 04:19 PM
Display problems in ubuntu9 on thinkpad electron_14 Linux - Newbie 1 08-22-2009 03:15 AM
adding pics to my iPod via Ubuntu9 demonbladenet Linux - Newbie 1 04-17-2009 08:58 AM


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