| Ticket UUID: | f458d44204ed86ca3670c45ddf35a5db224bbe76 | |||
| Title: | --disable-shared build fails against --enable-shared build of Tcl | |||
| Type: | Bug | Version: | 8.7 | |
| Submitter: | dgp | Created on: | 2022-09-19 13:16:48 | |
| Subsystem: | 84. Unix Build | Assigned To: | nobody | |
| Priority: | 5 Medium | Severity: | Minor | |
| Status: | Closed | Last Modified: | 2026-10-20 19:05:36 | |
| Resolution: | Fixed | Closed By: | dgp | |
| Closed on: | 2026-10-20 19:05:36 | |||
| Description: |
First build Tcl (8.7 or 9.0) in the default configuration ( --enable-shared ).
Then try to build Tk in the --disable-shared configuration.
Build fails:
gcc -std=gnu11 -O2 -pipe -finput-charset=UTF-8 -Wl,--export-dynamic tkAppInit.o -L/home/dgp/fossil/tk/unix -ltk8.7 \
-L/home/dgp/fossil/tcl8.7/unix -ltcl8.7 -lXft -lfontconfig -lfreetype -lfontconfig -lX11 -lXss -lXext -ldl -lz -lpthread -lm "-Wl,-rpath,/home/dgp/x86_64/linuxoldld/lib" -o wish
zip warning: missing end signature--probably not a zip file (did you
zip warning: remember to use binary mode when you transferred it?)
zip warning: (if you are trying to read a damaged archive try -F)
zip error: Zip file structure invalid (wish)
ignore zip-error by adjust sfx process (not executable?)
If this is no longer a supported configuration (All is fine in Tcl/Tk 8.6),
then Tk's configure should notice and prevent the attempt.
| |||
| User Comments: |
dgp added on 2026-10-20 19:05:36:
Fix accepted onto the 9.0 and 9.1 branches. dgp added on 2026-10-20 18:46:18: Confirmed this branch fixes the reported build failure. serhiy.storchaka added on 2026-10-20 14:05:13: Fixed in branch static-tk-shared-tcl ([1ba9e09bd0]). With --disable-shared the zip file of Tk was created from a copy of tclsh, so that it contains the zip archive of Tcl too. But with a shared Tcl, the zip archive of Tcl is in libtcl9.1.so, not in tclsh. Now tclsh is only used if Tcl is not shared. wish finds tk_library in its own zip archive and tcl_library in libtcl9.1.so. The build against a static Tcl works as before. core-9-0-branch has the same issue. | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki