LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   problem with ns2.27 installation (https://www.linuxquestions.org/questions/linux-software-2/problem-with-ns2-27-installation-4175453117/)

IMEN SOUID 03-07-2013 08:41 AM

problem with ns2.27 installation
 
i installed ns2.34 but i remove it and want install ns2.27 the problem is that when i do ./install i got this 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.32-33-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/imen/ns-allinone-2.27/include -I/home/imen/ns-allinone-2.27/include -I/include otcl.c
ld -shared -o libotcl.so otcl.o
otcl.o: In function `OTclDispatch':
/home/imen/ns-allinone-2.27/otcl-1.8/otcl.c:493: undefined reference to `__stack_chk_fail_local'
otcl.o: In function `Otcl_Init':
/home/imen/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

i thought it's a patch problem so i removed all the files related to gcc4.3 because ns2.27 works with 4.1 but i got always the same error.please can anyone help me this is urgent !! thx

knudfl 03-07-2013 11:58 AM

Welcome to LQ.
Quote:

I installed ns2.34 but i remove it and want install ns2.27
Actually there is no reason to remove ns-2.34.
You can have as many versions of ns-allinone-2.xx as you want,
installed at the same time. But not add anything to .bashrc / .bash_profile.


Which Linux OS are you using ?

-

IMEN SOUID 03-07-2013 01:32 PM

Quote:

Originally Posted by knudfl (Post 4906872)
Welcome to LQ.

Actually there is no reason to remove ns-2.34.
You can have as many versions of ns-allinone-2.xx as you want,
installed at the same time. But not add anything to .bashrc / .bash_profile.


Which Linux OS are you using ?

-

thx very much.actually it's a problem of my patch,i changed it and now everything is ok.


All times are GMT -5. The time now is 03:06 PM.