Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 02cf9ffaeefe916519891a7903966869914d6b4ea05a0034d41f41f5f8aa6d35
Ticket: 6fbabfe1661c22e7990bb917e9fa49cc16e016ea
Tkinter: Cannot find a usable init.tcl with recent core-9-0-branch
User & Date: jan.nijtmans on 2025-10-01 11:51:49
Changes

  1. icomment:
    > So do MacOS binaries support zip archives attached to the executable or shared library or not? Does it depend on the OS version, architecture, compiler toolchain or something else?
    
    It's related to security. If I remember correctly, on MacOS 10.x it worked fine. But when I switched to MacOS-11 (that's what I'm still running now), it broke, because adding a zip-file to a shared library or executable violates the file structure. The Mach-O validity checks are failing, so the OS refuses to run the binary. Marc Culler wrote the "macher" (https://github.com/culler/macher) utility to fix that such that the executable with a zip-file attached works again. But this utility only works with executables, not with shared libraries (I understood that it's quite complicated to make it work with shared libraries).
    
    So, I'm quite sure that attaching a zip-file to a shared library doesn't work since at least MacOS-11: I experienced this myself. With static executables it works, if you install Culler's "macher" utility.
    
  2. login: "jan.nijtmans"
  3. mimetype: "text/plain"