|
2026-10-20
| ||
| 19:05 | • Closed ticket [f458d442]: --disable-shared build fails against --enable-shared build of Tcl plus 6 other changes artifact: 88af7982 user: dgp | |
| 19:04 | Fix [f458d44204] to build --disable-shared Tk against --enable-shared Tcl check-in: 1e956ebe user: dgp tags: core-9-0-branch | |
| 18:56 | Fix [f458d44204] to build --disable-shared Tk against --enable-shared Tcl check-in: a08fcbc9 user: dgp tags: trunk, main | |
| 18:46 | • Ticket [f458d442] --disable-shared build fails against --enable-shared build of Tcl status still Open with 3 other changes artifact: b0af14d6 user: dgp | |
| 14:05 | • Ticket [f458d442]: 3 changes artifact: 63dff64b user: serhiy.storchaka | |
| 13:52 | Fix [f458d44204]: --disable-shared build failed against --enable-shared build of Tcl: the zip file of Tk was created from tclsh, which only contains the zip archive of Tcl if Tcl is not shared. closed check-in: 1ba9e09b user: serhiy.storchaka tags: static-tk-shared-tcl | |
|
2022-09-19
| ||
| 13:16 | • New ticket [f458d442] --disable-shared build fails against --enable-shared build of Tcl. artifact: e6389f38 user: dgp | |
| 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. | |||
