Hi the learner,

>From what I can see, the error is due to class Agent/MyAgentOtcl is not
define. If you are not familiar with how to read Tcl error message,
please read

http://www.ns2ultimate.com/post/419191200/tcl-error-message-in-ns2

Best Wishes,

Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com/T_Bear
http://www.t-issariyakul.blogspot.com
http://www.ece.ubc.ca/~teerawat



On 3/29/2010, "The Learner" <deeptisabnani.i...@pec.edu.in> wrote:

>
>
>Hi all.
>
>I had downloaded a file, ex-linkage.cc from http://nile.wpi.edu/NS/ (OTcl
>linkage) and placed it in /home/deepti/ns-allinone-2.34/ns-2.34/
>
>I tried to run ./configure by being the super user and achieved the result.
>Here is the output,
>
>r...@deepti-laptop:/home/deepti/ns-allinone-2.34/ns-2.34# ./configure
>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
>http://old.nabble.com/file/p28067571/ex-linkage.cc ex-linkage.cc
>http://old.nabble.com/file/p28067571/ex-linkage.tcl ex-linkage.tcl 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 minix/config.h usability... no
>checking minix/config.h presence... no
>checking for minix/config.h... no
>checking whether it is safe to define __EXTENSIONS__... yes
>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... (cached) gcc
>checking whether we are using the GNU C compiler... (cached) yes
>checking whether gcc accepts -g... (cached) yes
>checking for gcc option to accept ISO C89... (cached) none needed
>checking for g++... g++
>checking whether we are using the GNU C++ compiler... yes
>checking whether g++ accepts -g... yes
>checking for ANSI C header files... (cached) 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 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-1.13
>checking for libotcl1.13... -L../otcl-1.13 -lotcl
>checking for tclcl.h... -I../tclcl-1.19
>checking for libtclcl... -L../tclcl-1.19 -ltclcl
>checking for tcl2c++... ../tclcl-1.19
>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 arpa/inet.h usability... yes
>checking arpa/inet.h presence... yes
>checking for arpa/inet.h... yes
>checking fenv.h usability... yes
>checking fenv.h presence... yes
>checking for fenv.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 for main in -lm... yes
>checking for bcopy... yes
>checking for bzero... yes
>checking for fesetprecision... no
>checking for feenableexcept... yes
>checking for getrusage... yes
>checking for sbrk... yes
>checking for snprintf... 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 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 system version (for dynamic loading)... Linux-2.6.31-17-generic
>checking for dlopen in -ldl... yes
>checking dlfcn.h usability... yes
>checking dlfcn.h presence... yes
>checking for dlfcn.h... yes
>checking for ns library name... libns.so
>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... (cached) 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
>
>
>After using this I issued the 'make' command.
>
>Now, when I run the ex-linkage.tcl file from the same site, I  get the
>following error -
>invalid command name "Agent/MyAgentOtcl"
>    while executing
>"Agent/MyAgentOtcl create _o3 "
>    invoked from within
>"catch "$className create $o $args" msg"
>    invoked from within
>"if [catch "$className create $o $args" msg] {
>if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
>delete $o
>return ""
>}
>global errorInfo
>error "class $..."
>    (procedure "new" line 3)
>    invoked from within
>"new Agent/MyAgentOtcl"
>    invoked from within
>"set myagent [new Agent/MyAgentOtcl]"
>    (file "ex-linkage.tcl" line 5)
>r...@deepti-laptop:/home/deepti/NS2/Tcl Scripts# make clear
>make: *** No rule to make target `clear'.  Stop.
>
>I have uploaded the ex-linkage.cc and ex-linkage.tcl files.
>
>
>
>I really seek you help in this.
>
>Thank You and Regards,
>The Learner
>--
>View this message in context: 
>http://old.nabble.com/Problem-with-using-.-configure-command-in-ns2-while-recompiling-ns2-tp28060659p28067571.html
>Sent from the ns-users mailing list archive at Nabble.com.
>

Reply via email to