Tcl Source Code

View Ticket
Login
Ticket UUID: 62f56a61aca52db34727c731e6b0e18a4513e829
Title: Mac OSX build of Tcl aborts on startup
Type: Bug Created on: 2022-04-20 17:46:04
Submitter: dgp Assigned to: jan.nijtmans
Subsystem: 53. Configuration and Build Tools Severity: Critical
Priority: 5 Medium Last modified: 2026-10-14 15:52:59
Status: Open Closed by: nobody
Resolution: None Closed on:
Version: core-8-branch
Description:
After the latest checkin [9241b6d3ab] the mac osx build doesn't make a working program

$ cd unix 
$ ./configure
...
$ make shell
...
DYLD_LIBRARY_PATH=`pwd`: TCLLIBPATH="/Users/dgp/fossil/tcl8.7/unix/pkgs" TCL_LIBRARY="/Users/dgp/fossil/tcl8.7/library" ./tclsh 
make: *** [shell] Killed: 9
User Comments:
sl1200mk2 added on 2022-04-20 18:16:43:
the Aqua macOS build (--enable-framework) works as expected

++

jan.nijtmans added on 2022-04-20 20:26:34:

I'm aware of one problem, in zipfs, when building the shared library. Does "./configure --disable-zipfs" work?

The 'dylib' format doesn't allow a zip-file to be glued, it results in an invalid file. Marc culler wrote a macher utility to fix this, but it currently doesn't handled dylib files correctly, only executables.

Did you download "macher", and made it available in your path? That won't help in this situation (only with --disable-shared), but - anyway - we need to document the additional requirements on MacOSX :-(


serhiy.storchaka added on 2026-10-14 15:52:59:

This is probably still the case: for a non-framework build on macOS, configure still enables zipfs and appends the zip file to the dylib, with plain cat if macher is not found (unix/Makefile.in), which invalidates the code signature. CI does not cover this case: it builds macOS with the Xcode project or with --enable-framework (zipfs disabled), and the static onefiledist build installs macher 1.8 first.

Can someone with a Mac check whether ./configure && make shell still fails on current main or 9.0, and whether a current macher handles the dylib? If macher is required, configure should disable zipfs (or fail) when it is not found.