LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 03-31-2011, 07:25 PM   #46
shidayat
LQ Newbie
 
Registered: Mar 2011
Posts: 11

Rep: Reputation: 0

Code:
Nam has been installed successfully.
Please compile your xgraph separately.
Please compile your gt-itm & sgb2ns separately.
Ns-allinone package has been installed successfully.
Here are the installation places:
tcl8.4.5:	/home/shidayat/ns2/ns-allinone-2.27/{bin,include,lib}
tk8.4.5:		/home/shidayat/ns2/ns-allinone-2.27/{bin,include,lib}
otcl:		/home/shidayat/ns2/ns-allinone-2.27/otcl-1.8
tclcl:		/home/shidayat/ns2/ns-allinone-2.27/tclcl-1.15
ns:		/home/shidayat/ns2/ns-allinone-2.27/ns-2.27/ns
nam:	/home/shidayat/ns2/ns-allinone-2.27/nam-1.10/nam
yes, finally installation complete. thank you knudfl.

ps:
after patching tk-8.4 and otcl-113, i made a change on Makefile.in at otcl-1.8 --> CC = gcc-3.3
then after that ./install
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 04-05-2011, 02:31 AM   #47
fahimeh_ak
LQ Newbie
 
Registered: Jul 2009
Posts: 13

Rep: Reputation: 0
Thanks

Thank you so much
using "export CC=gcc-3.3 CXX=g++-3.3" my ns2.27 installed successfully!
but I have another problem now.
before installing ns2.27 I had install ns2.34, and now i edit bashrc file as bellow:

Code:
# LD_LIBRARY_PATH
OTCL_LIB=/home/fahimeh/ns/ns-allinone-2.27/otcl-1.8
NS2_LIB=/home/fahimeh/ns/ns-allinone-2.27/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=/home/fahimeh/ns/ns-allinone-2.27/tcl8.4.5/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB

# PATH
XGRAPH=/home/fahimeh/ns/ns-allinone-2.27/bin:/home/fahimeh/ns/ns-allinone-2.27/tcl8.4.5/unix:/home/fahimeh/ns/ns-allinone-2.27/tk8.4.5/unix
NS=/home/fahimeh/ns/ns-allinone-2.27/ns-2.27/
NAM=/home/fahimeh/ns/ns-allinone-2.27/nam-1.10/
PATH=$PATH:$XGRAPH:$NS:$NAM
but when i use ns from command line it get following error:

Code:
** glibc detected *** ns: realloc(): invalid next size: 0x00000000024d28f0 ***
======= Backtrace: =========
/lib/libc.so.6(+0x775b6)[0x7f1ff2c3a5b6]
/lib/libc.so.6(+0x7dd96)[0x7f1ff2c40d96]
/lib/libc.so.6(realloc+0xf0)[0x7f1ff2c410b0]
ns(Tcl_Realloc+0x15)[0x838f75]
ns(Tcl_SetObjLength+0x7a)[0x88b32a]
ns(TclpNativeJoinPath+0xa5)[0x863a25]
ns(Tcl_FSJoinPath+0x42b)[0x87403b]
ns(Tcl_JoinPath+0x5f)[0x86267f]
ns(TclpInitLibraryPath+0x5a3)[0x89e303]
ns[0x854777]
ns(Tcl_FindExecutable+0x92)[0x8548a2]
ns(Tcl_Main+0x3d)[0x87a18d]
ns(nslibmain+0x25)[0x827a01]
ns(main+0x20)[0x827b90]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7f1ff2be1c4d]
ns[0x594b09]
======= Memory map: ========
00400000-00a0a000 r-xp 00000000 07:00 811317                             /home/fahimeh/ns-allinone-2.34-mysip/ns-2.34/ns
00c09000-00c0b000 r--p 00609000 07:00 811317                             /home/fahimeh/ns-allinone-2.34-mysip/ns-2.34/ns
00c0b000-00caa000 rw-p 0060b000 07:00 811317                             /home/fahimeh/ns-allinone-2.34-mysip/ns-2.34/ns
00caa000-00cb7000 rw-p 00000000 00:00 0 
024cb000-024ec000 rw-p 00000000 00:00 0                                  [heap]
7f1fec000000-7f1fec021000 rw-p 00000000 00:00 0 
7f1fec021000-7f1ff0000000 ---p 00000000 00:00 0 
7f1ff259d000-7f1ff25a2000 r-xp 00000000 07:00 265010                     /usr/lib/libXdmcp.so.6.0.0
7f1ff25a2000-7f1ff27a1000 ---p 00005000 07:00 265010                     /usr/lib/libXdmcp.so.6.0.0
7f1ff27a1000-7f1ff27a2000 r--p 00004000 07:00 265010                     /usr/lib/libXdmcp.so.6.0.0
7f1ff27a2000-7f1ff27a3000 rw-p 00005000 07:00 265010                     /usr/lib/libXdmcp.so.6.0.0
7f1ff27a3000-7f1ff27a5000 r-xp 00000000 07:00 264999                     /usr/lib/libXau.so.6.0.0
7f1ff27a5000-7f1ff29a5000 ---p 00002000 07:00 264999                     /usr/lib/libXau.so.6.0.0
7f1ff29a5000-7f1ff29a6000 r--p 00002000 07:00 264999                     /usr/lib/libXau.so.6.0.0
7f1ff29a6000-7f1ff29a7000 rw-p 00003000 07:00 264999                     /usr/lib/libXau.so.6.0.0
7f1ff29a7000-7f1ff29c2000 r-xp 00000000 07:00 266005                     /usr/lib/libxcb.so.1.1.0
7f1ff29c2000-7f1ff2bc1000 ---p 0001b000 07:00 266005                     /usr/lib/libxcb.so.1.1.0
7f1ff2bc1000-7f1ff2bc2000 r--p 0001a000 07:00 266005                     /usr/lib/libxcb.so.1.1.0
7f1ff2bc2000-7f1ff2bc3000 rw-p 0001b000 07:00 266005                     /usr/lib/libxcb.so.1.1.0
7f1ff2bc3000-7f1ff2d3d000 r-xp 00000000 07:00 790629                     /lib/libc-2.11.1.so
7f1ff2d3d000-7f1ff2f3c000 ---p 0017a000 07:00 790629                     /lib/libc-2.11.1.so
7f1ff2f3c000-7f1ff2f40000 r--p 00179000 07:00 790629                     /lib/libc-2.11.1.so
7f1ff2f40000-7f1ff2f41000 rw-p 0017d000 07:00 790629                     /lib/libc-2.11.1.so
7f1ff2f41000-7f1ff2f46000 rw-p 00000000 00:00 0 
7f1ff2f46000-7f1ff2f5c000 r-xp 00000000 07:00 786604                     /lib/libgcc_s.so.1
7f1ff2f5c000-7f1ff315b000 ---p 00016000 07:00 786604                     /lib/libgcc_s.so.1
7f1ff315b000-7f1ff315c000 r--p 00015000 07:00 786604                     /lib/libgcc_s.so.1
7f1ff315c000-7f1ff315d000 rw-p 00016000 07:00 786604                     /lib/libgcc_s.so.1
7f1ff315d000-7f1ff3253000 r-xp 00000000 07:00 265904                     /usr/lib/libstdc++.so.6.0.13
7f1ff3253000-7f1ff3453000 ---p 000f6000 07:00 265904                     /usr/lib/libstdc++.so.6.0.13
7f1ff3453000-7f1ff345a000 r--p 000f6000 07:00 265904                     /usr/lib/libstdc++.so.6.0.13
7f1ff345a000-7f1ff345c000 rw-p 000fd000 07:00 265904                     /usr/lib/libstdc++.so.6.0.13
7f1ff345c000-7f1ff3471000 rw-p 00000000 00:00 0 
7f1ff3471000-7f1ff34f3000 r-xp 00000000 07:00 790634                     /lib/libm-2.11.1.so
7f1ff34f3000-7f1ff36f2000 ---p 00082000 07:00 790634                     /lib/libm-2.11.1.so
7f1ff36f2000-7f1ff36f3000 r--p 00081000 07:00 790634                     /lib/libm-2.11.1.so
7f1ff36f3000-7f1ff36f4000 rw-p 00082000 07:00 790634                     /lib/libm-2.11.1.so
7f1ff36f4000-7f1ff36f6000 r-xp 00000000 07:00 790632                     /lib/libdl-2.11.1.so
7f1ff36f6000-7f1ff38f6000 ---p 00002000 07:00 790632                     /lib/libdl-2.11.1.so
7f1ff38f6000-7f1ff38f7000 r--p 00002000 07:00 790632                     /lib/libdl-2.11.1.so
7f1ff38f7000-7f1ff38f8000 rw-p 00003000 07:00 790632                     /lib/libdl-2.11.1.so
7f1ff38f8000-7f1ff390f000 r-xp 00000000 07:00 790636                     /lib/libnsl-2.11.1.so
7f1ff390f000-7f1ff3b0e000 ---p 00017000 07:00 790636                     /lib/libnsl-2.11.1.so
7f1ff3b0e000-7f1ff3b0f000 r--p 00016000 07:00 790636                     /lib/libnsl-2.11.1.so
7f1ff3b0f000-7f1ff3b10000 rw-p 00017000 07:00 790636                     /lib/libnsl-2.11.1.so
7f1ff3b10000-7f1ff3b12000 rw-p 00000000 00:00 0 
7f1ff3b12000-7f1ff3c43000 r-xp 00000000 07:00 264995                     /usr/lib/libX11.so.6.3.0
7f1ff3c43000-7f1ff3e43000 ---p 00131000 07:00 264995                     /usr/lib/libX11.so.6.3.0
7f1ff3e43000-7f1ff3e44000 r--p 00131000 07:00 264995                     /usr/lib/libX11.so.6.3.0
7f1ff3e44000-7f1ff3e48000 rw-p 00132000 07:00 264995                     /usr/lib/libX11.so.6.3.0
7f1ff3e48000-7f1ff3e59000 r-xp 00000000 07:00 265012                     /usr/lib/libXext.so.6.4.0
7f1ff3e59000-7f1ff4058000 ---p 00011000 07:00 265012                     /usr/lib/libXext.so.6.4.0
7f1ff4058000-7f1ff4059000 r--p 00010000 07:00 265012                     /usr/lib/libXext.so.6.4.0
7f1ff4059000-7f1ff405a000 rw-p 00011000 07:00 265012                     /usr/lib/libXext.so.6.4.0
7f1ff405a000-7f1ff407a000 r-xp 00000000 07:00 790622                     /lib/ld-2.11.1.so
7f1ff4263000-7f1ff426a000 rw-p 00000000 00:00 0 
7f1ff4277000-7f1ff4279000 rw-p 00000000 00:00 0 
7f1ff4279000-7f1ff427a000 r--p 0001f000 07:00 790622                     /lib/ld-2.11.1.so
7f1ff427a000-7f1ff427b000 rw-p 00020000 07:00 790622                     /lib/ld-2.11.1.so
7f1ff427b000-7f1ff427c000 rw-p 00000000 00:00 0 
7fffdec4d000-7fffdec62000 rw-p 00000000 00:00 0                          [stack]
7fffdedff000-7fffdee00000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted
"
what i must do know??

Last edited by fahimeh_ak; 04-07-2011 at 12:37 AM. Reason: another problem
 
Old 04-05-2011, 05:24 AM   #48
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
Post # 47 @fahimeh_ak
Quote:
and now I edit bashrc file as bellow
Probably no reason to have any entries to bashrc for any ns2 stuff at all.


Will this work : 'cd ns/ns-allinone-2.27/ns-2.27/ && ./ns' ?

The most easy way to have 'ns' in the PATH is :
cd ns/ns-allinone-2.27/ns-2.27/ && sudo make install
→ → 'ns' will be copied to /usr/local/bin/ : And thus be in a system path.

LD_LIBRARY_PATH settings : ns is statically compiled, and depends only on files
in /usr/lib/ , which already are in the system LD_LIBRARY_PATH.
(The suggestion to edit bashrc is an old text, required for older ns2 (=<2.26)).
...

Last edited by knudfl; 04-05-2011 at 05:27 AM.
 
Old 04-06-2011, 04:29 AM   #49
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
Post # 47 @fahimeh_ak

And by the way : Colored text is not appreciated :
Please use the edit button and change red to black. The yellow can be deleted.

Also : code tags must be used :
I.e. [/code] at code end, and [code] at code text start. Please edit.

..
 
Old 04-16-2011, 11:07 AM   #50
eheim602
LQ Newbie
 
Registered: Apr 2011
Posts: 4

Rep: Reputation: 0
Hello knudfl,

You've helped a lot of people here. I'm trying to install ns-2.27 on Ubuntu 10.04.1. The install goes fine until I get to Tclcl-1.15 and I get this:

Code:
============================================================
* Build Tclcl-1.15
============================================================
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 file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
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 grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) 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 ranlib... ranlib
checking for snprintf... yes
checking for ANSI C header files... (cached) yes
checking for strtoq... yes
checking for strtoll... yes
checking size of long... 4
checking for __int64_t... no
checking for long long... yes
checking for int64_t... yes
checking which kind of 64-bit int to use... int64_t
checking for tcl.h... -I../include
checking for tclInt.h... -I../include
checking for libtcl8.4... -L../lib -ltcl8.4
checking for init.tcl... ../lib/tcl8.4
checking for http.tcl... ../lib/tcl8.4/http1.0
checking Tcl http.tcl library... yes
checking for tclsh8.4.18... 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 otcl.h... -I../otcl
checking for libotcl1.13... -L../otcl -lotcl
checking for X11 header files
checking for X11 library archive
checking for XOpenDisplay in -lX11... yes
checking for XShmAttach in -lXext... yes
checking for zlib.h... -I/usr/include
checking for libz1.1.3... -L/usr/lib -lz
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
config.status: creating config.h
config.status: config.h is unchanged
g++-3.3 -c  -DNO_TK  -DNDEBUG -DUSE_SHM -DHAVE_LIBZ1_1_3 -DHAVE_ZLIB_H -DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCLINT_H -DHAVE_TCL_H  -DHAVE_CONFIG_H -I. -I/usr/include -I/home/eric/Programs/ns-2/ns-allinone-2.27/otcl -I/home/eric/Programs/ns-2/ns-allinone-2.27/include -I/home/eric/Programs/ns-2/ns-allinone-2.27/include -I/home/eric/Programs/ns-2/ns-allinone-2.27/include -o Tcl.o Tcl.cc
In file included from Tcl.cc:49:
tclcl.h:44:18: otcl.h: No such file or directory
In file included from Tcl.cc:49:
tclcl.h:297: error: syntax error before `*' token
Tcl.cc: In member function `int TclObject::traceVar(const char*, TclObject*)':
Tcl.cc:418: error: `OTclObject' undeclared (first use this function)
Tcl.cc:418: error: (Each undeclared identifier is reported only once for each
   function it appears in.)
Tcl.cc:418: error: `otcl_object' undeclared (first use this function)
Tcl.cc:419: error: `OTclGetObject' undeclared (first use this function)
Tcl.cc:421: error: `OTclOInstVarOne' undeclared (first use this function)
Tcl.cc: In constructor `TclClass::TclClass(const char*)':
Tcl.cc:452: error: class `TclClass' does not have any field named `class_'
Tcl.cc: In static member function `static int TclClass::create_shadow(void*,
   Tcl_Interp*, int, const char**)':
Tcl.cc:508: error: `OTclGetObject' undeclared (first use this function)
Tcl.cc:509: error: `OTclAddPMethod' undeclared (first use this function)
Tcl.cc: In static member function `static int TclClass::dispatch_instvar(void*,
   Tcl_Interp*, int, const char**)':
Tcl.cc:537: error: `OTclGetObject' undeclared (first use this function)
Tcl.cc:571: error: `OTclOInstVarOne' undeclared (first use this function)
Tcl.cc: In member function `virtual void TclClass::bind()':
Tcl.cc:601: error: `class_' undeclared (first use this function)
Tcl.cc:601: error: `OTclGetClass' undeclared (first use this function)
Tcl.cc:603: error: `OTclAddIMethod' undeclared (first use this function)
Tcl.cc: In member function `void TclClass::add_method(const char*)':
Tcl.cc:617: error: syntax error before `)' token
make: *** [Tcl.o] Error 1
tclcl-1.15 make failed! Exiting ...
For some reason it cannot find otcl.h? Any thoughts? Also, I have a working build of ns-2.34. Is there a way to just install 2.27 without having to rebuild the entire stack of other stuff?

Last edited by eheim602; 04-16-2011 at 11:21 AM.
 
Old 04-16-2011, 11:33 AM   #51
eheim602
LQ Newbie
 
Registered: Apr 2011
Posts: 4

Rep: Reputation: 0
Quote:
Originally Posted by eheim602 View Post
Hello knudfl,

You've helped a lot of people here. I'm trying to install ns-2.27 on Ubuntu 10.04.1. The install goes fine until I get to Tclcl-1.15 and I get this:

Code:
============================================================
* Build Tclcl-1.15
============================================================
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 file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
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 grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) 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 ranlib... ranlib
checking for snprintf... yes
checking for ANSI C header files... (cached) yes
checking for strtoq... yes
checking for strtoll... yes
checking size of long... 4
checking for __int64_t... no
checking for long long... yes
checking for int64_t... yes
checking which kind of 64-bit int to use... int64_t
checking for tcl.h... -I../include
checking for tclInt.h... -I../include
checking for libtcl8.4... -L../lib -ltcl8.4
checking for init.tcl... ../lib/tcl8.4
checking for http.tcl... ../lib/tcl8.4/http1.0
checking Tcl http.tcl library... yes
checking for tclsh8.4.18... 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 otcl.h... -I../otcl
checking for libotcl1.13... -L../otcl -lotcl
checking for X11 header files
checking for X11 library archive
checking for XOpenDisplay in -lX11... yes
checking for XShmAttach in -lXext... yes
checking for zlib.h... -I/usr/include
checking for libz1.1.3... -L/usr/lib -lz
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
config.status: creating config.h
config.status: config.h is unchanged
g++-3.3 -c  -DNO_TK  -DNDEBUG -DUSE_SHM -DHAVE_LIBZ1_1_3 -DHAVE_ZLIB_H -DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCLINT_H -DHAVE_TCL_H  -DHAVE_CONFIG_H -I. -I/usr/include -I/home/eric/Programs/ns-2/ns-allinone-2.27/otcl -I/home/eric/Programs/ns-2/ns-allinone-2.27/include -I/home/eric/Programs/ns-2/ns-allinone-2.27/include -I/home/eric/Programs/ns-2/ns-allinone-2.27/include -o Tcl.o Tcl.cc
In file included from Tcl.cc:49:
tclcl.h:44:18: otcl.h: No such file or directory
In file included from Tcl.cc:49:
tclcl.h:297: error: syntax error before `*' token
Tcl.cc: In member function `int TclObject::traceVar(const char*, TclObject*)':
Tcl.cc:418: error: `OTclObject' undeclared (first use this function)
Tcl.cc:418: error: (Each undeclared identifier is reported only once for each
   function it appears in.)
Tcl.cc:418: error: `otcl_object' undeclared (first use this function)
Tcl.cc:419: error: `OTclGetObject' undeclared (first use this function)
Tcl.cc:421: error: `OTclOInstVarOne' undeclared (first use this function)
Tcl.cc: In constructor `TclClass::TclClass(const char*)':
Tcl.cc:452: error: class `TclClass' does not have any field named `class_'
Tcl.cc: In static member function `static int TclClass::create_shadow(void*,
   Tcl_Interp*, int, const char**)':
Tcl.cc:508: error: `OTclGetObject' undeclared (first use this function)
Tcl.cc:509: error: `OTclAddPMethod' undeclared (first use this function)
Tcl.cc: In static member function `static int TclClass::dispatch_instvar(void*,
   Tcl_Interp*, int, const char**)':
Tcl.cc:537: error: `OTclGetObject' undeclared (first use this function)
Tcl.cc:571: error: `OTclOInstVarOne' undeclared (first use this function)
Tcl.cc: In member function `virtual void TclClass::bind()':
Tcl.cc:601: error: `class_' undeclared (first use this function)
Tcl.cc:601: error: `OTclGetClass' undeclared (first use this function)
Tcl.cc:603: error: `OTclAddIMethod' undeclared (first use this function)
Tcl.cc: In member function `void TclClass::add_method(const char*)':
Tcl.cc:617: error: syntax error before `)' token
make: *** [Tcl.o] Error 1
tclcl-1.15 make failed! Exiting ...
For some reason it cannot find otcl.h? Any thoughts? Also, I have a working build of ns-2.34. Is there a way to just install 2.27 without having to rebuild the entire stack of other stuff?
Ok, I fixed that problem. All I did was copy otcl.h from the otcl-1.8 directory to the tclcl-1.19 directory and commented out lines 43 and 45 of tclcl.h. Pretty hacky solution, really. I now have a problem whe ns-2 tries to build (I'm so close!):

Code:
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 suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
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 egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) 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 if C++ libraries work without any namespace... no
checking if C++ libraries work with namespace std... yes
checking if STL works without any namespace... no
checking if STL works with namespace std... yes
checking should use STL... yes
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 otcl.h... -I../otcl-1.8
checking for libotcl1.8... -L../otcl-1.8 -lotcl
checking for tclcl.h... -I../tclcl-1.15
checking for libtclcl... -L../tclcl-1.15 -ltclcl
checking for tcl2c++... ../tclcl-1.15
checking for X11 header files
checking for X11 library archive
checking for XOpenDisplay in -lX11... yes
checking for XShmAttach in -lXext... yes
checking for libtcldbg... no
checking dmalloc... not requested with --with-dmalloc
checking for perl... /usr/bin
checking for ANSI C header files... (cached) yes
checking for bcopy... yes
checking for bzero... yes
checking for fesetprecision... no
checking for getrusage... yes
checking for sbrk... yes
checking for snprintf... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking net/ethernet.h usability... yes
checking net/ethernet.h presence... yes
checking for net/ethernet.h... yes
checking return type of random... long
checking for int8_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for u_int8_t... yes
checking for u_int16_t... yes
checking for u_int32_t... yes
checking for u_char... yes
checking for u_int... yes
checking for strtoq... yes
checking for strtoll... yes
checking for long... yes
checking size of long... 4
checking for __int64_t... no
checking for long long... yes
checking for int64_t... yes
checking which kind of 64-bit int to use... int64_t
checking for struct ether_header... found
checking for struct ether_addr... found
checking for addr2ascii... no
checking for Linux compliant tcphdr... found
checking for BSD compliant tcphdr... not found
checking for socklen_t... yes
checking for main in -lpcap... no
checking to make nse... no
Explicitly disabling static compilation
checking for dlopen in -ldl... yes
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tcl/lib/ns-autoconf.tcl
config.status: creating indep-utils/webtrace-conv/ucb/Makefile
config.status: creating indep-utils/webtrace-conv/dec/Makefile
config.status: creating indep-utils/webtrace-conv/nlanr/Makefile
config.status: creating indep-utils/webtrace-conv/epa/Makefile
config.status: creating indep-utils/cmu-scen-gen/setdest/Makefile
config.status: creating autoconf.h
config.status: autoconf.h is unchanged
/home/eric/Programs/ns-2/ns-allinone-2.27/bin/tclsh8.4 bin/tcl-expand.tcl tcl/lib/ns-lib.tcl tcl/lib/ns-diffusion.tcl  | ../tclcl-1.15/tcl2c++ et_ns_lib > gen/ns_tcl.cc
g++-3.3 -c  -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_8 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H  -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I/home/eric/Programs/ns-2/ns-allinone-2.27/tclcl-1.15 -I/home/eric/Programs/ns-2/ns-allinone-2.27/otcl-1.8 -I/home/eric/Programs/ns-2/ns-allinone-2.27/include -I/home/eric/Programs/ns-2/ns-allinone-2.27/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -o gen/ns_tcl.o gen/ns_tcl.cc
g++-3.3  -o ns \
                common/tclAppInit.o  tools/random.o tools/rng.o tools/ranvar.o common/misc.o common/timer-handler.o common/scheduler.o common/object.o common/packet.o common/ip.o routing/route.o common/connector.o common/ttl.o trace/trace.o trace/trace-ip.o classifier/classifier.o classifier/classifier-addr.o classifier/classifier-hash.o classifier/classifier-virtual.o classifier/classifier-mcast.o classifier/classifier-bst.o classifier/classifier-mpath.o mcast/replicator.o classifier/classifier-mac.o classifier/classifier-qs.o classifier/classifier-port.o src_rtg/classifier-sr.o src_rtg/sragent.o src_rtg/hdr_src.o adc/ump.o qs/qsagent.o qs/hdr_qs.o apps/app.o apps/telnet.o tcp/tcplib-telnet.o tools/trafgen.o trace/traffictrace.o tools/pareto.o tools/expoo.o tools/cbr_traffic.o adc/tbf.o adc/resv.o adc/sa.o tcp/saack.o tools/measuremod.o adc/estimator.o adc/adc.o adc/ms-adc.o adc/timewindow-est.o adc/acto-adc.o adc/pointsample-est.o adc/salink.o adc/actp-adc.o adc/hb-adc.o adc/expavg-est.o adc/param-adc.o adc/null-estimator.o adc/adaptive-receiver.o apps/vatrcvr.o adc/consrcvr.o common/agent.o common/message.o apps/udp.o common/session-rtp.o apps/rtp.o tcp/rtcp.o common/ivs.o common/messpass.o common/tp.o common/tpm.o apps/worm.o tcp/tcp.o tcp/tcp-sink.o tcp/tcp-reno.o tcp/tcp-newreno.o tcp/tcp-vegas.o tcp/tcp-rbp.o tcp/tcp-full.o tcp/rq.o baytcp/tcp-full-bay.o baytcp/ftpc.o baytcp/ftps.o tcp/scoreboard.o tcp/scoreboard-rq.o tcp/tcp-sack1.o tcp/tcp-fack.o tcp/tcp-asym.o tcp/tcp-asym-sink.o tcp/tcp-fs.o tcp/tcp-asym-fs.o tcp/tcp-qs.o tcp/tcp-int.o tcp/chost.o tcp/tcp-session.o tcp/nilist.o sctp/sctp.o apps/sctp_app1.o sctp/sctp-timestamp.o sctp/sctp-hbAfterRto.o sctp/sctp-multipleFastRtx.o sctp/sctp-newreno.o tools/integrator.o tools/queue-monitor.o tools/flowmon.o tools/loss-monitor.o queue/queue.o queue/drop-tail.o adc/simple-intserv-sched.o queue/red.o queue/semantic-packetqueue.o queue/semantic-red.o tcp/ack-recons.o queue/sfq.o queue/fq.o queue/drr.o queue/srr.o queue/cbq.o queue/jobs.o queue/marker.o queue/demarker.o link/hackloss.o queue/errmodel.o queue/fec.o link/delay.o tcp/snoop.o gaf/gaf.o link/dynalink.o routing/rtProtoDV.o common/net-interface.o mcast/ctrMcast.o mcast/mcast_ctrl.o mcast/srm.o common/sessionhelper.o queue/delaymodel.o mcast/srm-ssm.o mcast/srm-topo.o apps/mftp.o apps/mftp_snd.o apps/mftp_rcv.o apps/codeword.o routing/alloc-address.o routing/address.o lib/int.Vec.o lib/int.RVec.o lib/dmalloc_support.o webcache/http.o webcache/tcp-simple.o webcache/pagepool.o webcache/inval-agent.o webcache/tcpapp.o webcache/http-aux.o webcache/mcache.o webcache/webtraf.o webcache/webserver.o webcache/logweb.o empweb/empweb.o empweb/empftp.o realaudio/realaudio.o mac/lanRouter.o classifier/filter.o common/pkt-counter.o common/Decapsulator.o common/Encapsulator.o common/encap.o mac/channel.o mac/mac.o mac/ll.o mac/mac-802_11.o mac/mac-802_3.o mac/mac-tdma.o mac/smac.o mobile/mip.o mobile/mip-reg.o mobile/gridkeeper.o mobile/propagation.o mobile/tworayground.o mobile/antenna.o mobile/omni-antenna.o mobile/shadowing.o mobile/shadowing-vis.o mobile/dumb-agent.o common/bi-connector.o common/node.o common/mobilenode.o mac/arp.o mobile/god.o mobile/dem.o mobile/topography.o mobile/modulation.o queue/priqueue.o queue/dsr-priqueue.o mac/phy.o mac/wired-phy.o mac/wireless-phy.o mac/mac-timers.o trace/cmu-trace.o mac/varp.o mac/mac-simple.o dsdv/dsdv.o dsdv/rtable.o queue/rtqueue.o routing/rttable.o imep/imep.o imep/dest_queue.o imep/imep_api.o imep/imep_rt.o imep/rxmit_queue.o imep/imep_timers.o imep/imep_util.o imep/imep_io.o tora/tora.o tora/tora_api.o tora/tora_dest.o tora/tora_io.o tora/tora_logs.o tora/tora_neighbor.o dsr/dsragent.o dsr/hdr_sr.o dsr/mobicache.o dsr/path.o dsr/requesttable.o dsr/routecache.o dsr/add_sr.o dsr/dsr_proto.o dsr/flowstruct.o dsr/linkcache.o dsr/simplecache.o dsr/sr_forwarder.o aodv/aodv_logs.o aodv/aodv.o aodv/aodv_rtable.o aodv/aodv_rqueue.o common/ns-process.o satellite/satgeometry.o satellite/sathandoff.o satellite/satlink.o satellite/satnode.o satellite/satposition.o satellite/satroute.o satellite/sattrace.o rap/raplist.o rap/rap.o rap/media-app.o rap/utilities.o common/fsm.o tcp/tcp-abs.o diffusion/diffusion.o diffusion/diff_rate.o diffusion/diff_prob.o diffusion/diff_sink.o diffusion/flooding.o diffusion/omni_mcast.o diffusion/hash_table.o diffusion/routing_table.o diffusion/iflist.o tcp/tfrc.o tcp/tfrc-sink.o mobile/energy-model.o apps/ping.o tcp/tcp-rfc793edu.o queue/rio.o queue/semantic-rio.o tcp/tcp-sack-rh.o tcp/scoreboard-rh.o plm/loss-monitor-plm.o plm/cbr-traffic-PP.o linkstate/hdr-ls.o mpls/classifier-addr-mpls.o mpls/ldp.o mpls/mpls-module.o routing/rtmodule.o classifier/classifier-hier.o routing/addr-params.o nix/hdr_nv.o nix/classifier-nix.o nix/nixnode.o routealgo/rnode.o routealgo/bfs.o routealgo/rbitmap.o routealgo/rlookup.o routealgo/routealgo.o nix/nixvec.o nix/nixroute.o diffserv/dsred.o diffserv/dsredq.o diffserv/dsEdge.o diffserv/dsCore.o diffserv/dsPolicy.o diffserv/ew.o diffserv/dewp.o queue/red-pd.o queue/pi.o queue/vq.o queue/rem.o queue/gk.o pushback/rate-limit.o pushback/rate-limit-strategy.o pushback/ident-tree.o pushback/agg-spec.o pushback/logging-data-struct.o pushback/rate-estimator.o pushback/pushback-queue.o pushback/pushback.o common/parentnode.o trace/basetrace.o common/simulator.o asim/asim.o common/scheduler-map.o common/splay-scheduler.o linkstate/ls.o linkstate/rtProtoLS.o pgm/classifier-pgm.o pgm/pgm-agent.o pgm/pgm-sender.o pgm/pgm-receiver.o mcast/rcvbuf.o mcast/classifier-lms.o mcast/lms-agent.o mcast/lms-receiver.o mcast/lms-sender.o queue/delayer.o diffusion3/lib/nr/nr.o diffusion3/lib/dr.o diffusion3/filters/diffusion/one_phase_pull.o diffusion3/filters/diffusion/two_phase_pull.o diffusion3/lib/diffapp.o diffusion3/ns/diffagent.o diffusion3/ns/diffrtg.o diffusion3/ns/difftimer.o diffusion3/filter_core/filter_core.o diffusion3/filter_core/iolog.o diffusion3/filter_core/iostats.o diffusion3/lib/main/attrs.o diffusion3/lib/main/events.o diffusion3/lib/main/iodev.o diffusion3/lib/main/iohook.o diffusion3/lib/main/timers.o diffusion3/lib/main/message.o diffusion3/lib/main/tools.o diffusion3/apps/gear_examples/gear_common.o diffusion3/apps/gear_examples/gear_receiver.o diffusion3/apps/gear_examples/gear_sender.o diffusion3/apps/rmst_examples/rmst_sink.o diffusion3/apps/rmst_examples/rmst_source.o diffusion3/apps/ping/1pp_ping_sender.o diffusion3/apps/ping/1pp_ping_receiver.o diffusion3/apps/ping/2pp_ping_sender.o diffusion3/apps/ping/2pp_ping_receiver.o diffusion3/apps/ping/ping_common.o diffusion3/apps/ping/push_receiver.o diffusion3/apps/ping/push_sender.o diffusion3/filters/gear/gear_attr.o diffusion3/filters/gear/gear.o diffusion3/filters/gear/gear_tools.o diffusion3/filters/misc/log.o diffusion3/filters/misc/srcrt.o diffusion3/filters/misc/tag.o diffusion3/filters/rmst/rmst.o diffusion3/filters/rmst/rmst_filter.o gen/version.o gen/ns_tcl.o gen/ptypes.o  common/win32.o -L/home/eric/Programs/ns-2/ns-allinone-2.27/tclcl-1.15 -ltclcl -L/home/eric/Programs/ns-2/ns-allinone-2.27/otcl-1.8 -lotcl -L/home/eric/Programs/ns-2/ns-allinone-2.27/lib -ltk8.4 -L/home/eric/Programs/ns-2/ns-allinone-2.27/lib -ltcl8.4 -lXext -lX11 -lnsl -ldl -lm
common/tclAppInit.o: In function `Tcl_AppInit':
tclAppInit.cc:(.text+0x71): undefined reference to `Otcl_Init(Tcl_Interp*)'
/home/eric/Programs/ns-2/ns-allinone-2.27/tclcl-1.15/libtclcl.a(Tcl.o): In function `TclObject::traceVar(char const*, TclObject*)':
Tcl.cc:(.text+0xa07): undefined reference to `OTclGetObject(Tcl_Interp*, char const*)'
Tcl.cc:(.text+0xa46): undefined reference to `OTclOInstVarOne(OTclObject*, Tcl_Interp*, char*, char const*, char const*, int)'
/home/eric/Programs/ns-2/ns-allinone-2.27/tclcl-1.15/libtclcl.a(Tcl.o): In function `TclClass::create_shadow(void*, Tcl_Interp*, int, char const**)':
Tcl.cc:(.text+0xe84): undefined reference to `OTclGetObject(Tcl_Interp*, char const*)'
Tcl.cc:(.text+0xead): undefined reference to `OTclAddPMethod(OTclObject*, char*, int (*)(void*, Tcl_Interp*, int, char const**), void*, void (*)(void*))'
Tcl.cc:(.text+0xec1): undefined reference to `OTclGetObject(Tcl_Interp*, char const*)'
Tcl.cc:(.text+0xeea): undefined reference to `OTclAddPMethod(OTclObject*, char*, int (*)(void*, Tcl_Interp*, int, char const**), void*, void (*)(void*))'
/home/eric/Programs/ns-2/ns-allinone-2.27/tclcl-1.15/libtclcl.a(Tcl.o): In function `TclClass::dispatch_instvar(void*, Tcl_Interp*, int, char const**)':
Tcl.cc:(.text+0xf50): undefined reference to `OTclGetObject(Tcl_Interp*, char const*)'
Tcl.cc:(.text+0x10fb): undefined reference to `OTclOInstVarOne(OTclObject*, Tcl_Interp*, char*, char const*, char const*, int)'
/home/eric/Programs/ns-2/ns-allinone-2.27/tclcl-1.15/libtclcl.a(Tcl.o): In function `TclClass::bind()':
Tcl.cc:(.text+0x11ea): undefined reference to `OTclGetClass(Tcl_Interp*, char const*)'
Tcl.cc:(.text+0x121a): undefined reference to `OTclAddIMethod(OTclClass*, char*, int (*)(void*, Tcl_Interp*, int, char const**), void*, void (*)(void*))'
Tcl.cc:(.text+0x1247): undefined reference to `OTclAddIMethod(OTclClass*, char*, int (*)(void*, Tcl_Interp*, int, char const**), void*, void (*)(void*))'
/home/eric/Programs/ns-2/ns-allinone-2.27/tclcl-1.15/libtclcl.a(Tcl.o): In function `TclClass::add_method(char const*)':
Tcl.cc:(.text+0x129c): undefined reference to `OTclAddPMethod(OTclObject*, char*, int (*)(void*, Tcl_Interp*, int, char const**), void*, void (*)(void*))'
collect2: ld returned 1 exit status
make: *** [ns] Error 1
Ns make failed!
Seems to me that tcl isn't finding some of the otcl functions? Any ideas? Thanks in advance.
 
Old 04-16-2011, 11:54 AM   #52
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
@ eheim602, post # 50 : Welcome to LQ.

Never seen an error like that.
Assuming, you are following the method in post #3 :

Tclcl/configure will look for otcl.h in "../otcl/" , which is a link
to otcl-1.13/. ( In ns-allinone-2.34 ).
Just make sure the link is present, or create it :
ln -s otcl-1.13/ otcl
 
Old 04-16-2011, 11:59 AM   #53
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
Post # 51, @ eheim602 : You shouldn't need to fix errors in that way.

Please go back and check everything against post #3.

It seems, you made some errors, when you linked to the ns-allinone-2.34
tcl, tk, otcl, tclcl.
 
Old 04-17-2011, 10:47 PM   #54
eheim602
LQ Newbie
 
Registered: Apr 2011
Posts: 4

Rep: Reputation: 0
It seems like what you're doing is installing the various tcl components from ns-2.34. I have successfully installed ns-2.34, and thus the entire stack of programs that go with it. Is there a way to install ns-2.27 without having to install all of those components again? If you were wondering why I'd want both is because I'm trying to use pathChirp(http://www.spin.rice.edu/Software/pathChirp/), and it only seems to work with ns-2.27. Thanks again.
 
Old 04-18-2011, 04:20 AM   #55
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
# 54 : Quite easy : You must have both ns-allinone-2.27 and ns-allinone-2.34 :
They are linked together so far concerns tcl tk otcl tclcl.

I don't understand what you mean by ""install all of those components again"".
It's a few files in ns-allinone-2.27/bin/, lib/, include/. Total 8.9 MB.
Which is small compared to e.g. ns-2.34/tcl/test/: 39.4 MB.

And it's no problem to have 2 to 5 different versions of ns-allinone installed
at the same time. Just don't add any of them to the PATH, LD_LIBRARY_PATH.
Usually not required since ns-2.26.
 
Old 04-18-2011, 03:21 PM   #56
eheim602
LQ Newbie
 
Registered: Apr 2011
Posts: 4

Rep: Reputation: 0
I got it to work. Thanks. I made sure I exported CC=gcc-3.3 and CXX=g++-3.3, and I unzipped a new copy of ns-2.34 and linked to that. Worked like a charm. Thanks knudfl.
 
Old 04-28-2011, 07:36 AM   #57
melokuhle
LQ Newbie
 
Registered: Apr 2011
Posts: 6

Rep: Reputation: 2
Hello everybody

I need some one to help to install ns2.27 and LEACH on ubuntu9.10
 
Old 04-28-2011, 07:51 AM   #58
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
@ melokuhle, post # 57 : Welcome to LQ.

'ns-allinone-2.27' : post # 3.


LEACH, ns-2.27 http://www.linuxquestions.org/questi...each-862835/#4

LEACH for ns-2.34
http://www.linuxquestions.org/questi...34-a-870368/#5

..
 
Old 05-16-2011, 02:19 AM   #59
keepwalking
Member
 
Registered: Oct 2010
Posts: 46

Rep: Reputation: 0
hell every body

I trying to add LEACH on ns2.34 and it giving me the following errors may you please help me to solve this errors. I don't find the cra.h file please help me
Code:
trace/cmu-trace.cc:48:17: error: rca.h: No such file or directory
trace/cmu-trace.cc: In member function ‘void CMUTrace::format_rca(Packet*, int)’:
trace/cmu-trace.cc:1532: error: ‘ADV_CHAR’ was not declared in this scope
trace/cmu-trace.cc:1536: error: ‘REQ_CHAR’ was not declared in this scope
trace/cmu-trace.cc:1540: error: ‘DATA_CHAR’ was not declared in this scope
make: *** [trace/cmu-trace.o] Error 1
luuh@ubuntu:~/ns-allinone-2.34/ns-2.34$
 
Old 05-23-2011, 09:41 PM   #60
parulgaba
LQ Newbie
 
Registered: Mar 2011
Posts: 7

Rep: Reputation: 0
Hello
I have been trying to install pmipv6 patch on ubuntu ns 2.29 on ubuntu 8.10
this is the site that i used to download the patch and followed the steps.
http://commani.net/pmip6ns/download.html

on installling these are the errors i have received....Plsssss help

In file included from trace/trace.cc:39:
./common/packet.h: In constructor ‘p_info:_info()’:
./common/packet.h:215: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:216: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:217: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:218: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:219: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:220: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:221: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:222: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:223: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:224: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:225: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:226: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:227: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:228: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:229: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:230: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:231: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:232: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:233: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:234: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:236: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:237: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:238: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:239: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:240: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:241: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:243: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:244: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:245: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:246: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:247: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:248: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:249: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:250: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:251: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:252: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:253: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:254: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:255: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:256: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:258: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:259: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:261: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:262: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:263: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:266: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:269: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:272: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:275: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:278: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:281: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:285: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:288: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:289: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:290: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:291: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:292: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:293: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:295: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:296: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:297: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:301: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:302: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:304: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:305: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:308: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:311: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:313: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:316: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:318: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:319: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:320: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:323: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:324: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:325: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:326: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:327: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:328: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:329: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:330: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:332: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:333: warning: deprecated conversion from string
constant to ‘char*’
./common/packet.h:335: warning: deprecated conversion from string
constant to ‘char*’
In file included from trace/trace.cc:42:
./sctp/sctp.h: At global scope:
./sctp/sctp.h:65: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:78: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:85: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:95: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:104: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:135: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:150: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:162: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:191: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:203: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:209: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:221: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:229: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:241: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:262: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:268: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:273: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:280: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:282: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:291: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:306: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:425: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:431: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:443: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:451: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:458: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:460: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:510: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:516: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:527: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:534: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:553: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:558: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:564: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:571: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:577: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:705: error: extra qualification ‘SctpAgent::’ on member
‘DumpSendBuffer’
trace/trace.cc:185: warning: deprecated conversion from string
constant to ‘char*’
trace/trace.cc:185: warning: deprecated conversion from string
constant to ‘char*’
trace/trace.cc:185: warning: deprecated conversion from string
constant to ‘char*’
trace/trace.cc:185: warning: deprecated conversion from string
constant to ‘char*’
trace/trace.cc:185: warning: deprecated conversion from string
constant to ‘char*’
make: *** [trace/trace.o] Error 1
Ns make failed!

Pllllsss help
 
  


Reply

Tags
leach, ns2, ns227, ns227+ubuntu


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
Jolicloud installation seems to have wiped out existing Ubuntu installation gargleblaster Linux - Software 1 12-11-2009 07:57 AM
Trying to make an ubuntu installation disk, using ubuntu. belladivediva Ubuntu 5 03-02-2009 11:47 PM
Stalled installation of Ubuntu 7 on top of Ubuntu 6 Bill41 Linux - Newbie 5 06-21-2008 04:49 PM
LXer: Printing with Ubuntu: Insights for a quick and easy Ubuntu printer installation LXer Syndicated Linux News 0 06-03-2006 09:54 AM
ubuntu installation and ubuntu live cd morphixrocks Ubuntu 2 01-21-2006 02:12 PM


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