Skip to content
Tcl Source Code History Of Ticket 219230
Login

History Of Ticket 219230

Artifacts Associated With Ticket 219230

  1. Ticket change [3e139ff123] (rid 121202) by nobody on 2000-10-26 05:03:53:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 4263 RFE
      Version: 8.3
      SubmitDate: '2000-02-28'
      LastModified: '2000-03-01'
      Severity: CRIT
      Status: Assigned
      Submitter: techsupp
      ChangedBy: hobbs
      OS: Linux-Red Hat
      FixedDate: '2000-10-25'
      ClosedDate: '2000-10-25'
      
      
      Name:
      
      mo
      
      
      Comments:
      
      This patch makes the UNIX build define tcl_platform(debug) just like
      
          the windows verison. I am not sure if this is the "right" way to do it,
      
          but it works.
      
      
      ReproducibleScript:
      
      When Tcl is compiled with the --enable-symbols flag, the tcl_platform(debug)
      
      is not set. This same var is set under Windows when compiling with debug
      
      on. Any script that looks for tcl_platform(debug) will break when run
      
      under unix.
      
      
      Patch:
      
      Index: unix/tcl.m4
      
      ===================================================================
      
      RCS file: /cvsroot/tcl/unix/tcl.m4,v
      
      retrieving revision 1.20
      
      diff -u -r1.20 tcl.m4
      
      --- tcl.m42000/02/10 08:55:321.20
      
      +++ tcl.m42000/02/28 21:24:51
      
      @@ -575,7 +575,7 @@
      
           TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`'
      
           ECHO_VERSION='`echo ${VERSION}`'
      
           TCL_LIB_VERSIONS_OK=ok
      
      -    CFLAGS_DEBUG=-g
      
      +    CFLAGS_DEBUG="-g -D_DEBUG"
      
           CFLAGS_OPTIMIZE=-O
      
           if test "$using_gcc" = "yes" ; then
      
       CFLAGS_WARNING="-Wall -Wconversion -Wno-implicit-int"
      
      Index: unix/tclUnixInit.c
      
      ===================================================================
      
      RCS file: /cvsroot/tcl/unix/tclUnixInit.c,v
      
      retrieving revision 1.18
      
      diff -u -r1.18 tclUnixInit.c
      
      --- tclUnixInit.c1999/10/13 00:32:491.18
      
      +++ tclUnixInit.c2000/02/28 21:24:51
      
      @@ -580,6 +580,18 @@
      
       Tcl_SetVar2(interp, "tcl_platform", "osVersion", "", TCL_GLOBAL_ONLY);
      
       Tcl_SetVar2(interp, "tcl_platform", "machine", "", TCL_GLOBAL_ONLY);
      
           }
      
      +    
      
      +#ifdef _DEBUG
      
      +    /*
      
      +     * The existence of the "debug" element of the tcl_platform array indicates
      
      +     * that this particular Tcl shell has been compiled with debug information.
      
      +     * Using "info exists tcl_platform(debug)" a Tcl script can direct the 
      
      +     * interpreter to load debug versions of shared libs with the load command.
      
      +     */
      
      +
      
      +    Tcl_SetVar2(interp, "tcl_platform", "debug", "1",
      
      +    TCL_GLOBAL_ONLY);
      
      +#endif
      
      
           /*
      
            * Copy USER or LOGNAME environment variable into tcl_platform(user)
      
      
      PatchFiles:
      
      unix/tclUnixInit.c
      
          unix/tcl.m4
      
      
      
      
      It's noted under tclvars in the docs that tcl_platform(debug)
      is only defined on Windows, so I've changed this to RFE. 
      -- 03/01/2000 hobbs 
      -- 03/01/2000 hobbs
      
    4. foundin initialized to: "obsolete: 8.3"
    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: "07. Variables"
    10. title initialized to: "tcl_platform(debug) is not defined under UNIX"
    11. type initialized to: "RFE"
  2. Ticket change [9db12b0d65] (rid 96352) by dkf on 2001-02-07 22:51:19:

    1. foundin changed to: "obsolete: 8.4a3"
    2. subsystem changed to: "38. Init - Library - Autoload"
  3. Ticket change [208252c8d8] (rid 130441) by dgp on 2001-02-08 13:49:43:

    1. assignee changed to: "dgp"
  4. Ticket change [ec6cfbbfbd] (rid 103705) by dgp on 2001-04-04 04:21:55:

    1. subsystem changed to: "38. Init - Library - Autoload"
  5. Ticket change [f019c0f1b0] (rid 109119) by davygrvy on 2002-11-27 09:39:49:

    1. assignee changed to: "hobbs"
    2. icomment:
      Logged In: YES 
      user_id=7549
      
      Jeff, has this been changed in the recent TEA2 mods?
      
      
    3. login: "davygrvy"
    4. mimetype: "text/plain"
    5. username: "davygrvy"
  6. Ticket change [b1869cc35b] (rid 132596) by jan.nijtmans on 2013-07-02 12:59:53:

    1. assignee changed to: "jhobbs"
    2. closedate changed to: "2456476.04159678"
    3. closer changed to: "jan.nijtmans"
    4. comment changed to:
      OriginalBugID: 4263 RFE
      Version: 8.3
      SubmitDate: '2000-02-28'
      LastModified: '2000-03-01'
      Severity: CRIT
      Status: Assigned
      Submitter: techsupp
      ChangedBy: hobbs
      OS: Linux-Red Hat
      FixedDate: '2000-10-25'
      ClosedDate: '2000-10-25'
      
      
      Name:
      
      mo
      
      
      Comments:
      
      This patch makes the UNIX build define tcl_platform(debug) just like
      
          the windows verison. I am not sure if this is the "right" way to do it,
      
          but it works.
      
      
      ReproducibleScript:
      
      When Tcl is compiled with the --enable-symbols flag, the tcl_platform(debug)
      
      is not set. This same var is set under Windows when compiling with debug
      
      on. Any script that looks for tcl_platform(debug) will break when run
      
      under unix.
      
      
      Patch:
      
      Index: unix/tcl.m4
      
      ===================================================================
      
      RCS file: /cvsroot/tcl/unix/tcl.m4,v
      
      retrieving revision 1.20
      
      diff -u -r1.20 tcl.m4
      
      --- tcl.m42000/02/10 08:55:321.20
      
      +++ tcl.m42000/02/28 21:24:51
      
      @@ -575,7 +575,7 @@
      
           TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`'
      
           ECHO_VERSION='`echo ${VERSION}`'
      
           TCL_LIB_VERSIONS_OK=ok
      
      -    CFLAGS_DEBUG=-g
      
      +    CFLAGS_DEBUG="-g -D_DEBUG"
      
           CFLAGS_OPTIMIZE=-O
      
           if test "$using_gcc" = "yes" ; then
      
       CFLAGS_WARNING="-Wall -Wconversion -Wno-implicit-int"
      
      Index: unix/tclUnixInit.c
      
      ===================================================================
      
      RCS file: /cvsroot/tcl/unix/tclUnixInit.c,v
      
      retrieving revision 1.18
      
      diff -u -r1.18 tclUnixInit.c
      
      --- tclUnixInit.c1999/10/13 00:32:491.18
      
      +++ tclUnixInit.c2000/02/28 21:24:51
      
      @@ -580,6 +580,18 @@
      
       Tcl_SetVar2(interp, "tcl_platform", "osVersion", "", TCL_GLOBAL_ONLY);
      
       Tcl_SetVar2(interp, "tcl_platform", "machine", "", TCL_GLOBAL_ONLY);
      
           }
      
      +    
      
      +#ifdef _DEBUG
      
      +    /*
      
      +     * The existence of the "debug" element of the tcl_platform array indicates
      
      +     * that this particular Tcl shell has been compiled with debug information.
      
      +     * Using "info exists tcl_platform(debug)" a Tcl script can direct the 
      
      +     * interpreter to load debug versions of shared libs with the load command.
      
      +     */
      
      +
      
      +    Tcl_SetVar2(interp, "tcl_platform", "debug", "1",
      
      +    TCL_GLOBAL_ONLY);
      
      +#endif
      
      
           /*
      
            * Copy USER or LOGNAME environment variable into tcl_platform(user)
      
      
      PatchFiles:
      
      unix/tclUnixInit.c
      
          unix/tcl.m4
      
      
      
      
      It's noted under tclvars in the docs that tcl_platform(debug)
      is only defined on Windows, so I've changed this to RFE. 
      -- 03/01/2000 hobbs 
      -- 03/01/2000 hobbs
      
    5. icomment:
      TIP #59 now has another way to embed this kind of information
      
    6. login: "jan.nijtmans"
    7. mimetype: "text/plain"
    8. resolution changed to: "Out of Date"
    9. severity changed to: "Minor"
    10. status changed to: "Closed"