Tk Source Code

View Ticket
Login
Ticket UUID: 130949dafeffb0ceb13c7c84e6abf939a666cdb9
Title: Linux : no rule to make minizip needed to build libtk_8_7_a4.zip
Type: Bug Version: 9.0.4, 9.1b1
Submitter: nab Created on: 2021-02-02 15:06:14
Subsystem: (unused) Assigned To: jan.nijtmans
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2026-10-05 08:51:41
Resolution: None Closed By: nab
    Closed on: 2022-03-02 10:27:03
Description:
Hi,
on Linux (raspberryPiOS in fact) while trying to compile latest trunk, make fails and says more or less what's in the title (it's in french...)

./configure --enable-threads --enable-xft --with-tcl=/home/nico/Downloads/tcl8.7/unix --with-x --prefix=/opt/local

make -j 4

when adding --disable-zipfs it's ok.

++
User Comments: serhiy.storchaka added on 2026-10-05 08:51:41:

Updated in [314d29097c]: if no Tcl 9 shell runs on the build host, e.g. when cross-compiling, the archive is created with the zip program instead. The native tclsh is now set with NATIVE_TCLSH, as in Tcl's autoconf Makefiles, which also use NATIVE_ZIP for the zip program; TCLSH_NATIVE is the nmake name, and the MinGW build also accepts it.


serhiy.storchaka added on 2026-09-25 14:33:37:

Reopening: this was never fixed. Tk's Makefiles never had a rule to build minizip, and Tk has no minizip sources, so without zip the build fails in 9.0 and 9.1 (8.6 has no zipfs and is not affected). I encountered this problem when building Tk on various platforms, such as FreeBSD, NetBSD, OpenBSD, DragonFly and MinGW. Also reported as Tcl 406bba1baf.

One possible solution would be to copy the Makefile rules and the minizip sources from the Tcl repository to the Tk repository, but that would be too complex. It is simpler to use zipfs mkzip of Tcl 9, like makefile.vc does since [30d0843b21]. Proposed fix in [d399f15e5f] (branch unix-zipfs-mkzip). TCLSH_NATIVE can be set for cross-compiling.


nab added on 2021-02-02 16:51:14:
Hi Jan,
if you don't mind I prefer to let the environment very basic, like a user can install it.
so for now and my needs I'll will stick with --disable-zipfs

++

jan.nijtmans added on 2021-02-02 16:25:13:
Well, Minizip is just a minimal replacement if the "zip" utility is not installed. I see if I can do something about it, but for now can you install the "zip" utility in your environment? That should get everything working again.