LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 11-02-2009, 06:09 AM   #1
foottuns
Member
 
Registered: Nov 2009
Location: London
Distribution: Fedora 16
Posts: 92

Rep: Reputation: 17
ns installation wont let me do it on ubuntu 9.10


Helllo there, I don't know if here is the place but I am trying to configure ns on my system, I saw a few tutorials which they were interested and good, but all the time when I try to compile the ns source I get this error and I don't know what should I do to fix it.

Error

Code:

Code:
checking for a BSD-compatible install... /usr/bin/install -c
checking system version (for dynamic loading)... Linux-2.6.31-14-generic
No explicit static compilation flag; setting V_STATIC to ""
checking for dlopen in -ldl... yes
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
rm -f libotcl.so otcl.o so_locations
gcc -c -g -O2 -DNDEBUG -DUSE_SHM -fpic -I. -I/home/bogdan/ns/ns-allinone-2.34/include -I/home/bogdan/ns/ns-allinone-2.34/include -I/home/bogdan/ns/ns-allinone-2.34/include -I/include  otcl.c
ld -shared -o libotcl.so otcl.o
otcl.o: In function `OTclDispatch':
/home/bogdan/ns/ns-allinone-2.34/otcl-1.13/otcl.c:495: undefined reference to `__stack_chk_fail_local'
otcl.o: In function `Otcl_Init':
/home/bogdan/ns/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 ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
 
Old 11-02-2009, 06:50 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,539

Rep: Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506
Welcome to LQ.

I guess, you already have all the requirements :
libx11-dev , libxmu-dev , libxmu-headers , libxt-dev , libtool

The problem can be the gcc-4.4.1 / g++-4.4.1 compilers.
But I am not sure , gcc-4.4.0 / g++-4.4.0 works fine on
Fedora 11 with ns-allinone-2.34 .
But please try this : sudo apt-get install g++-4.3

.. and ' CC=gcc-4.3 CXX=g++-4.3 ./install '

I have not yet installed Ubuntu 9.10 Karmic, may be later today.
( The Swedish Ubuntu download link works at max. speed.)
And I will then test compile ns-allinone-2.34 .

Other ns2 info here at LQ : Main Menu > > LQ Search → Tag Name = ns2
.....

Last edited by knudfl; 11-02-2009 at 10:20 AM.
 
Old 11-02-2009, 08:41 AM   #3
foottuns
Member
 
Registered: Nov 2009
Location: London
Distribution: Fedora 16
Posts: 92

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by knudfl View Post
Welcome to LQ.

I guess, you already have all the requirements :
libx11-dev , libxmu-dev , libxmu-headers , libxt-dev , libtool

The problem can be the gcc-4.4.1 / g++-4.4.1 compilers.
But I am not sure , gcc-4.4.0 / g++-4.4.0 works fine on
Fedora 11 with ns-allinone-2.34 .
But please try this : sudo apt-get install g++-4.3

.. and ' ./install CC=gcc-4.3 CXX=g++-4.3

I have not yet installed Ubuntu 9.10 Karmic, may be later today.
( The Swedish Ubuntu download link works at max. speed.)
And I will then test compile ns-allinone-2.34 .

Other ns2 info here at LQ : Main Menu > > LQ Search → Tag Name = ns2
.....

I did what have you told me but now I got this error,

Code:
checking for a BSD-compatible install... /usr/bin/install -c
checking system version (for dynamic loading)... Linux-2.6.31-14-generic
No explicit static compilation flag; setting V_STATIC to ""
checking for dlopen in -ldl... yes
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
rm -f libotcl.so otcl.o so_locations
gcc -c -g -O2 -DNDEBUG -DUSE_SHM -fpic -I. -I/home/bogdan/ns/ns-allinone-2.34/include -I/home/bogdan/ns/ns-allinone-2.34/include -I/home/bogdan/ns/ns-allinone-2.34/include -I/include  otcl.c
ld -shared -o libotcl.so otcl.o
otcl.o: In function `OTclDispatch':
/home/bogdan/ns/ns-allinone-2.34/otcl-1.13/otcl.c:495: undefined reference to `__stack_chk_fail_local'
otcl.o: In function `Otcl_Init':
/home/bogdan/ns/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 ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
 
Old 11-02-2009, 10:38 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,539

Rep: Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506
Sorry, my mistake. The correct order seems to be
' CC=gcc-4.3 CXX=g++-4.3 ./install '

And, by the way, there are no c++ code in otcl,
so the 'CC=gcc-4.3 ./install' alone will probably do.

But as only ' otcl ' dislikes gcc-4.4.1, I will choose
this solution : Edit ' otcl-1.13/Makefile.in ', line 7
Code:
From :
CC=       @CC@

to :
CC=       gcc-4.3
... And ns-allinone-2.34 compiles on Ubuntu 9.10 with no errors.
I will attach the result of ' ./validate ' here when it has
finished.
.....

Last edited by knudfl; 11-02-2009 at 10:39 AM.
 
Old 11-02-2009, 10:47 AM   #5
foottuns
Member
 
Registered: Nov 2009
Location: London
Distribution: Fedora 16
Posts: 92

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by knudfl View Post
Sorry, my mistake. The correct order seems to be
' CC=gcc-4.3 CXX=g++-4.3 ./install '

And, by the way, there are no c++ code in otcl,
so the 'CC=gcc-4.3 ./install' alone will probably do.

But as only ' otcl ' dislikes gcc-4.4.1, I will choose
this solution : Edit ' otcl-1.13/Makefile.in ', line 7
Code:
From :
CC=       @CC@

to :
CC=       gcc-4.3
... And ns-allinone-2.34 compiles on Ubuntu 9.10 with no errors.
I will attach the result of ' ./validate ' here when it has
finished.
.....
Ok, mate I will do it in half an hour, thanks for your time and I will come back and tell you everything what happen.........

Thanks again......

Regards Dan,
 
Old 11-02-2009, 11:11 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,539

Rep: Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506
I recommend this :

Ubuntu : sudo apt-get install tcl8.4 tk8.4

cd ns-allinone-2.34/otcl-1.13/ &&
./configure --prefix=/usr --enable-release --enable-devel
&& make && sudo make install
cd ../tclcl-1.19/ &&
./configure --prefix=/usr --enable-release --enable-devel
&& make && sudo make install
cd ../ns-2.34/
sudo make install
cd ../nam-1.14/
sudo make install
cd /usr/local/bin/
sudo strip *
.. And thus avoid setting any new path's to run ns and nam.
.. The install only copies 18 files to /usr/local/
.. Ubuntu910 has tcl8.4.19 / tk8.4.19 as default.
.. So you can immediately run e.g. ' ns example1.tcl '
.....
.....
Good luck!
.....
P.S. : please see some seven ' examples.tcl ' attached here :
http://www.linuxquestions.org/questi...993/page2.html
Not all will work .. may be you can edit them to do so ?
Or may be tcl / tk 8.4.19 isn't 100% compatibel with the
8.4.18 compiled ns-allinone files ?
.....
.....
P.S. _ P.S. : validate overall report : all tests passed.
.....

Last edited by knudfl; 04-16-2010 at 09:55 PM.
 
Old 11-02-2009, 02:27 PM   #7
foottuns
Member
 
Registered: Nov 2009
Location: London
Distribution: Fedora 16
Posts: 92

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by knudfl View Post
Sorry, my mistake. The correct order seems to be
' CC=gcc-4.3 CXX=g++-4.3 ./install '

And, by the way, there are no c++ code in otcl,
so the 'CC=gcc-4.3 ./install' alone will probably do.

But as only ' otcl ' dislikes gcc-4.4.1, I will choose
this solution : Edit ' otcl-1.13/Makefile.in ', line 7
Code:
From :
CC=       @CC@

to :
CC=       gcc-4.3
... And ns-allinone-2.34 compiles on Ubuntu 9.10 with no errors.
I will attach the result of ' ./validate ' here when it has
finished.
.....

hello mate, is working thanks for your help, i didn't had to modify nothing, i did what you have told me and now is working perfectly as i was want it, thanks a lot i need it so much for my school project, cool.



i have a question to ask, i have to build a cluster with 100 pc what i am interested is in hardware, can you give me some advices regarding to this. thanks again and good luck...
 
Old 11-02-2009, 02:47 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,539

Rep: Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506
Cluster : New topic ... may be you should start a new thread.

And get answers from LQ members working with clusters.
 
Old 11-02-2009, 04:51 PM   #9
foottuns
Member
 
Registered: Nov 2009
Location: London
Distribution: Fedora 16
Posts: 92

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by knudfl View Post
Cluster : New topic ... may be you should start a new thread.

And get answers from LQ members working with clusters.
ok cool thanks a lot..........
 
Old 11-04-2009, 08:37 AM   #10
yasirimteyaz
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Rep: Reputation: 1
It's working... thanks a tonn
 
Old 11-05-2009, 02:41 PM   #11
joelits
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Rep: Reputation: 0
thanks

Last edited by joelits; 11-05-2009 at 03:37 PM.
 
Old 11-06-2009, 07:01 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,539

Rep: Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506
To @ yasirimteyaz and @ joelits :

You may wish to know this tool too :

http://i390.photobucket.com/albums/o..._THANKS333.jpg

Last edited by knudfl; 11-29-2009 at 09:28 PM.
 
Old 11-06-2009, 10:49 AM   #13
joelits
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
To @ yasirimteyaz and @ joelits :

You may wish to know this tool too :

already did, another question:

i've already installed ns-allinone and edit bashrc but when i type ns still appears commando not found. any recommendation??

Thanks
 
Old 11-06-2009, 10:50 AM   #14
yasirimteyaz
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Rep: Reputation: 1
Hey! what changes did u make in .bashrc ??...
I think u didn't change the path correctly...

Quote:
Originally Posted by joelits View Post
already did, another question:

i've already installed ns-allinone and edit bashrc but when i type ns still appears commando not found. any recommendation??

Thanks
 
Old 11-06-2009, 11:16 AM   #15
joelits
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Rep: Reputation: 0
Quote:
Originally Posted by yasirimteyaz View Post
Hey! what changes did u make in .bashrc ??...
I think u didn't change the path correctly...

i made itchanging /your/path/ by the correct path)

# LD_LIBRARY_PATH
OTCL_LIB=/your/path/ns-allinone-2.32/otcl-1.13
NS2_LIB=/your/path/ns-allinone-2.32/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB
# TCL_LIBRARY
TCL_LIB=/your/path/ns-allinone-2.32/tcl8.4.15/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB
# PATH
XGRAPH=/your/path/ns-allinone-2.32/bin:/your/path/ns-allinone-2.32/tcl8.4.15/unix:/your/path/ns-allinone-2.32/tk8.4.14/unix
NS=/your/path/ns-allinone-2.32/ns-2.32/
NAM=/your/path/ns-allinone-2.32/nam-1.13/
PATH=$PATH:$XGRAPH:$NS:$NAM
 
  


Reply

Tags
ns2, ns234


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
slackware installation wont install. xlordt Slackware 9 02-21-2008 09:48 AM
Installation wont work with 6800 GS scripts Linux - Hardware 1 06-16-2006 10:15 AM
New installation cd's wont boot BACTRATE Suse/Novell 7 12-05-2005 09:15 AM
RH9 wont boot after installation FrancoisRabe Linux - Software 1 01-24-2005 01:40 AM
Linux wont boot after installation Sporndog Linux - Newbie 2 03-24-2004 02:08 AM


All times are GMT -5. The time now is 08:44 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration