From Newsgroup: comp.lang.tcl
On Tue, 2 Jun 2026 12:54:13 +0200, Harald Oehlmann wrote:
Am 02.06.2026 um 10:48 schrieb Eric Brunel:
Hello all,
I'm running into a very annoying issue: I have a macOS application that
includes the dynamic library for tcl 9.0.3 (libtcl9.0.dylib). To allow
users to run the application directly, I need to "codesign" the
application with a certificate issued by Apple before distributing it.
This used to work without issues with older tcl/tk versions (e.g,
8.6.x). But now, when I try to run the "codesign" command on the
executable, it refuses to put the signature into it, saying the
problematic file is libtcl9.0.dylib
In ETCL in Bologna, Manfred Rosenberger has dedicated his speach on this issue.
Maybe, there are some ideas?
https://www.eurotcl.eu/presentations/EuroTcl2025-Rosenberger-
DesktopAppsForMacOS.pdf
Harald
Thanks a lot for the pointer, Harald, it does seem it addresses a very
similar issue indeed. Sadly, it looks like my situation is not exactly the same one: I had all this codesigning and notarization process figured out,
and it was working, until tcl/tk 9.0.
I did check my initial hypothesis by running the command "unzip -l libtcl9.0.dylib" in a terminal, and it does seem the zipped contents of the tcl libray is indeed appended to the dynamic library file, as the command issues a warning "1937924 extra bytes at beginning or within zipfile", but then does print a list of files starting with the directory "tcl_library".
And it wouldn't be a surprise if the "codesign" utility identified that as
a corrupted file and therefore refused to sign the application.
I also found this ticket which seems to point out the very same issue, although for a different reason:
https://core.tcl-lang.org/tcl/tktview/113be1991e7262479a18
So it seems all of this is related to the support of zipfs in tcl, so I'll
try to rebuild on macOS turning it off, and I'll see if it solves the
issue.
Thanks again!
--
Eric
--- Synchronet 3.22a-Linux NewsLink 1.2