Artifacts Associated With Ticket 26e60451fce4df9c
Ticket change [01abd0bac0] (rid 197641) by pointsman on 2022-02-04 14:57:02:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Since [8a5f4d238e630b41] (the implementation of tip 596) bulding a custom tclsh (with a binary extension build in) with an own tclAppInit.c is broken and results in: /usr/bin/ld: [path to]/lib/libtclstub9.0.a(tclStubCall.o): in function `TclStubCall': tclStubCall.c:(.text+0xa5): undefined reference to `dlsym' /usr/bin/ld: tclStubCall.c:(.text+0xbd): undefined reference to `dlsym' /usr/bin/ld: tclStubCall.c:(.text+0xdd): undefined reference to `dlopen' /usr/bin/ld: tclStubCall.c:(.text+0xfd): undefined reference to `dlopen' /usr/bin/ld: tclStubCall.c:(.text+0x11b): undefined reference to `dlerror' /usr/bin/ld: tclStubCall.c:(.text+0x17a): undefined reference to `dlerror' collect2: error: ld returned 1 exit status while trying to link the tclsh. Prior to that commit, thinks works as they always (decades) did.
- foundin initialized to: "9.0"
- is_private initialized to: "0"
- login: "pointsman"
- priority initialized to: "5 Medium"
- private_contact initialized to: "4ca203a8e925aecdd9419645f936bccf18cd6ea7"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "pointsman"
- subsystem initialized to: "69. Other"
- title initialized to: "9.0 Building "big tclshs" is broken"
- type initialized to: "Bug"
Ticket change [ac2e32e407] (rid 197656) by jan.nijtmans on 2022-02-07 07:52:15:
- assignee changed to: "jan.nijtmans"
- icomment:
Most likely reason for this is that your tclAppInit.c is compiled with -DUSE_TCL_STUBS. Don't do that, because starting with Tcl 9.0 it is really using stubs to use load the Tcl library. Or - if you want to use the new TIP #596 functionality (I don't think you do), link with -ldl See: [https://stackoverflow.com/questions/2186219/where-is-the-library-for-dlsym]
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Invalid"
- status changed to: "Pending"
Ticket change [416ce34461] (rid 197668) by pointsman on 2022-02-07 12:43:29:
- icomment:
Yes, after removing of -DUSE_TCL_STUBS from the compiler flags while compiling the custom tclAppInit.c restores the build.
- login: "pointsman"
- mimetype: "text/plain"
- icomment:
Ticket change [029c493bb9] (rid 197670) by pointsman on 2022-02-07 12:58:12:
- icomment:
But ... since building customs tclshs seems to be still supported, at least doc/AppInit.3 is still on trunk it would be helpful to spell it out if a core change requires a change of up to that working processes. Prior to the change [8a5f4d238e630b41] a extension writer could simply use $(COMPILE) in a TEA derivated makefile to compile the custom tclAppInit.c. This isn't possible anymore and at least I can't see an easy or obvious way within the TEA framework to reflect this change. To categorise this kind of feedback about core changes as "invalid" smells a bit like ignorance to what extension authors do.
- login: "pointsman"
- mimetype: "text/plain"
- icomment:
Ticket change [ef0ac8a3c0] (rid 200231) by jan.nijtmans on 2022-04-18 17:29:55:
- closedate changed to: "2459688.22911622"
- closer changed to: "jan.nijtmans"
- login: "jan.nijtmans"
- mimetype: "text/plain"
- status changed to: "Closed"