Artifacts Associated With Ticket 3545876
Ticket change [4d0eacc106] (rid 127000) by dgp on 2012-07-19 13:44:58:
- assignee initialized to: "kennykb"
- cmimetype initialized to: "text/plain"
- 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/ - foundin initialized to: "obsolete: 8.5.12"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "40. Dynamic Loading"
- title initialized to: "tclLoadDyld.c deprecations"
- type initialized to: "Bug"
Ticket change [9dcfddc4aa] (rid 260756) by chrstphrchvz on 2026-10-29 01:20:01:
- assignee changed to: "aku"
- closer changed to: "nobody"
- 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/ - 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.
- login: "chrstphrchvz"
- mimetype: "text/x-fossil-wiki"
- severity changed to: "Minor"