Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 47500c92c3ee56b54eda01acb8e3cfe43dd90895
Ticket: 218917ffffffffffffffffffffffffffffffffff
Compilation problemms under SOlaris2 with gcc
User & Date: nobody on 2000-10-26 01:07:52
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 2717 Bug
    Version: 8.2
    SubmitDate: '1999-09-10'
    LastModified: '1999-09-20'
    Severity: MED
    Status: Released
    Submitter: techsupp
    ChangedBy: hobbs
    OS: Solaris
    OSVersion: Solaris7 (Sparc)
    Machine: Other
    FixedDate: '1999-09-20'
    FixedInVersion: 8.3b1
    ClosedDate: '2000-10-25'
    
    
    Name:
    Wolfgang S. Kechel
    
    Comments:
    The character classification functions are likely to be more portable.
        Using them instead of the macros is not a big performance loss.
    
    ReproducibleScript:
    gcc -pipe -c -g -O -Wall -Wconversion -fPIC
        -I/export/home/p+r/g40/tcl8.2.0/unix/../generic
        -I/export/home/p+r/g40/tcl8.2.0/unix -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 -DRETSIGTYPE=void
        -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1
        -DTCL_SHLIB_EXT=\".so\"
        /export/home/p+r/g40/tcl8.2.0/unix/../generic/tclCompile.c
        gcc -pipe -c -g -O -Wall -Wconversion -fPIC
        -I/export/home/p+r/g40/tcl8.2.0/unix/../generic
        -I/export/home/p+r/g40/tcl8.2.0/unix -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 -DRETSIGTYPE=void
        -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1
        -DTCL_SHLIB_EXT=\".so\"
        /export/home/p+r/g40/tcl8.2.0/unix/../generic/tclDate.c
        /export/home/p+r/g40/tcl8.2.0/unix/../generic/tclDate.c: In function
        `TclDatelex':
        /export/home/p+r/g40/tcl8.2.0/unix/../generic/tclDate.c:663: warning:
        subscript has type `char'
        /export/home/p+r/g40/tcl8.2.0/unix/../generic/tclDate.c:666: warning:
        subscript has type `char'
        /export/home/p+r/g40/tcl8.2.0/unix/../generic/tclDate.c:676: warning:
        subscript has type `char'
        /export/home/p+r/g40/tcl8.2.0/unix/../generic/tclDate.c:686: warning:
        subscript has type `char'
    
    ObservedBehavior:
    Warnings denote problems in usage of string handling functions/macros.
        If the POSIX macros should be used, the index variables should have type
        int not char
    
    DesiredBehavior:
    It like Tcl to make sure the real functions are used.
        According to POSIX, this is reached by placing
        #undef-directives for isalpha and friends after including string.h.
        I have tried this out and it works fine on many platforms
        (tested Compaq True Unix, SOlaris, AIX, Irix, Linux, NT, HP/UX)
    
    Patch:
    Add:
    #undef isalpha
    #undef isdigit
    to tclDate.c after inclusion of tclPort.h
    
    PatchFiles:
    tclDate.c
    
    
    
    These functions were fixed by wrapping the args in UCHAR() for 8.3b1. 
    -- 09/20/1999 hobbs
    
  4. foundin changed to: "obsolete: 8.2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to: "Compilation problemms under SOlaris2 with gcc"
  11. type changed to: "Bug"