For Programmers: Free Programming Magazines  


Home > Archive > Tcl > December 2007 > Problems compiling tcl 8.5.0 test suite









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Problems compiling tcl 8.5.0 test suite
Jeffery Small

2007-12-31, 8:16 am

I am compiling tcl 8.5.0 on a Sun SPARC system. When I type "make", the
program compiles flawlessly. Then when I type "make test", the attempt
to compile ../unix/tclAppInit.c results in a massive set of errors and
warnings. Here are just a few samples:

"../generic/tclInt.h", line 2006: syntax error before or at: Tcl_LimitHandlerProc
"../generic/tclInt.h", line 2009: syntax error before or at: Tcl_LimitHandlerDeleteProc
"../generic/tclInt.h", line 2367: warning: no explicit type given
"../generic/tclInt.h", line 2367: syntax error before or at: *
"../generic/tclInt.h", line 2367: warning: old-style declaration or incorrect type for: tclGet---->TimeProcPtr
[...]
"../generic/tclTomMathDecls.h", line 153: syntax error before or at: *
"../generic/tclTomMathDecls.h", line 153: parameter redeclared: mp_int
"../generic/tclTomMathDecls.h", line 153: parameter redeclared: mp_int
"../generic/tclTomMathDecls.h", line 158: syntax error before or at: *
"../generic/tclTomMathDecls.h", line 158: warning: undefined or missing type for: b
"../generic/tclTomMathDecls.h", line 158: parameter redeclared: mp_int

and on and on. I don't see any obvious syntax errors in these header files.
Has anyone else seen something like this and can offer a pointer as to
what may be wrong?

Thanks.
--
Jeffery Small
jkj

2007-12-31, 8:16 am

For Solaris systems, the best place to start is using some package
system - try sunfreeware.com [my preference for pre-Solaris 10] or
blastwave.org and see if you can get tcl/tk added in that manner...
saves time/headaches! Otherwise, you have an issue with either an
INCLUDE setting or you may be building external to the source
directory and the code is expecting you to build within the source
tree? some include file that will allow the other include files to
make sense appears to be missing, I think.

-Kevin
Michael Schlenker

2007-12-31, 8:16 am

Jeffery Small schrieb:
> I am compiling tcl 8.5.0 on a Sun SPARC system. When I type "make", the
> program compiles flawlessly. Then when I type "make test", the attempt
> to compile ../unix/tclAppInit.c results in a massive set of errors and
> warnings. Here are just a few samples:
>
> "../generic/tclInt.h", line 2006: syntax error before or at: Tcl_LimitHandlerProc
> "../generic/tclInt.h", line 2009: syntax error before or at: Tcl_LimitHandlerDeleteProc
> "../generic/tclInt.h", line 2367: warning: no explicit type given
> "../generic/tclInt.h", line 2367: syntax error before or at: *
> "../generic/tclInt.h", line 2367: warning: old-style declaration or incorrect type for: tclGet---->TimeProcPtr
> [...]
> "../generic/tclTomMathDecls.h", line 153: syntax error before or at: *
> "../generic/tclTomMathDecls.h", line 153: parameter redeclared: mp_int
> "../generic/tclTomMathDecls.h", line 153: parameter redeclared: mp_int
> "../generic/tclTomMathDecls.h", line 158: syntax error before or at: *
> "../generic/tclTomMathDecls.h", line 158: warning: undefined or missing type for: b
> "../generic/tclTomMathDecls.h", line 158: parameter redeclared: mp_int
>
> and on and on. I don't see any obvious syntax errors in these header files.
> Has anyone else seen something like this and can offer a pointer as to
> what may be wrong?


Which compiler, which version of Solaris?

AFAIK the ActiveState folks compile with the sun compiler, but others
also compile with gcc and it works, so there must be something up there.

If you don't insist on compiling yourself you could use the solaris
distribution from ActiveState...

Michael
Jeffery Small

2007-12-31, 7:15 pm

Michael Schlenker <schlenk@uni-oldenburg.de> writes:

>Which compiler, which version of Solaris?


Sun C 5.8 Patch 121015-06 2007/10/03
Solaris 8

The reason for the older OS and compiler is that this is a build of tcl/tk
for the blastwave site and we are compiling for backward compatibility for
all Sun systems supported by Solaris 8 onward.

Here is the compile line that generates the errors:

cc -xarch=v8 -xstrconst -xildoff -c -O -I/opt/csw/include -KPIC \
-I. -I/export/home/jeff/pkgs/tcl/src/tcl8.5.0/unix/../unix \
-I/export/home/jeff/pkgs/tcl/src/tcl8.5.0/unix/../generic \
-I/export/home/jeff/pkgs/tcl/src/tcl8.5.0/unix/../libtommath \
-DPACKAGE_NAME=\"tcl\" -DPACKAGE_TARNAME=\"tcl\" -DPACKAGE_VERSION=\"8.5\" \
-DPACKAGE_STRING=\"tcl\ 8.5\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 \
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 \
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 \
-DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 \
-DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_POSIX_PTHREAD_SEMANTICS=1 \
-D_THREAD_SAFE=1 -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 \
-DTCL_THREADS=1 -DTCL_CFGVAL_ENCODING=\"iso8859-1\" -D_REENTRANT=1 \
-D_POSIX_PTHREAD_SEMANTICS=1 -DTCL_SHLIB_EXT=\".so\" -DTCL_CFG_OPTIMIZED=1 \
-DTCL_CFG_DEBUG=1 -DTCL_TOMMATH=1 -DMP_PREC=4 -DTCL_WIDE_INT_TYPE=long\ \
long -DHAVE_STRUCT_DIRENT64=1 -DHAVE_STRUCT_STAT64=1 -DHAVE_OPEN64=1 \
-DHAVE_LSEEK64=1 -DHAVE_TYPE_OFF64_T=1 -DWORDS_BIGENDIAN=1 -DHAVE_GETCWD=1 \
-DHAVE_OPENDIR=1 -DHAVE_STRTOL=1 -DHAVE_WAITPID=1 -DHAVE_GETADDRINFO=1 \
-DHAVE_GETPWUID_R_5=1 -DHAVE_GETPWUID_R=1 -DHAVE_GETPWNAM_R_5=1 \
-DHAVE_GETPWNAM_R=1 -DHAVE_GETGRGID_R_5=1 -DHAVE_GETGRGID_R=1 \
-DHAVE_GETGRNAM_R_5=1 -DHAVE_GETGRNAM_R=1 -DHAVE_GETHOSTBYNAME_R_5=1 \
-DHAVE_GETHOSTBYNAME_R=1 -DHAVE_GETHOSTBYADDR_R_7=1 \
-DHAVE_GETHOSTBYADDR_R=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 \
-DTIME_WITH_SYS_TIME=1 -DHAVE_TZNAME=1 -DHAVE_GMTIME_R=1 \
-DHAVE_LOCALTIME_R=1 -DHAVE_MKTIME=1 -DHAVE_TIMEZONE_VAR=1 \
-DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_ST_BLKSIZE=1 -DHAVE_INTPTR_T=1 \
-DHAVE_UINTPTR_T=1 -DNO_UNION_WAIT=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 \
-DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1 -DTCL_UNLOAD_DLLS=1 \
-DTCL_BUILDTIME_LIBRARY="\"/export/home/jeff/pkgs/tcl/src/tcl8.5.0/library\"" \
-DTCL_TEST /export/home/jeff/pkgs/tcl/src/tcl8.5.0/unix/../unix/tclAppInit.c

And once again, some of th 296 error and warning messages generated:

"../generic/tclInt.h", line 2006: syntax error before or at: Tcl_LimitHandlerProc
"../generic/tclInt.h", line 2009: syntax error before or at: Tcl_LimitHandlerDeleteProc
"../generic/tclInt.h", line 2367: warning: no explicit type given
"../generic/tclInt.h", line 2367: syntax error before or at: *
"../generic/tclInt.h", line 2367: warning: old-style declaration or incorrect type for: tclGetTimeProcPtr
[...]
"../generic/tclTomMathDecls.h", line 153: syntax error before or at: *
"../generic/tclTomMathDecls.h", line 153: parameter redeclared: mp_int
"../generic/tclTomMathDecls.h", line 153: parameter redeclared: mp_int
"../generic/tclTomMathDecls.h", line 158: syntax error before or at: *
"../generic/tclTomMathDecls.h", line 158: warning: undefined or missing type for: b
"../generic/tclTomMathDecls.h", line 158: parameter redeclared: mp_int
[...]
"../generic/tclTomMathDecls.h", line 520: syntax error before or at: *
"../generic/tclTomMathDecls.h", line 520: parameter redeclared: mp_int
"../generic/tclTomMathDecls.h", line 520: parameter redeclared: mp_int
cc: acomp failed for ../unix/tclAppInit.c
*** Error code 2
make: Fatal error: Command failed for target `tclTestInit.o'

With some sleep, I'll look into this more closely. It is probably some
sort of header file incompatibility problem. In the mean time, I'm
hoping someone else has seen this before.

Regards,
--
Jeff
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com