Mac OSX build of Tcl aborts on startup
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
the Aqua macOS build (--enable-framework) works as expected ++
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 :-(
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.