Overview
| Artifact ID: | e5f6bb17572744b29ae46b95f7a93295e1827da7 |
|---|---|
| Ticket: | 1819422fffffffffffffffffffffffffffffffff
tclStubsPtr out of libtcl |
| User & Date: | dgp on 2007-10-24 23:29:28 |
Changes
- icomment:
File Added - 251166: 1819422.patch Logged In: YES user_id=80530 Originator: YES One thing this patch breaks is the building of a static wish: /home/dgp/cvs/tk/unix/libtk8.5.a(tkStubLib.o): In function `Tk_InitStubs': tkStubLib.c:(.text+0x16): undefined reference to `tclStubsPtr' tkStubLib.c:(.text+0x111): undefined reference to `tclStubsPtr' tkStubLib.c:(.text+0x14f): undefined reference to `tclStubsPtr' collect2: ld returned 1 exit status Closer examination shows that this is because the static build configuration for wish implies no USE_TCL_STUBS during the compile, and a link against libtcl instead of libtclstubs. This conflicts with the code for Tk_InitStubs() in generic/tkStubLib.c where code in the source file itself forces the enabling of USE_TCL_STUBS. Why?! The attached patch for Tk inherits the genstubs changes, as well as dropping the forced USE_TCL_STUBS from tkStubLib.c. Applying this patch makes static wish build just fine. Perhaps an even better answer is to iterate on this reform, and get tkStubsPtr and Tk_InitStubs() out of libtk. I think that would also solve the issue. File Added: 1819422.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"