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

Re: Help for making Tcl




>>> From: Shaogang Chen <[email protected]>
>>> Date: Wed, 03 Sep 1997 11:06:59 CDT

> I can not make Tcl fetched from the site on the ns homepage. The following is
> the error message.
> 
> c++ -o Tcl.o -c -O2 -mv8 -msupersparc -D__svr4__ -DUSE_SHM -DHAVE_LIBOTCL0_96 -D
> HAVE_OTCL_H -DHAVE_LIBTK4_2 -DHAVE_TK_H -DHAVE_LIBTCL7_6 -DHAVE_TCL_H  -DNO_TK -
> I/homes/chensg/Tcl-1.0b2/../otcl-0.96 -I/homes/chensg/Tcl-1.0b2/../tk4.2/generic
>  -I/homes/chensg/Tcl-1.0b2/../tcl7.6/generic Tcl.cc
> Tcl.cc: In method `TclObject::~TclObject()':
> Tcl.cc:239: conflicting types for `class InstVar * p'
> Tcl.cc:233: previous declaration as `class TracedVar * p'
> Tcl.cc: In method `TracedVarTcl::~TracedVarTcl()':
> Tcl.cc:462: `const *' cannot be deleted
> *** Error code 1
> make: Fatal error: Command failed for target `Tcl.o'
> 
> It seems a problem of Tcl.cc source code. Has anyone experienced the similar
> problem, or I have a dump complier?

Yes!

>From the ns installations problems page
(http://www-mash.cs.berkeley.edu/ns/ns-problems.html):

---------------------------------------------------------
Problem: libTcl gets this compile message: 

      c++ -o Tcl.o -c -O2 -DUSE_SHM -DHAVE_LIBOTCL0_96 -DHAVE_OTCL_H -DHAVE_LIBTK4_2 -DHAVE_TK_H -DHAVE_LIBTCL7_6 -DHAVE_TCL_H  -DNO_TK -I/usr/local/include -I/usr/local/include/tcl7.6 -I/usr/local/include/tk4.2 Tcl.cc
      Tcl.cc: In method `TclObject::~TclObject()':
      Tcl.cc:239: conflicting types for `class InstVar * p'
      Tcl.cc:233: previous declaration as `class TracedVar * p'
      Tcl.cc: In method `TracedVarTcl::~TracedVarTcl()':
      Tcl.cc:462: `const *' cannot be deleted
             

      Solution: This is a gcc compiler bug. Get gcc-2.7.x. 

      Reported 30-Jul-97. 
---------------------------------------------------------


Kannan