[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] ns-allinone-2.1b8a install problem




>Date: Fri, 20 Jul 2001 18:29:17 -0700
>From: John Heidemann <[email protected]>
>
>>Hi,
>>I have the following problem in installing ns on SunOS machine.
>>I found the same question in the mailing list, but couldn't find the
>>answer for it.
>>
>>*******************************************
>>tclsh ./../tools/genStubs.tcl ./../generic \
>>        ./../generic/tcl.decls ./../generic/tclInt.decls
>>invalid command name "namespace"
>>    while executing
>>"namespace eval genStubs {
>>    # libraryName --
>>    #
>>    #   The name of the entire library.  This value is used to compute
>>    #   the USE_*_STUB_PROCS m ..."
>>    (file "./../tools/genStubs.tcl" line 13)
>>*** Error code 1
>>make: Fatal error: Command failed for target `../generic/tclStubInit.c'
>>tcl8.3.2 make failed! Exiting ...
>>For problems with Tcl/Tk see http://www.scriptics.com
>>*******************************************
>
>It looks like you have an tclsh from some older version of tcl
>(pre-8.3.2) in your path.  That tclsh doesn't understand the tcl
>namescape.
>
>Can you confirm if this is the problem?  If so I'll add it to the
>ns-problems page.
>
>   -John Heidemann


you're right.
In my account, default tcl version was 7.5.
I changed the path to the upper version (8.0.4, which is the highest version 
available in my account), then the compilation succeded.
Tcl which is same or upper 8.0 version can understand 'namespace'.

I also had the following error during installing, but solved by changing 
the name of variable.
****************************************************

 g++ -c -O2 -DTCP_DELAY_BIND_ALL -DNO_TK -DNIXVECTOR -DTCLCL_CLASSINSTVAR  
-DNDEBUG -DHAVE_STL -mv8 -msupersparc -D__svr4__ -DUSE_SHM -DHAVE_LIBTCLCL 
-DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A7 -DHAVE_OTCL_H -DHAVE_LIBTK8_3 -DHAVE_TK_H 
-DHAVE_LIBTCL8_3 -DHAVE_TCL_H  -DHAVE_CONFIG_H -I.   
-I/auto/rcf-40/jaejlee/ns/tclcl-1.0b11 -I/auto/rcf-40/jaejlee/ns/otcl-1.0a7 
-I/auto/rcf-40/jaejlee/ns/include -I/auto/rcf-40/jaejlee/ns/include -o 
aodv/aodv_logs.o aodv/aodv_logs.cc
In file included from aodv/aodv_logs.cc:6:
aodv/aodv.h:248: redefinition of `struct bcache'
/usr/include/sys/stream.h:335: previous definition here
*** Error code 1
make: Fatal error: Command failed for target `aodv/aodv_logs.o'
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems


****************************************************
I found there is only 2 'bcache's in 'aodv' directory.
I changed the name and the installation completed.

Thank you for your help!

Jae-Joon Lee
Computer Engineering
University of Southern California