Overview
| Artifact ID: | 176c589b7097fb1aefe8f20c81a55e0e90923e16 |
|---|---|
| Ticket: | 3397938fffffffffffffffffffffffffffffffff
load fails due to RTLD_LOCAL |
| User & Date: | uring on 2011-08-25 10:24:08 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- comment changed to:
after switching from tcl8.6b1 to tcl8.6b2 many of our apps are failing at startup when loading extensions, for example: > tclsh8.6 % load ./libfoo.so % load ./libbar.so ...error: symbol lookup error: undefined symbol: ..... this happens, because (a) libbar references a symbol which is defined in libfoo and (b) because dlopen() in tclLoadDl.c passes the flag RTLD_LOCAL (instead of RTLD_GLOBAL). this seems to be a known problem, discussed for example in bug #3216070. I understand the reasons why you came up with this change. But from a rather naive point of view it causes a severe incompatibility, stopping the many apps here which are built upon the above mentioned dependencies. At present I see the following options: (a) hacking tclLoadDl.c back to using RTDL_GLOBAL; not an approach I were happy with. Instead I'd prefer a compile option like -DLOAD_GLOBAL. (b) getting an option "-global" in tcl8.6b3, though this needs changing all "load .. " commands. (c) changing the link of libbar.so introducing an implicit depenency "-lfoo". don't know how portable this advice ist. here (linux, SuSE 11.4, binutils-2.21-13.1.x86_64) it seems to work. What do you suggest to get around this load-failures? - foundin changed to: "obsolete: 8.6b1.1"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "uring"
- subsystem changed to: "17. Commands I-L"
- title changed to: "load failes due to RTLD_LOCAL"
- type changed to: "Bug"