LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 09-13-2011, 04:53 AM   #1
Tellajeera Sushma
LQ Newbie
 
Registered: Sep 2011
Posts: 6

Rep: Reputation: Disabled
"otcl 1.8 make failed error exiting " while installing ns 2.27


Hello ...

I am trying to install ns 2.27 on ubuntu 9.10(using 32 bit OS) and got the following error:
==========================================================
* Build OTcl-1.8
============================================================
No .configure file found in current directory
Continuing with default options...
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for string.h... yes
checking for main in -lXbsd... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for dcgettext in -lintl... no
checking for getnodebyname in -ldnet_stub... no
checking that g++ can handle -O2... no
checking standard STL is available... no
checking for tcl.h... -I../include
checking for libtcl8.4... -L../lib -ltcl8.4
checking for init.tcl... ../lib/tcl8.4
checking for tclsh8.4.5... no
checking for tclsh8.4... ../bin/tclsh8.4
checking for tk.h... -I../include
checking for libtk8.4... -L../lib -ltk8.4
checking for tk.tcl... ../lib/tk8.4
checking for X11 header files
checking for X11 library archive
checking for XOpenDisplay in -lX11... yes
checking for XShmAttach in -lXext... yes
checking for ranlib... ranlib
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.a otcl.o
gcc -c -g -O2 -DNDEBUG -DUSE_SHM -I. -I/home/sushma/ns-allinone-2.27/include -I/home/sushma/ns-allinone-2.27/include -I/include otcl.c
ar cq libotcl.a otcl.o
ranlib libotcl.a
rm -f libotcl.so otcl.o so_locations
gcc -c -g -O2 -DNDEBUG -DUSE_SHM -fpic -I. -I/home/sushma/ns-allinone-2.27/include -I/home/sushma/ns-allinone-2.27/include -I/include otcl.c
ld -shared -o libotcl.so otcl.o
otcl.o: In function `OTclDispatch':
/home/sushma/ns-allinone-2.27/otcl-1.8/otcl.c:493: undefined reference to `__stack_chk_fail_local'
otcl.o: In function `Otcl_Init':
/home/sushma/ns-allinone-2.27/otcl-1.8/otcl.c:2281: 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.8 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems

Can anyone please help how to resolve this error
 
Old 09-13-2011, 05:23 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Welcome to LQ.

Ns-allinone-2.27 : Best method for Ubuntu ( 9.10 ), post # 3 here

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


Good luck.
 
Old 09-13-2011, 05:43 AM   #3
Tellajeera Sushma
LQ Newbie
 
Registered: Sep 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hello Knudfl,

Thank you for the reply. As you have pointed to post 3, why should we need ns 2.34allinone also ? Cant we install ns 2.27 without ns 2.34 ? As mentioned in post 3, I have done till adding hardy updates for gcc 3.3 at /etc/apt/sources.list. After adding, should we give command "sudo apt-get install g++-3.3" on shell? I did the same but shown "could'nt read the package". Please reply soon.

Thanks
Sushma

Last edited by Tellajeera Sushma; 09-13-2011 at 05:58 AM.
 
Old 09-13-2011, 06:12 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Replacing tcl tk otcl tclcl with the versions from ns-allinone-2.34
makes ns work. You would probably have found out, if you could run
the install as far as to ns-2.27/.


If you want to do the experiment, you can try if ns-allinone-2.27/
works with the 'ns-2.27-gcc410.patch' as the only modification.
http://www.linuxquestions.org/questi...379/page3.html
Post # 41. Works OK on Ubuntu 7.10.

..
 
1 members found this post helpful.
Old 09-13-2011, 09:32 AM   #5
Tellajeera Sushma
LQ Newbie
 
Registered: Sep 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hello Knudfl,

I came up with tk /tcl errors and otcl errors and resolved by applying otcl-113-configure.in.patch and again installing ns 2.27. But came up with new error:
make: Warning: File `Makefile.in' has modification time 7.2e+03 s in the future
Makefile.in is newer than Makefile.
You need to re-run configure.
false

Though I have changed gcc and g++ version to 3.3 in some of the files of indeputils/ directory, and made ./configure, make clean and make in ns 2.27, am getting the same error. Please help if you have solution for this.

Thanks,
sushma
 
Old 09-13-2011, 02:19 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Quote:
Makefile.in is newer than Makefile
Two solutions : 1) touch Makefile
2) Delete the Makefile, and run ./install in the top directory.


The complete solution for all errors : Start from scratch in a new
directory, like /home/<user-name>/ns2/.
And use the instructions linked in post #2.

..
 
  


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
Problem installing vpn client on Ubuntu: Failed to make module "cisco_ipsec.ko" challysand Linux - Newbie 1 08-29-2009 03:12 PM
make error. mex: compile of ' "mfitsio.c"' failed. mmateen Linux - Software 1 07-31-2009 10:56 PM
"Failed Dependency error" while installing RPM for "DateTime" perl modules giridhargopal.cj Linux - Newbie 7 11-19-2008 01:05 AM
"failed to make symlink " error adoniskhandu Linux - Newbie 2 06-16-2007 02:27 PM


All times are GMT -5. The time now is 12:27 PM.

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