Skip to content
Tcl Source Code History Of Ticket 219420
Login

History Of Ticket 219420

Artifacts Associated With Ticket 219420

  1. Ticket change [92afa08eeb] (rid 120811) by nobody on 2000-10-26 05:12:54:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 6370 Bug
      Version: 8.3.2
      SubmitDate: '2000-10-18'
      LastModified: '2000-10-25'
      Severity: CRIT
      Status: UnAssn
      Submitter: techsupp
      OS: All Unix
      OSVersion: Unicos 10.0.0.5
      Machine: Cray J90
      FixedDate: '2000-10-25'
      ClosedDate: '2000-10-25'
      
      
      Name:
      
      Len Makin
      
      
      Comments:
      
      1.(Low)The Cray system calls readlink, mknod and symlink take char * arg
      
          for path (not const char *) so tclUnixFCmd.c fails to compile. Solution:
      
          configure different? I have tried using cast (char *)src (char *)dst in
      
          appropriate places, but next bug is major and inhibits further testing.
      
      
          2.(major)In tclUnixPipe.c and tclUnixChan.c there are declared
      
          structures
      
          whose second element appears to be an int function. However the
      
          declared
      
          type of the second element in generic/tcl.h is declared as
      
          typedef struct Tcl_ChannelTypeVersion_ *Tcl_ChannelTypeVersion;
      
          This needs a fix.
      
      
          static Tcl_ChannelType fileChannelType = {
      
              "file",                             /* Type name. */
      
              FileBlockModeProc,/* Set blocking/nonblocking mode.*/
      
          ...
      
          static Tcl_ChannelType ttyChannelType = {
      
              "tty",                              /* Type name. */
      
              FileBlockModeProc,/* Set blocking/nonblocking mode.*/
      
          ...
      
          static Tcl_ChannelType tcpChannelType = {
      
              "tcp",                              /* Type name. */
      
              TcpBlockModeProc, /* Set blocking/nonblocking mode.*/
      
          ...
      
          static Tcl_ChannelType pipeChannelType = {
      
              "pipe",                             /* Type name. */
      
              PipeBlockModeProc,/* Set blocking/nonblocking mode.*/
      
          ...
      
      
      ReproducibleScript:
      
      env RANLIB=: ./configure
      
      gmake
      
      # produces compile errors
      
      
      ObservedBehavior:
      
      cc -c -O   -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_WAITPI
      
      D=1 -DNO_WAIT3=1 -DNO_DLFCN_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_TER
      
      MIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TZNAME=1 -DHAVE_TIMEZON
      
      E_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DNO_UNION_WAIT=1 -DNEED_MATHERR=1
      
      -D__CHAR_UNSIGNED__=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1         -DTCL_SH
      
      LIB_EXT=\"\" ./../unix/tclUnixChan.cCC-144 cc: ERROR File = ./../unix/tclUnixChan.c, Line = 235
      
        A value of type "int (*)(ClientData, int)" cannot be used to initialize an
      
                entity of type "struct Tcl_ChannelTypeVersion_ *".
      
      
            FileBlockModeProc,                        /* Set blocking/nonblocking mode
      
      .*/
      
            ^
      
      
      CC-144 cc: ERROR File = ./../unix/tclUnixChan.c, Line = 254
      
        A value of type "int (*)(ClientData, int)" cannot be used to initialize an
      
                entity of type "struct Tcl_ChannelTypeVersion_ *".
      
      
            FileBlockModeProc,                        /* Set blocking/nonblocking mode
      
      .*/
      
            ^
      
      
      CC-144 cc: ERROR File = ./../unix/tclUnixChan.c, Line = 273
      
        A value of type "int (*)(ClientData, int)" cannot be used to initialize an
      
                entity of type "struct Tcl_ChannelTypeVersion_ *".
      
      
            TcpBlockModeProc,                 /* Set blocking/nonblocking mode.*/
      
            ^
      
      
      3 errors detected in the compilation of "./../unix/tclUnixChan.c".
      
      ...cc -c -O   -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_WAITPI
      
      D=1 -DNO_WAIT3=1 -DNO_DLFCN_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_TER
      
      MIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TZNAME=1 -DHAVE_TIMEZON
      
      E_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DNO_UNION_WAIT=1 -DNEED_MATHERR=1
      
      -D__CHAR_UNSIGNED__=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1         -DTCL_SH
      
      LIB_EXT=\"\" ./../unix/tclUnixFCmd.c
      
      CC-167 cc: ERROR File = ./../unix/tclUnixFCmd.c, Line = 376
      
        Argument of type "const char *" is incompatible with parameter of type "char *
      
      "
      
                .
      
      
                  length = readlink(src, link, sizeof(link)); /* INTL: Native. */
      
                                    ^
      
      
      CC-167 cc: ERROR File = ./../unix/tclUnixFCmd.c, Line = 381
      
        Argument of type "const char *" is incompatible with parameter of type "char *
      
      "
      
                .
      
      
                  if (symlink(link, dst) < 0) {               /* INTL: Native. */
      
                                    ^
      
      
      CC-167 cc: ERROR File = ./../unix/tclUnixFCmd.c, Line = 388
      
        Argument of type "const char *" is incompatible with parameter of type "char *
      
      "
      
                .
      
      
                  if (mknod(dst, srcStatBuf.st_mode,          /* INTL: Native. */
      
                            ^
      
      
      3 errors detected in the compilation of "./../unix/tclUnixFCmd.c".
      
      cc -c -O -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_WAITPI
      
      D=1 -DNO_WAIT3=1 -DNO_DLFCN_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_TER
      
      MIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TZNAME=1 -DHAVE_TIMEZON
      
      E_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DNO_UNION_WAIT=1 -DNEED_MATHERR=1
      
      -D__CHAR_UNSIGNED__=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1         -DTCL_SH
      
      LIB_EXT=\"\" ./../unix/tclUnixPipe.c
      
      CC-144 cc: ERROR File = ./../unix/tclUnixPipe.c, Line = 71
      
        A value of type "int (*)(ClientData, int)" cannot be used to initialize an
      
                entity of type "struct Tcl_ChannelTypeVersion_ *".
      
      
            PipeBlockModeProc,                        /* Set blocking/nonblocking mode
      
      .*/
      
            ^
      
      
      1 error detected in the compilation of "./../unix/tclUnixPipe.c".
      
      ....
      
      
      
      
      
      
    4. foundin initialized to: "obsolete: 8.3.2"
    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: "69. Other"
    10. title initialized to: "Cray Unicos build problems for tcl8.3.2"
    11. type initialized to: "Bug"
  2. Ticket change [b54e047dee] (rid 125221) by dkf on 2000-11-15 22:06:34:

    1. subsystem changed to: "75. Tutorial"
  3. Ticket change [3242136a0f] (rid 93582) by dkf on 2001-02-08 22:18:08:

    1. subsystem changed to: "27. Channel Types"
  4. Ticket change [586cf98f3f] (rid 117800) by msofer on 2001-08-30 20:09:06:

    1. assignee changed to: "andreas_kupries"
    2. icomment:
      Logged In: YES 
      user_id=148712
      
      Assigning to an area maintainer.
      
      
    3. login: "msofer"
    4. mimetype: "text/plain"
    5. username: "msofer"
  5. Ticket change [f985fb0aaf] (rid 91723) by andreas_kupries on 2001-09-08 03:56:55:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      Ad 1) There are major changes to the filesystem code in
            8.4 (Introduction of a virtual filesystem layer)
            so it is not possible to say if this applies to
            that version too. We have to check 8.3.3 in this
            regard.
      
      Ad 2) This should be fixed in 8.3.3. Please check this
            version out.
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  6. Ticket change [990a26ad88] (rid 110713) by andreas_kupries on 2001-09-08 04:14:18:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      No changes to tclUnixFCmd between 8.3.2 and 8.3.3.
      This part of the report still relevant.
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  7. Ticket change [97a7836e20] (rid 110476) by andreas_kupries on 2001-09-08 04:29:30:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      Both Linux and Solaris declare the path argument as "const 
      char*". Just adding casts will therefore not help as this 
      will then cause these two important platforms to fail 
      compilation or to at least issue warnings.
      
      Does the compiler define some cray specific pre-processor 
      macro I can use to detect the platform ?
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  8. Ticket change [f57a5c0a20] (rid 130114) by andreas_kupries on 2001-09-08 04:32:41:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      http://www.google.com/search?q=cache:LdS-
      2fTisF4:www.navo.hpc.mil/pet/Video/HPC/SGI/PDF/cray_compiler
      _extensions.pdf+cray+cc+preprocessor+macros&hl=en
      
      and look for predefined macros. Thank google.
      
      The macros are CRAY PVP : CRAY, cray, _CRAY, _UNICOS, 
      MEMSIZE,_CRAYC90, _ADDR32, _ADDR64
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  9. Ticket change [f5f4a3d7c1] (rid 130207) by andreas_kupries on 2001-09-08 04:49:10:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      Also see http://www.cray.com/swpubs/manuals/004-2179-
      005/html-004-2179-005/c8699.htm for page with explanations.
      
      Tcl is not alone:
      http://www.geocrawler.com/archives/3/383/1999/11/0/2907730/
      
      ... I can't find autoconf macros I could use to extend 
      configure with. So it will be preprocessor macros in the 
      code itself.
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  10. Ticket change [6739472687] (rid 102866) by andreas_kupries on 2001-09-08 05:05:34:

    1. icomment:
      
      
      File Added - 10510: 219420.833.diff
      
      Logged In: YES 
      user_id=75003
      
      Ok, enclosing patches against 8.3.3 and 8.4
      which may fix the problem.
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  11. Add attachment "219420.833.diff" [3d98a52dad] (rid 121113) by andreas_kupries on 2001-09-08 05:05:34.

  12. Ticket change [9097947a43] (rid 120478) by andreas_kupries on 2001-09-08 05:06:02:

    1. icomment:
      
      
      File Added - 10511: 219420.84.diff
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  13. Add attachment "219420.84.diff" [167c09201c] (rid 124726) by andreas_kupries on 2001-09-08 05:06:02.

  14. Ticket change [0eb4decdd0] (rid 94658) by andreas_kupries on 2001-09-10 22:36:29:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      Len Makin is reachable at <[email protected]>.
      Also see http://www.hpc.csiro.au/~len/
      
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  15. Ticket change [a264ee12e0] (rid 109882) by andreas_kupries on 2001-09-14 06:25:51:

    1. closedate changed to: "2001-09-13T23:25:51"
    2. closer changed to: "andreas_kupries"
    3. status changed to: "Closed"