[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
No Subject
Hi,
Can you help me? I installed "ns-allinone-2.1b5 Install" and have got the
problems as following.
ns-allinone-2.1b5 Install Problems, unable to compile all the components.
Machine is a SunSPARC 20 running Solaris 7.
-----------------------------------------------------------------------------
With Gcc 2.7 and Gcc 2.8.1 & setting "--enable-gcc" in the install script:
./configure --enable-gcc --prefix="$CUR_PATH/tclbox" || die "tcl8.0.4
configuration failed! Exiting ..."
Same error messages received for both versions:
creating tclConfig.sh
gcc -c -O -Wall -Wconversion -I./../generic -I. -DHAVE_GETCWD=1
-DNO_STDLIB_H=1 -DNO_STRING_H=1 -DHAVE_UNISTD_H=1
-DUSE_TERMIOS=1
-DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1
-DHAVE_TZNAME=1
-DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1
-DSTDC_HEADERS=1 -DNO_UNION_WAIT=1
-DRETSIGTYPE=void -DGETTOD_NOT_DECLARED=1
-DHAVE_SIGNED_CHAR=1
-DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1
-DTCL_SHLIB_EXT=\".so\"
-DTCL_LIBRARY=\"/home/shc1909/ns-allinone-2.1b5/tclbox/lib/tcl8.0\" \
-DTCL_PACKAGE_PATH="\"/home/shc1909/ns-allinone-2.1b5/tclbox/lib\"" \
./tclUnixInit.c
In file included from ./../generic/tclPort.h:25, from ./tclUnixInit.c:15:
./../generic/../unix/tclUnixPort.h:273: conflicting types for `gettimeofday'
/usr/include/sys/time.h:384: previous declaration of `gettimeofday'
*** Error code 1
make: Fatal error: Command failed for target `tclUnixInit.o'
tcl8.0.4 make failed! Exiting ...
-----------------------------------------------------------------------------
With using SUN SPARCWorks 5.1 compilers, we get much farther, but we are
still
unable to completely compile everything. The compiles stop at tclcl-1.0b8,
with the following error messages:
CC -c -O2 -DNO_TK -DHAVE_STRTOLL -DHAVE_SNPRINTF -DNDEBUG
-D__svr4__ -DUSE_SHM
-DHAVE_LIBOTCL1_0A4 -DHAVE_OTCL_H -DHAVE_LIBTK8_0
-DHAVE_TK_H -DHAVE_LIBTCL8_0
-DHAVE_TCL_H -I. -I../otcl-1.0a4 -I../tkbox/include -I../tclbox/include -o
tracedvar.o tracedvar.cc
"tracedvar.cc", line 73: Error: "TracedInt::assign(int)" was previously
declared "TracedInt::assign(const int)".
"tracedvar.cc", line 99: Error: "TracedDouble::assign(double)" was previously
declared "TracedDouble::assign(const double)".
2 Error(s) detected.
*** Error code 2
make: Fatal error: Command failed for target `tracedvar.o'
tclcl-1.0b8 make failed! Exiting ...
If I read the Installation Problems web page correctly, I have incorporated a
patched tclcl-1.0b8/Tcl.cc file to look like this:
---
for ( ; var != 0; var = var->next_)
if (var->tracer())
var->tracer()->trace(var);
return TCL_OK;
}
int TclObject::traceVar(const char* varName, TclObject* tracer)
---
Is this correct? (I cannot seem to get the patch command to work correctly
with the patch lines listed on the web page).
With the above patch in place, we still get these errors.
My email [email protected]
Thanks,
Son Cao