Artifacts Associated With Ticket ac3ea87305
Ticket change [91f3771a0c] (rid 247534) by oscarfv on 2025-10-26 12:43:34:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-plain"
- comment initialized to:
win/configure has this commaent: #------------------------------------------------------------------------ # Add stuff for zlib/libtommath; note that this is mostly done in the # makefile now as we just assume that the platform hasn't got usable # z.lib/tommath.lib #------------------------------------------------------------------------ MSYS2/Mingw-Packages has usable zlib & tommath for many years now. I'm the occasional package maintainer for tcl/tk and having to refresh the patch that corrects this assumption on every minor release is a pain. I'm looking into packaging tcl9/tk9 and having this annoyance resolved will be great. I'm not proficient at autotools/automake, otherwise I would be glad to submit a patch years ago. Thanks.
- is_private initialized to: "0"
- login: "oscarfv"
- priority initialized to: "5 Medium"
- private_contact initialized to: "becb0e4021beda640acc1b17b371abd9e9618647"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "oscarfv"
- subsystem initialized to: "53. Configuration and Build Tools"
- title initialized to:
Don't assume that Windows has no usable zlib/tommath
- type initialized to: "Bug"
Ticket change [5f0fc1488a] (rid 247535) by oscarfv on 2025-10-26 12:43:58:
- comment changed to:
win/configure has this comment: #------------------------------------------------------------------------ # Add stuff for zlib/libtommath; note that this is mostly done in the # makefile now as we just assume that the platform hasn't got usable # z.lib/tommath.lib #------------------------------------------------------------------------ MSYS2/Mingw-Packages has usable zlib & tommath for many years now. I'm the occasional package maintainer for tcl/tk and having to refresh the patch that corrects this assumption on every minor release is a pain. I'm looking into packaging tcl9/tk9 and having this annoyance resolved will be great. I'm not proficient at autotools/automake, otherwise I would be glad to submit a patch years ago. Thanks.
- login: "oscarfv"
- mimetype: "text/plain"
- comment changed to:
Ticket change [e52acd02b8] (rid 247680) by oscarfv on 2025-10-29 09:11:09:
- icomment:
One brute-force solution for this is to explicitly exclude Tcl's zlib1.dll, etc. from our Tcl package. As long as Tcl's vendored zlib & tommath are keep in-sync with upstream (so it is basically building the same version as we have in MSYS2), it shouldn't be problematic, although not as robust as a proper build toggle. What do you think?
- login: "oscarfv"
- mimetype: "text/plain"
- icomment:
Ticket change [749029ad89] (rid 247697) by jan.nijtmans on 2025-10-29 21:50:31:
- assignee changed to: "jan.nijtmans"
- icomment:
> What do you think? That should be OK. The zlib/tommath dll's distributed with Tcl are built with clang (ucrt) and with -static-gcclib. No other deviations from the standard build. It should be drop-in compatible with the MSYS2 built dll's.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
Ticket change [5f5466e9ec] (rid 247700) by oscarfv on 2025-10-30 08:44:30:
- icomment:
Thanks. I already adapted our (MSYS2) build recipe to use this approach instead of the patch for zlib in 8.6.17 and will do the same for tommath in 9.0.3. About 9.0.x: right now fails while building tcl90.dll with unresolved references to Tcl_GetNumberFromObj, Tcl_InitStringRep, TclBN_mp_neg, .... ClockMCDict and more. Do you want a ticket for this or is it a known problem?
- login: "oscarfv"
- mimetype: "text/plain"
- icomment:
Ticket change [bf55603793] (rid 247701) by oscarfv on 2025-10-30 08:45:10:
- icomment: "9.0.x is 9.0.2 on my previous comment."
- login: "oscarfv"
- mimetype: "text/plain"
Ticket change [cf886eb922] (rid 247702) by jan.nijtmans on 2025-10-30 09:20:36:
- icomment:
> About 9.0.x: right now fails while building tcl90.dll with unresolved references ... Try passing CFLAGS_OPTIMIZE in stead of CFLAGS. See: [84e8a94613] (not exactly the same, but similar) It might also be that a tcl.h from 8.6 is still found somewhere
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [9b9c5b73ce] (rid 259566) by serhiy.storchaka on 2026-10-20 19:15:30:
- foundin changed to: "9.0.5, 9.1.0"
- icomment:
Proposed in branch [61fe2461e3|win-system-zlib-tommath]: win/configure gets two options, off by default, so the standard build is unchanged: <verbatim>--with-system-zlib link -lz instead of the bundled zlib --with-system-libtommath link -ltommath instead of the bundled libtommath</verbatim> With them the bundled zlib1.dll / libtommath.dll and their import libraries are neither copied nor installed (for static builds the bundled objects are not compiled in), and configure fails if the library is not found. Tested natively with MSYS2 UCRT64 and its zlib and libtommath packages: tcl91.dll imports zlib1.dll and libtommath-1.dll from /ucrt64/bin, and the zlib, expr and format tests pass. Also checked with a MinGW-w64 cross build on Linux (shared and static, tests under Wine). The bundled zlib.h and tommath.h are still used for compiling, as on Unix.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
Ticket change [aef14f593f] (rid 259579) by jan.nijtmans on 2026-10-20 20:43:23:
- icomment:
I don't see anything wrong with this, so go ahead. +1
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [13e150bda0] (rid 259592) by serhiy.storchaka on 2026-10-20 21:09:33:
- login: "serhiy.storchaka"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [bdb859fec2] (rid 259600) by serhiy.storchaka on 2026-10-20 21:14:09:
- icomment:
Merged to [be527d2e2d|trunk] and [809ce55fbc|core-9-0-branch].
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [a929ee0ceb] (rid 259615) by jan.nijtmans on 2026-10-20 21:25:31:
- closedate changed to: "2461334.3927216088"
- closer changed to: "jan.nijtmans"
- icomment: "Please don't forget the changes.md/changes entries"
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"