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

Re: [ns] Tclcl problem ?



You are compiling using Sun's CC. Try get a gcc installation and use that.

On Mon, 17 Apr 2000, Frank Chu wrote:

> Hi, I am using a *very well* maintained Solaris system
> in Sun and the tclcl can not be compiled successfully
> no matter I tried ns-2.1b6 or b7.  The Tcl, Tk, OTcl
> are all through very well(as you can see below), but
> when coming to TclCl, it gives out strange errors.  I
> tried both allinone and piecebypiece.  Anyone know the
> reason ? Thanks!
> 
> otcl-1.0a5 has been installed successfully.
> creating cache ./config.cache
> No .configure file found in current directory
> Continuing with default options...
> checking host system type... sparc-sun-solaris2.7
> checking target system type... sparc-sun-solaris2.7
> checking build system type... sparc-sun-solaris2.7
> checking for gcc... no
> checking for cc... cc
> checking whether the C compiler (cc  ) works... yes
> checking whether the C compiler (cc  ) is a
> cross-compiler... no
> checking whether we are using GNU C... no
> checking whether cc accepts -g... yes
> checking for c++... no
> checking for g++... no
> checking for gcc... no
> checking for CC... CC
> checking whether the C++ compiler (CC  ) works... yes
> checking whether the C++ compiler (CC  ) is a
> cross-compiler... no
> checking whether we are using GNU C++... no
> checking whether CC accepts -g... yes
> checking how to run the C preprocessor... cc -E
> checking for ANSI C header files... yes
> checking for string.h... yes
> checking for main in -lXbsd... no
> checking for socket in -lsocket... yes
> checking for gethostbyname in -lnsl... yes
> checking for dcgettext in -lintl... yes
> checking for getnodebyname in -ldnet_stub... no
> checking for ranlib... ranlib
> checking for snprintf... yes
> checking for strtoq... no
> 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../tclbox/include
> checking for libtcl8.0... -R../tclbox/lib
> -L../tclbox/lib -ltcl8.0
> checking for init.tcl... ../tclbox/lib/tcl8.0
> checking for tclsh8.0.4... no
> checking for tclsh8.0... ../tclbox/bin/tclsh8.0
> checking for tk.h... -I../tkbox/include
> checking for libtk8.0... -R../tkbox/lib -L../tkbox/lib
> -ltk8.0
> checking for tk.tcl... ../tkbox/lib/tk8.0
> checking for otcl.h... -I../otcl-1.0a5
> checking for libotcl1.0a4... -R../otcl-1.0a5
> -L../otcl-1.0a5 -lotcl
> checking for X11 header files
> checking for X11 library archive
> checking for XOpenDisplay in -lX11... yes
> checking for XShmAttach in -lXext... yes
> No explicit static compilation flag; setting V_STATIC
> to ""
> checking for main in -ldl... yes
> checking for a BSD compatible install... ./install-sh
> -c
> updating cache ./config.cache
> creating ./config.status
> creating Makefile
> creating ./bin
> cc -c  -DNO_TK  -DNDEBUG -D__svr4__ -DUSE_SHM
> -DHAVE_LIBOTCL1_0A4 -DHAVE_OTCL_
> H -DHAVE_LIBTK8_0 -DHAVE_TK_H -DHAVE_LIBTCL8_0
> -DHAVE_TCL_H   -DSTDC_HEADERS=1
>  -DHAVE_STRING_H=1 -DHAVE_SNPRINTF=1 -DHAVE_STRTOLL=1
> -DSIZEOF_LONG=4 -DHAVE_I
> NT64=1 -DHAVE_TCL_H=1 -DHAVE_LIBTCL8_0=1 -DHAVE_TK_H=1
> -DHAVE_LIBTK8_0=1 -DHAV
> E_OTCL_H=1 -DHAVE_LIBOTCL1_0A4=1 -DHAVE_LIBDL=1 -I.
> -I/home/haifeng/ns6/otcl-1
> .0a5 -I/home/haifeng/ns6/tkbox/include
> -I/home/haifeng/ns6/tclbox/include -o t
> cl2c++.o tcl2c++.c
> rm -f tcl2c++
> CC   -o tcl2c++ tcl2c++.o
> CC -c  -DNO_TK  -DNDEBUG -D__svr4__ -DUSE_SHM
> -DHAVE_LIBOTCL1_0A4 -DHAVE_OTCL_
> H -DHAVE_LIBTK8_0 -DHAVE_TK_H -DHAVE_LIBTCL8_0
> -DHAVE_TCL_H   -DSTDC_HEADERS=1
>  -DHAVE_STRING_H=1 -DHAVE_SNPRINTF=1 -DHAVE_STRTOLL=1
> -DSIZEOF_LONG=4 -DHAVE_I
> NT64=1 -DHAVE_TCL_H=1 -DHAVE_LIBTCL8_0=1 -DHAVE_TK_H=1
> -DHAVE_LIBTK8_0=1 -DHAV
> E_OTCL_H=1 -DHAVE_LIBOTCL1_0A4=1 -DHAVE_LIBDL=1 -I.
> -I/home/haifeng/ns6/otcl-1
> .0a5 -I/home/haifeng/ns6/tkbox/include
> -I/home/haifeng/ns6/tclbox/include -o T
> cl.o Tcl.cc
> "tclcl.h", line 209: Error: Type name expected instead
> of "bool".
> "tclcl.h", line 209: Error: No storage class or type
> for this declaration.
> "tclcl.h", line 209: Error: "," expected instead of
> "delay_bind".
> "tclcl.h", line 210: Error: Use ";" to terminate
> declarations.
> "tclcl.h", line 210: Error: Type name expected instead
> of "bool".
> "tclcl.h", line 210: Error: No storage class or type
> for this declaration.
> "tclcl.h", line 210: Error: Multiple declaration for
> bool.
> "tclcl.h", line 210: Error: "," expected instead of
> "delay_bind".
> "tclcl.h", line 211: Error: Use ";" to terminate
> declarations.
> "tclcl.h", line 211: Error: Type name expected instead
> of "bool".
> "tclcl.h", line 211: Error: No storage class or type
> for this declaration.
> "tclcl.h", line 211: Error: Multiple declaration for
> bool.
> "tclcl.h", line 211: Error: "," expected instead of
> "delay_bind_bw".
> "tclcl.h", line 212: Error: Use ";" to terminate
> declarations.
> "tclcl.h", line 212: Error: Type name expected instead
> of "bool".
> "tclcl.h", line 212: Error: No storage class or type
> for this declaration.
> "tclcl.h", line 212: Error: Multiple declaration for
> bool.
> "tclcl.h", line 212: Error: "," expected instead of
> "delay_bind_time".
> "tclcl.h", line 213: Error: Use ";" to terminate
> declarations.
> "tclcl.h", line 213: Error: Type name expected instead
> of "bool".
> "tclcl.h", line 213: Error: No storage class or type
> for this declaration.
> "tclcl.h", line 213: Error: Multiple declaration for
> bool.
> "tclcl.h", line 213: Error: "," expected instead of
> "delay_bind".
> "tclcl.h", line 214: Error: Use ";" to terminate
> declarations.
> "tclcl.h", line 214: Error: Type name expected instead
> of "bool".
> Compilation aborted, too many messages.
> *** Error code 1
> make: Fatal error: Command failed for target `Tcl.o'
> tclcl-1.0b9 make failed! Exiting ...
> See
> http://www-mash.CS.Berkeley.EDU/ns/ns-problems.html
> for problems
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Send online invitations with Yahoo! Invites.
> http://invites.yahoo.com
>