Skip to content
Tcl Source Code History Of Ticket dfc08326e3
Login

History Of Ticket dfc08326e3

Artifacts Associated With Ticket dfc08326e3

  1. Ticket change [8dabdaf7b2] (rid 134348) by stwo on 2013-09-27 16:15:59:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to: "At least one is Tcl_GetObjectFromObj."
    5. foundin initialized to: "8.6.1"
    6. is_private initialized to: "0"
    7. login: "stwo"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "36034badbf4fa68e1e6f55bc81729916152660a8"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "stwo"
    14. subsystem initialized to: "35. TclOO Package"
    15. title initialized to: "Symbols not exported correctly"
    16. type initialized to: "Bug"
  2. Ticket change [2b1150bb62] (rid 134349) by dkf on 2013-09-27 16:17:50:

    1. assignee changed to: "dkf"
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. priority changed to: "9 Immediate"
    5. severity changed to: "Severe"
  3. Ticket change [b9d8fa9264] (rid 134377) by dkf on 2013-09-28 21:03:03:

    1. icomment:
      Was caused by <a href="http://core.tcl.tk/tcl/info/742bcc2aec3aacfa">[742bcc2aec]</a>, which changed the storage class of TclOO's symbols from <tt>EXTERN</tt> to <tt>TCLOOAPI</tt>, which is at variance with Tcl.<p>Suggested workaround: define <tt>TCLOOAPI</tt> to be <tt>extern</tt> in the Makefile when <i>building</i> Tcl.
      
    2. login: "dkf"
    3. mimetype: "text/html"
    4. username: "dkf"
  4. Ticket change [09c224ef0a] (rid 134378) by dkf on 2013-09-28 21:06:27:

    1. icomment:
      The impact of the current situation is that TclOO's C API is unavailable to extensions that are statically linked with a statically-built Tcl (<tt>--disable-shared</tt>). This is not a supported configuration with the external package form of TclOO, but should be supported with Tcl 8.6 onwards; I intend to change this ASAP.
      
    2. login: "dkf"
    3. mimetype: "text/html"
    4. username: "dkf"
  5. Ticket change [ff96d66df2] (rid 134383) by dkf on 2013-09-28 21:10:49:

    1. closedate changed to: "2456564.38251499"
    2. closer changed to: "dkf"
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. resolution changed to: "Fixed"
    6. status changed to: "Closed"
  6. Ticket change [1bb7fd24fb] (rid 134386) by stwo on 2013-09-29 12:49:29:

    1. closedate changed to: "2456565.03437373"
    2. closer changed to: "stwo"
    3. icomment: "extern does not work for me but DLLEXPORT does"
    4. login: "stwo"
    5. mimetype: "text/plain"
    6. username: "stwo"
  7. Ticket change [253a31746e] (rid 134389) by stwo on 2013-09-29 18:12:06:

    1. closedate changed to: "2456565.25841196"
    2. icomment:
      DLLEXPORT makes the symbols visible in the .so, not sure that that's right
      since it seems that I all I needed to do was to call Tcl_OOInitStubs.
      
      In 8.6.1 as released, after calling Tcl_OOInitStubs I can successfully call Tcl_GetObjectFromObj.
      
      So my problem doesn't seem to be a problem.
      
    3. login: "stwo"
    4. mimetype: "text/plain"
    5. username: "stwo"
  8. Ticket change [f2b22eb907] (rid 134398) by jan.nijtmans on 2013-09-30 08:51:47:

    1. closer changed to: "nobody"
    2. icomment:
      I am failing to see the improvement of this change. I tested it, and it doesn't cause any immediate problems either. As stwo commented, problably the only thing missing in his setup was the Tcl_OOInitStubs() call.
      
      The only disadvantage of this commit is that it would prevent creating a stub-enabled TclOO extension (e.g. Itcl) compiled against 8.5 headers,
      which statically links to tclOO (with a runtime-check for Tcl8.6). If the
      TclOO symbols are exported that would cause duplicate symbols, with stock
      Tcl 8.6.0 or 8.6.1 that wouldn't be problem. Since compiling Itcl
      with TclOO gives warnings (TclOONewProcInstanceMethodEx
      and TclOONewProcMethodEx have a different signature) and Itcl 4.0 with
      8.5 appears not to be supported anyway, it really is no problem.
      
      Since Tcl 9.0 uses the TCL<PACKAGENAME>API convention everywhere, I would
      be very interested to know what's the problem with that approach. So far
      I am not aware of any problem, that's why I backported that from Tcl 9
      to 8.6 for TclOO only. Reverting that change would be a pity.
      
      >This is not a supported configuration with the external package form
      >of TclOO, but should be supported with Tcl 8.6 onwards; I intend
      >to change this ASAP. 
      I don't see any added value in supporting this: whether Tcl and/or TclOO
      are compiled as static or dynamic library is orthogonal to whether it's
      symbols are exported through the Stub table or as symbols or both
      from it's dynamic library. Calling Tcl_OOInitStubs() is the solution
      to any problem, as far as I know.
      
      I would recommend to revert this change, unless someone can point
      out a problem with the original appoach. Since tkImg and Tcl 9.0
      use the TCL<PACKAGENAME>API approach as well, I'm very interested in
      any possible problems that might cause.
      
    3. login: "jan.nijtmans"
    4. mimetype: "text/plain"
    5. status changed to: "Pending"
  9. Ticket change [280390006b] (rid 134401) by jan.nijtmans on 2013-09-30 09:15:40:

    1. icomment:
      I just noted [f51efe99a7] and tried the same on MinGW. So I was wrong on assuming that this change didn't cause any problems :-(
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/plain"
  10. Ticket change [e3ea1f22cc] (rid 134425) by jan.nijtmans on 2013-09-30 10:13:43:

    1. icomment:
      See branch [rfe-dfc08326e3]. I fail to see any advantage in doing this, neither do I see any problems with it (provided it's done correctly not breaking the MinGW build, see also ticket [f51efe99a7])
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
    4. type changed to: "RFE"
  11. Ticket change [215d6c79c2] (rid 134427) by jan.nijtmans on 2013-09-30 12:35:39:

    1. icomment:
      I don't know why Fossil's annotate points to [742bcc2aec] as making
      this change. The real commit which made this change was [d952be86c1f4375f],
      the comment makes it fully clear why.
      
      In [742bcc2aec] I committed the RFC patch by accident, but that commit was reverted immediately after. Apparent fossil's "annotate" is mislead by that.
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  12. Ticket change [264675ad37] (rid 134437) by stwo on 2013-09-30 16:40:00:

    1. icomment:
      Some more notes:
      
      The Tcl_OOInitStubs manpage is not installed as part of Tcl 8.6,
      and it isn't referenced in any of the installed OO manpages
      nor did I find much about it with Google.
      
      Tcl_PkgRequire(interp, "TclOO", "1.0", 0);
      returns non-NULL if Tcl_OOInitStubs is called or not.
      
      I consider myself a somehwat competant C programmer and it has not been an easy start to get working with TclOO at the C level. Others might have a similarly confusing experience.
      
    2. login: "stwo"
    3. mimetype: "text/plain"
    4. username: "stwo"
  13. Ticket change [426d1b891d] (rid 134438) by jan.nijtmans on 2013-10-01 08:01:47:

    1. icomment:
      For Tcl 9.0, all TclOO symbols should move from tcloo.decls to tcl.decls,
      and TclOO should not have a separate version number any more. That's what
      I expect from a really integrated TclOO. Then calling Tcl_OOInitStubs is no
      longer necessary. For Tcl 8.6 that cannot be changed any more without
      introducing binary incompatibilities (TclOO is already version 1.0), the
      best option left is improve the documentation.
      
      A Quick-Start guide for TclOO would be a good idea.
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/plain"
  14. Ticket change [b928f534c2] (rid 134471) by dkf on 2013-10-02 10:05:41:

    1. icomment:
      It's hardly my fault that you are <b>WRONG</b>, Jan.<p>There were problems with the wrong export rules being applied (now fixed) and I needed to ensure that when building without stubs enabled (<i>only</i> supported against a static Tcl 8.6) that the use of <tt>Tcl_OOInitStubs</tt> results in a suitable no-op (now fixed).<p>Existing code that built against TclOO in stub-enabled mode works as before. Nobody built against a static version, because that was broken (i.e., it could not be made to work without also linking the static stub library into the same binary, and that's a bad configuration). My changes make it so that that's now a supported build configuration, but only against Tcl 8.6.
      
    2. login: "dkf"
    3. mimetype: "text/html"
    4. username: "dkf"
  15. Ticket change [377d95f320] (rid 134472) by dkf on 2013-10-02 10:09:33:

    1. icomment:
      And by the way, I never wanted you to commit [d952be86c1f4375f] anyway. I don't trust your decisions on API export macros and I think you have a history of making bad decisions. I just can't spend all my time reviewing every commit you make.
      
    2. login: "dkf"
    3. mimetype: "text/x-fossil-wiki"
    4. username: "dkf"
  16. Ticket change [ba8e82fbe9] (rid 134475) by jan.nijtmans on 2013-10-02 10:31:37:

    1. icomment:
      >I don't trust your decisions on API export macros and I think you have a history of making bad decisions.
      I'm sorry you feel that way. We differ in opinion on this, but that's OK.
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/plain"
  17. Ticket change [1fe3f1a51e] (rid 134723) by jan.nijtmans on 2013-10-17 11:35:07:

    1. icomment:
      Since TclOOInitializeStubs() is gone now in Tcl 9.0, I
      think everything discussed here is fixed. In trunk, the
      maximum has been done keeping binary compatility: A
      static build without using stubs now works. That appears
      to be what was desired, not how symbols are exported from
      the shared library. I agree with the change which
      accomplished that.
      
      Much more code is reverted from trunk than justified
      by this ticket, but that's a separate issue that can
      be discussed elsewhere.
      
      I also had a look how TclOOInitializeStubs() could be
      eliminated from Tcl 8.6, but I don't see any way to
      do that without risking breaking binary compatibility.
      [5faca23620] could be backported to 8.7 - if desired -
      (if the need for 8.7 ever arises)
      
      Regards,
              Jan Nijtmans
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  18. Ticket change [ebb5174841] (rid 134740) by jan.nijtmans on 2013-10-17 13:47:35:

    1. closedate changed to: "2456583.0747195"
    2. closer changed to: "jan.nijtmans"
    3. login: "jan.nijtmans"
    4. mimetype: "text/plain"
    5. status changed to: "Closed"