Skip to content
Tcl Source Code History Of Ticket 218666
Login

History Of Ticket 218666

Artifacts Associated With Ticket 218666

  1. Ticket change [81cd3c5ef8] (rid 117109) by nobody on 2000-10-26 01:03:53:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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 initialized to: "obsolete: 8.1b2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "10. Objects"
    10. title initialized to: "compilation error on digital-unix"
    11. type initialized to: "Bug"
  2. Ticket change [451f3be915] (rid 116831) by welch on 2000-10-26 08:26:11:

    1. closedate changed to: "2000-10-26T01:26:11"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"