Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-23
02:12 • Ticket [218237ffff] Can't compile under Solaris 2. with SUN cc status st... artifact: 95fb76103c user: dgp
2000-10-26
08:17 • Closed ticket [218237ffff]. artifact: 102a2b9b3b user: welch
00:54 • New ticket [218237ffff]. artifact: 41ba80819b user: nobody

Can't compile under Solaris 2. with SUN cc

Closed / Wont Fix218237ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:54:55
OriginalBugID: 2726 Bug
Version: 8.1.1
SubmitDate: '1999-09-10'
LastModified: '1999-09-28'
Severity: CRIT
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
OS: Solaris
OSVersion: 2.6
Machine: Other
FixedDate: '2000-10-25'
ClosedDate: '1999-09-28'


Name:
Olivier Lefevre

ReproducibleScript:
configure command was './configure --enable-threads --enable-shared
    --disable-gcc'
    'cc -V' returns cc: WorkShop Compilers 4.2 30 Oct 1996 C 4.2
    then just 'make'

ObservedBehavior:
/home/lefevrol/wks/sun/prod/bin/cc -c -O  -KPIC  -I./../generic -I.
    -DTCL_THREADS=1 -D_REENTRANT=1 -DHAVE_GETCWD=1 -DNO_ERRNO_H=1
    -DNO_FLOAT_H=1 -DNO_VALUES_H=1 -DNO_LIMITS_H=1 -DNO_STDLIB_H=1
    -DNO_STRING_H=1 -DNO_SYS_WAIT_H=1 -DNO_DLFCN_H=1 -DUSE_TERMIOS=1
    -DTIME_WITH_SYS_TIME=1 -DHAVE_TZNAME=1 -DHAVE_TIMEZONE_VAR=1
    -DHAVE_ST_BLKSIZE=1 -Dmode_t=int -Dpid_t=int -Dsize_t=unsigned
    -Duid_t=int -Dgid_t=int -DNO_UNION_WAIT=1 -DRETSIGTYPE=int -Dvfork=fork
    -DGETTOD_NOT_DECLARED=1 -DHAVE_SIGNED_CHAR=1
    -DTCL_SHLIB_EXT=\".so\" ./../generic/regcomp.c
    "/usr/include/stdio.h", line 34: invalid type combination
    "/usr/include/stdio.h", line 34: warning: useless declaration
    "/usr/include/stdio.h", line 34: warning: typedef declares no type name
    "/usr/include/sys/types.h", line 246: warning: modification of typedef
    with "int" ignored
    "/usr/include/sys/types.h", line 246: invalid type combination
    "/usr/include/sys/types.h", line 246: warning: useless declaration
    "/usr/include/sys/types.h", line 246: warning: typedef declares no type
    name
    "/usr/include/sys/types.h", line 250: warning: useless declaration
    "/usr/include/sys/types.h", line 250: warning: typedef declares no type
    name
    "/usr/include/sys/types.h", line 253: invalid type combination
    "/usr/include/sys/types.h", line 253: warning: useless declaration
    "/usr/include/sys/types.h", line 253: warning: typedef declares no type
    name
    "/usr/include/sys/types.h", line 256: warning: useless declaration
    "/usr/include/sys/types.h", line 256: warning: typedef declares no type
    name
    "/usr/include/limits.h", line 58: warning: macro redefined: SHRT_MIN
    "/usr/include/limits.h", line 59: warning: macro redefined: SHRT_MAX
    "/usr/include/limits.h", line 61: warning: macro redefined: INT_MIN
    "/usr/include/limits.h", line 62: warning: macro redefined: INT_MAX
    "/usr/include/limits.h", line 72: warning: macro redefined: LONG_MIN
    "/usr/include/limits.h", line 74: warning: macro redefined: LONG_MAX
    "./../generic/regcomp.c", line 623: cannot recover from previous errors
    cc: acomp failed for ./../generic/regcomp.c
    *** Error code 2
    make: Fatal error: Command failed for target `regcomp.o'

DesiredBehavior:
I suspect some of the -D flags, particularly those that mess up with
    types, have nothing to do here.
    You used to work for SUN. It is dismaying to see that it took just 1
    more release to break compati-
    bility with SUn cc.



This looks like cc was not setup, or the user is trying to use
the cc that comes with Solaris (which actually doesn't work).
The compiler complains from the get-go about lines in the
std include headers, not the Tcl c file. 
-- 09/28/1999 hobbs
welch Closed ticket [218237ffff]. [History diff]2000-10-26 08:17:54
dgp Ticket [218237ffff]: 4 changes [History diff]2001-04-23 02:12:44
Log in (anonymous is fine) to add a comment.