Skip to content
Tcl Source Code History Of Ticket 3545876
Login

History Of Ticket 3545876

Artifacts Associated With Ticket 3545876

  1. Ticket change [4d0eacc106] (rid 127000) by dgp on 2012-07-19 13:44:58:

    1. assignee initialized to: "kennykb"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      Forwarded from Gustaf Neumann:
      
      % clang --version
      Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn)
      ...
      /usr/local/src/tcl8.5.12/unix/../unix/tclLoadDyld.c:386:17: warning: 'NSLookupSymbolInImage' is deprecated [-Wdeprecated-declarations]
                   nsSymbol = NSLookupSymbolInImage(dyldLoadHandle->dyldLibHeader,
                              ^
      /usr/local/src/tcl8.5.12/unix/../unix/tclLoadDyld.c:419:3: warning: 'NSLinkEditError' is deprecated [-Wdeprecated-declarations]
                       NSLinkEditError(&editError, &errorNumber, &errorName, &errMsg);
                       ^
      /usr/local/src/tcl8.5.12/unix/../unix/tclLoadDyld.c:423:17: warning: 'NSLookupSymbolInModule' is deprecated [-Wdeprecated-declarations]
                   nsSymbol = NSLookupSymbolInModule(
                              ^
      /usr/local/src/tcl8.5.12/unix/../unix/tclLoadDyld.c:432:13: warning: 'NSAddressOfSymbol' is deprecated [-Wdeprecated-declarations]
                   proc = NSAddressOfSymbol(nsSymbol);
                          ^
      /usr/local/src/tcl8.5.12/unix/../unix/tclLoadDyld.c:497:15: warning: 'NSUnLinkModule' is deprecated [-Wdeprecated-declarations]
                   result = NSUnLinkModule(modulePtr->module,
                            ^
      /usr/local/src/tcl8.5.12/unix/../unix/tclLoadDyld.c:701:12: warning: 'NSCreateObjectFileImageFromMemory' is deprecated [-Wdeprecated-declarations]
                   err = NSCreateObjectFileImageFromMemory(buffer, codeSize,
                         ^
      /usr/local/src/tcl8.5.12/unix/../unix/tclLoadDyld.c:734:14: warning: 'NSLinkModule' is deprecated [-Wdeprecated-declarations]
           module = NSLinkModule(dyldObjFileImage, "[Memory Based Bundle]",
                    ^
      /usr/local/src/tcl8.5.12/unix/../unix/tclLoadDyld.c:736:5: warning: 'NSDestroyObjectFileImage' is deprecated [-Wdeprecated-declarations]
           NSDestroyObjectFileImage(dyldObjFileImage);
           ^
      /usr/local/src/tcl8.5.12/unix/../unix/tclLoadDyld.c:744:2: warning: 'NSLinkEditError' is deprecated [-Wdeprecated-declarations]
               NSLinkEditError(&editError, &errorNumber, &errorName, &errMsg);
               ^
      9 warnings generated.
      
      Not immediately critical, but might be a warning we need to react
      to as we move forward.
      
      More information found at:
      http://www.mulle-kybernetik.com/weblog/2010/01/
      
    4. foundin initialized to: "obsolete: 8.5.12"
    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: "dgp"
    10. subsystem initialized to: "40. Dynamic Loading"
    11. title initialized to: "tclLoadDyld.c deprecations"
    12. type initialized to: "Bug"
  2. Ticket change [9dcfddc4aa] (rid 260756) by chrstphrchvz on 2026-10-29 01:20:01:

    1. assignee changed to: "aku"
    2. closer changed to: "nobody"
    3. comment changed to:
      Forwarded from Gustaf Neumann:
      
      % clang --version
      Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn)
      ...
      /usr/local/src/tcl8.5.12/unix/../unix/tclLoadDyld.c:386:17: warning: 'NSLookupSymbolInImage' is deprecated [-Wdeprecated-declarations]
                   nsSymbol = NSLookupSymbolInImage(dyldLoadHandle->dyldLibHeader,
                              ^
      /usr/local/src/tcl8.5.12/unix/../unix/tclLoadDyld.c:419:3: warning: 'NSLinkEditError' is deprecated [-Wdeprecated-declarations]
                       NSLinkEditError(&editError, &errorNumber, &errorName, &errMsg);
                       ^
      /usr/local/src/tcl8.5.12/unix/../unix/tclLoadDyld.c:423:17: warning: 'NSLookupSymbolInModule' is deprecated [-Wdeprecated-declarations]
                   nsSymbol = NSLookupSymbolInModule(
                              ^
      /usr/local/src/tcl8.5.12/unix/../unix/tclLoadDyld.c:432:13: warning: 'NSAddressOfSymbol' is deprecated [-Wdeprecated-declarations]
                   proc = NSAddressOfSymbol(nsSymbol);
                          ^
      /usr/local/src/tcl8.5.12/unix/../unix/tclLoadDyld.c:497:15: warning: 'NSUnLinkModule' is deprecated [-Wdeprecated-declarations]
                   result = NSUnLinkModule(modulePtr->module,
                            ^
      /usr/local/src/tcl8.5.12/unix/../unix/tclLoadDyld.c:701:12: warning: 'NSCreateObjectFileImageFromMemory' is deprecated [-Wdeprecated-declarations]
                   err = NSCreateObjectFileImageFromMemory(buffer, codeSize,
                         ^
      /usr/local/src/tcl8.5.12/unix/../unix/tclLoadDyld.c:734:14: warning: 'NSLinkModule' is deprecated [-Wdeprecated-declarations]
           module = NSLinkModule(dyldObjFileImage, "[Memory Based Bundle]",
                    ^
      /usr/local/src/tcl8.5.12/unix/../unix/tclLoadDyld.c:736:5: warning: 'NSDestroyObjectFileImage' is deprecated [-Wdeprecated-declarations]
           NSDestroyObjectFileImage(dyldObjFileImage);
           ^
      /usr/local/src/tcl8.5.12/unix/../unix/tclLoadDyld.c:744:2: warning: 'NSLinkEditError' is deprecated [-Wdeprecated-declarations]
               NSLinkEditError(&editError, &errorNumber, &errorName, &errMsg);
               ^
      9 warnings generated.
      
      Not immediately critical, but might be a warning we need to react
      to as we move forward.
      
      More information found at:
      http://www.mulle-kybernetik.com/weblog/2010/01/
      
    4. icomment:
      Usage of these functions is still present, but their deprecation warnings have been suppressed since [4760483b] (8.5.19 and 8.6.5). 
      
      My impression is that usage of these functions is not strictly necessary and possibly no longer beneficial.
      <ul>
      <li><tt>NSCreateObjectFileImageFromMemory()</tt> was intentionally deprecated without replacement due to [https://developer.apple.com/documentation/bundleresources/entitlements/com.apple.security.cs.allow-unsigned-executable-memory?language=objc#Discussion|security concerns]. The remaining deprecated functions were replaced by macOS 10.5's improved <tt>dlopen()</tt>, <tt>dlsym()</tt>, <tt>dlclose()</tt>, and <tt>dlerror()</tt>.
      <li><tt>NSLinkModule()</tt> [https://slyd0g.medium.com/understanding-and-defending-against-reflective-code-loading-on-macos-e2e83211e48f|reportedly] loads "in-memory" code from a temporary file anyway on recent macOS versions.</li>
      <li><tt>NSLookupSymbolInImage()</tt> [https://github.com/opentk/opentk/issues/1308|reportedly] no longer works on recent macOS versions.</li>
      </ul>
      
      So I think removing usage of these functions is likely a good idea, and since <tt>TCL_LOAD_FROM_MEMORY</tt> was only ever implemented on Darwin, all code related to it could be removed from Tcl.
      
    5. login: "chrstphrchvz"
    6. mimetype: "text/x-fossil-wiki"
    7. severity changed to: "Minor"