Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-05-12
02:17 • Ticket [219364ffff] Sun Workshop Pro compiler rejects ./../generic/tclDecls.h</i... artifact: a2708b82d4 user: nobody
2001-04-05
06:52 • Ticket [219364ffff]: 3 changes artifact: d230db4928 user: dgp
2000-11-21
01:35 • Closed ticket [219364ffff]. artifact: f5c86a38e2 user: hobbs
2000-11-19
18:26 • Ticket [219364ffff]: 1 change artifact: 4a34f06ba2 user: dkf
2000-10-26
05:11 • New ticket [219364ffff]. artifact: e2eaa884c8 user: nobody

Sun Workshop Pro compiler rejects ./../generic/tclDecls.h

Closed / Invalid219364ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 05:11:30
OriginalBugID: 5919 Bug
Version: 8.3.1
SubmitDate: '2000-06-19'
LastModified: '2000-10-25'
Severity: CRIT
Status: UnAssn
Submitter: techsupp
OS: Solaris
OSVersion: Solaris 7
Machine: Sparc Ultra-10
FixedDate: '2000-10-25'
ClosedDate: '2000-10-25'


Name:
Bruce D. Ray

Extensions:
Not applicable

CustomShell:
None

ReproducibleScript:
I am running Solaris 7 on Ultra-10's.

I did the standard ./configure and edited the resulting Makefile to have the
CFLAGS set as:

CFLAGS                  = -dalign -xtarget=ultra2i -xarch=v9  -xchip=ultra2i -xprefetch=yes -O  -xlibmil -fsingle

Compilation failed.

ObservedBehavior:
cc -c -dalign -xtarget=ultra2i -xarch=v9  -xchip=ultra2i -xprefetch=yes -O  -xlibmil -fsingle  -KPIC  -I./../generic -I.  -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_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 -DNEED_MATHERR=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1          -DTCL_SHLIB_EXT=\".so\" ./../generic/regcomp.c
"./../generic/tclDecls.h", line 437: Tcl_EvalObj: argument mismatch
"./../generic/tclDecls.h", line 437: Tcl_EvalObj: argument mismatch
"./../generic/tclDecls.h", line 574: Tcl_GlobalEvalObj: argument mismatch
"./../generic/tclDecls.h", line 574: Tcl_GlobalEvalObj: argument mismatch
"./../generic/tclDecls.h", line 854: Tcl_DumpActiveMemory: argument mismatch
"./../generic/tclDecls.h", line 856: Tcl_ValidateAllMemory: argument mismatch
"./../generic/tclDecls.h", line 856: Tcl_ValidateAllMemory: argument mismatch
"./../generic/tclDecls.h", line 905: Tcl_InitMemory: argument mismatch
"./../generic/tclDecls.h", line 987: Tcl_MutexLock: argument mismatch
"./../generic/tclDecls.h", line 989: Tcl_MutexUnlock: argument mismatch
"./../generic/tclDecls.h", line 991: Tcl_ConditionNotify: argument mismatch
"./../generic/tclDecls.h", line 994: Tcl_ConditionWait: argument mismatch
"./../generic/tclDecls.h", line 994: Tcl_ConditionWait: argument mismatch
"./../generic/tclDecls.h", line 1222: Tcl_ConditionFinalize: argument mismatch
"./../generic/tclDecls.h", line 1225: Tcl_MutexFinalize: argument mismatch
"./../generic/tclDecls.h", line 437: syntax error before or at: (
"./../generic/tclDecls.h", line 437: syntax error before or at: )
"./../generic/tclDecls.h", line 438: warning: syntax error:  empty declaration
"./../generic/tclDecls.h", line 574: syntax error before or at: (
"./../generic/tclDecls.h", line 574: syntax error before or at: )
"./../generic/tclDecls.h", line 575: warning: syntax error:  empty declaration
"./../generic/tclDecls.h", line 854: syntax error before or at: )
"./../generic/tclDecls.h", line 854: warning: syntax error:  empty declaration
"./../generic/tclDecls.h", line 857: syntax error before or at: )
"./../generic/tclDecls.h", line 857: warning: syntax error:  empty declaration
"./../generic/tclDecls.h", line 905: syntax error before or at: )
"./../generic/tclDecls.h", line 905: warning: syntax error:  empty declaration
"./../generic/tclDecls.h", line 987: syntax error before or at: )
"./../generic/tclDecls.h", line 987: warning: syntax error:  empty declaration
"./../generic/tclDecls.h", line 989: syntax error before or at: )
"./../generic/tclDecls.h", line 989: warning: syntax error:  empty declaration
"./../generic/tclDecls.h", line 992: syntax error before or at: )
"./../generic/tclDecls.h", line 992: warning: syntax error:  empty declaration
"./../generic/tclDecls.h", line 996: syntax error before or at: )
"./../generic/tclDecls.h", line 996: warning: syntax error:  empty declaration
"./../generic/tclDecls.h", line 1223: syntax error before or at: )
"./../generic/tclDecls.h", line 1223: warning: syntax error:  empty declaration
"./../generic/tclDecls.h", line 1225: syntax error before or at: )
"./../generic/tclDecls.h", line 1225: warning: syntax error:  empty declaration
"./../generic/regcomp.c", line 438: cannot recover from previous errors
*** Error code 10
make: Fatal error: Command failed for target `regcomp.o'

DesiredBehavior:
A successful compilation.
dkf Ticket [219364ffff]: 1 change [History diff]2000-11-19 18:26:48
hobbsplain2000-11-21 01:35:09
I'm not sure what all the changed CFLAGS do, but tclDecls.h works normally for Solaris (a default build environment of mine).  I suspect some other change was made, or some corruption occured.  The user could try 'make genstubs' to regenerate the *Decls.h files just in case.
dgp Ticket [219364ffff]: 3 changes [History diff]2001-04-05 06:52:44
nobodyplain2001-05-12 02:17:05
Logged In: NO 

I get the same problem on SunOS4.1.4 using sun's CC on a
fresh
download of TCL8.3.3 with configure --prefix only. It does
build with
GCC on SunOS (but lots of warnings.) The problem is the
behaviour
of sun's cpp differs from that of gcc.

A number of macros are declared by tcl.h which cpp attempts
to
substitute when it sees the function prototype for the same
name
in tclDecls.h.  There's also more errors compiling
tclStubInit.c

I've fixed the compile of tcl, but haven't tested it. I'm
now fixing
compile problems with the tests. As a start, the tcl build
failed
to ranlib libtclstub83.a, and there are undefined symbols in
pkgb.so

Ant
Log in (anonymous is fine) to add a comment.