LinuxQuestions.org
Visit Jeremy's Blog.
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-16-2010, 02:45 AM   #1
san_as
LQ Newbie
 
Registered: Feb 2010
Posts: 7

Rep: Reputation: 0
unable to install ns2.34 on ubuntu 9.10 running on vmworkstation 6


error what i am getting while installing is:-

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

I got reply from forum:
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=""

I changed line in configure & configure.in file.

SHLIB_LD="gcc -shared"

Plz suggest me answer.
 
Old 02-16-2010, 04:10 AM   #2
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
Well, you got an answer from @Mara
http://www.linuxquestions.org/questi...tu9.10-787025/
Not working ? ?
.....

The proof solution :
sudo apt-get install g++-4.3

And edit the ns-allinone-2.34/otcl-1.13/Makefile.in

from

CC = @CC@
CPP = @CXX@

to

CC = gcc-4.3
CPP = g++-4.3

Ref. http://www.linuxquestions.org/questi...9.10-782783/#2
.. post # 2.
.....


The location : /usr/src/ns-allinone-2.34/ is not recommended.
You will be much better off with :
/home/<user>/ns2/ns-allinone-2.34/ .
.....

P.S. : Lots of info > LQ Search → Tag Name = ns2
And : http://nsnam.isi.edu/nsnam/index.php/User_Information
.....

Last edited by knudfl; 02-16-2010 at 04:12 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
i m running ubuntu 8.10 .unable to login as a user in gui mode. chandan766 Linux - Newbie 1 04-05-2009 05:03 PM
Unable to install NS2 on fedora 5 azamjiva Linux - Newbie 19 10-08-2008 02:16 PM
unable to Run NS2 imania Linux - Networking 2 08-23-2008 10:56 AM
Unable to access internet sites without keepalive ping running (wired card, Ubuntu 5) rebthor Linux - Networking 2 05-18-2006 12:58 PM
Unable to install Open Officee, running KDE dcrede Debian 3 05-02-2005 01:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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