Skip to content
Tcl Source Code History Of Ticket 3181878
Login

History Of Ticket 3181878

Artifacts Associated With Ticket 3181878

  1. Ticket change [1bdc84555c] (rid 123220) by mthuurne on 2011-02-15 07:52:12:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Platform: Mac OS X, 10.4/10.5/10.6
      
      In older Tcl versions, the TCL_DEFS variable in tclConfig.sh contained the full list of #defines. In recent versions, TCL_DEFS instead refers to tclConfig.h using the "-imacros" option of GCC:
      TCL_DEFS='-DHAVE_TCL_CONFIG_H  -imacros tclConfig.h'
      
      The problem is that tclConfig.h is listed as a private header and therefore not installed by default. This breaks compilation of a program against libtcl when the default installation options were used.
      
      
    4. foundin initialized to: "obsolete: 8.5.9"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "mthuurne"
    10. subsystem initialized to: "85. tclconfig"
    11. title initialized to: "tclConfig.h not installed on Mac OS X"
    12. type initialized to: "Bug"
  2. Ticket change [8f89f5e089] (rid 120285) by dkf on 2011-02-15 16:43:08:

    1. assignee changed to: "das"
    2. icomment:
      It should be noted here that it's not been recommended to use TCL_DEFS for some time; they represent Tcl's build configuration, not some extension's. That said, it used to work (at least somewhat) so this is a regression.
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. username: "dkf"
  3. Ticket change [184a13a4f3] (rid 122635) by das on 2011-02-15 16:50:25:

    1. closedate changed to: "2011-02-15T09:50:25"
    2. closer changed to: "das"
    3. icomment:
      This only happens when you use the incorrect buildsystem, specifically the configure in macosx. This enables use autoheader-generated tclConfig.h and is only there to support building tcltest from the Xcode project for debugging.
      
      Please follow the instructions in tcl/macosx/README on how to build, i.e. either use macosx/GNUmakefile or the unix/configure directly.
      
      
    4. login: "das"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"
    8. username: "das"
  4. Ticket change [05386605ec] (rid 89019) by mthuurne on 2011-02-15 17:37:33:

    1. icomment:
      @das: Indeed the problem does not occur when using the "unix" configure instead of the "macosx" one, as TCL_DEFS does not refer to tclConfig.h then. Thanks for the suggestion.
      
      @dkf: I'm not compiling an extension, I'm compiling a program that embeds the Tcl interpreter. It is unclear to me exactly which variables I should use for that and I haven't been able to find any relevant documentation. Currently I'm using TCL_DEFS and TCL_INCLUDE_SPEC. If that is wrong, please tell me what I should use instead or point me to the docs.
      
      
    2. login: "mthuurne"
    3. mimetype: "text/plain"
    4. username: "mthuurne"