Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 81cd3c5ef8b001ef41902e8921fbfd4189f6cdbe
Ticket: 218666ffffffffffffffffffffffffffffffffff
compilation error on digital-unix
User & Date: nobody on 2000-10-26 01:03:53
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 1659 Bug
    Version: 8.1b2
    SubmitDate: '1999-03-29'
    LastModified: '1999-04-05'
    Severity: MED
    Status: Released
    Submitter: pat
    ChangedBy: stanton
    OS: Digital Unix
    OSVersion: 4.0B
    Machine: Other
    FixedDate: '1999-04-05'
    FixedInVersion: 8.1b3
    ClosedDate: '2000-10-25'
    
    
    Name:
    kazuro furukawa
    
    Extensions:
    None
    
    CustomShell:
    No
    
    ReproducibleScript:
        ./configure --prefix=/usr/new/src/tk/tk8.1b/Tobedel/installb2  --enable-threads --enable-shared
        make
    
    ObservedBehavior:
        (1) compilation error, type mismatch with generic/tclEncoding.c
    
        cc -c -O   -I./../generic -I. -DTCL_THREADS=1 -D_REENTRANT=1
        -DHAVE_GETCWD=1 -DHAVE_UNISTD_H=1  -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1
        -DHAVE_TM_ZONE=1 -DHAVE_TM_GMTOFF=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
        -DUSE_FIONBIO=1          -DTCL_SHLIB_EXT=\".so\" ./../generic/tclEncoding.c
        cc: Error: ./../generic/tclEncoding.c, line 737: In this statement,
        "strlen" and "unilen" may not  be combined in a conditional expression.
            encodingPtr->lengthProc     = (typePtr->nullSize == 1) ? strlen :
        unilen;
        ----------------------------------^
        make: *** [tclEncoding.o] Error 1
    
        (2) linkage error, -lpthread not used
    
        configure script didn't figure out that "-lpthread" is necessary for
        LIBS 
         on Digital-unix for "--enable-threads"
    
    DesiredBehavior:
        no errors in the make process
    
    Patch:
    (1) for tclEncoding.c
    
    *** tclEncoding.c.~1~   Sun Mar 14 03:08:10 1999
    --- tclEncoding.c       Sat Mar 27 23:01:07 1999
    ***************
    *** 734,740 ****
          encodingPtr->freeProc     = typePtr->freeProc;
          encodingPtr->nullSize     = typePtr->nullSize;
          encodingPtr->clientData   = typePtr->clientData;
    !     encodingPtr->lengthProc   = (typePtr->nullSize == 1) ? strlen : unilen;
          encodingPtr->refCount     = 1;
          encodingPtr->hPtr         = hPtr;
          Tcl_SetHashValue(hPtr, encodingPtr);
    --- 734,740 ----
          encodingPtr->freeProc     = typePtr->freeProc;
          encodingPtr->nullSize     = typePtr->nullSize;
          encodingPtr->clientData   = typePtr->clientData;
    !     encodingPtr->lengthProc   = (typePtr->nullSize == 1) ? (void *)strlen : (void *)unilen;
          encodingPtr->refCount     = 1;
          encodingPtr->hPtr         = hPtr;
          Tcl_SetHashValue(hPtr, encodingPtr);
    
    (2) for -lpthread I don't know how to fix configure/configure.in. I simplly
     add -lpthread to LIBS in Makefile.
    
    PatchFiles:
        tclEncoding.c
        Makefile (configure.in?/Makefile.in?)
    
    
    
        (1) I don't know why other platform allow the statement.  
        You see that strlen and unilen have different types and some kind of
        cast 
        should be there, although my solution may not be optimal. 
    
    Split expression into a full blown if statement.  The two functions are supposed to have the same signature, but apparently Digital-Unix is nonconforming.
    04/05/1999 18:13 - stanton -
    
    
    
  4. foundin changed to: "obsolete: 8.1b2"
  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: "10. Objects"
  10. title changed to: "compilation error on digital-unix"
  11. type changed to: "Bug"