Overview
| Artifact ID: | 43d8e5a9e77e0f5388b258c946b451777b8cdcd5 |
|---|---|
| Ticket: | 3033027fffffffffffffffffffffffffffffffff
load: loaded shared libraries don't export symbols (OS X) |
| User & Date: | petasis on 2010-07-22 11:47:32 |
Changes
- assignee changed to: "kennykb"
- cmimetype changed to: "text/plain"
- comment changed to:
I have observed that under OS X 10.6 (at least), libraries loaded with Tcl's load are not visible from other libraries, also loaded with load. Thus if you load a library A, and then load a library B that depends on A, library B is not loaded if A does not resides on a directory the dynamic linker searches for libraries. It is not recognised that library A is already loaded in the process. This seems OS X specific, as I cannot reproduce at least under windows & linux. I know that load calls dlopen(..., RTLD_GLOBAL); which does not seem to do as advertised. I had to call NSAddImage(NSADDIMAGE_OPTION_RETURN_ON_ERROR | NSADDIMAGE_OPTION_WITH_SEARCHING | NSADDIMAGE_OPTION_MATCH_FILENAME_BY_INSTALLNAME ), after I loaded lib A, to be able to load lib B. However, NSAddImage is already deprecated in 10.6. The relevant thread is here: http://groups.google.gr/group/comp.lang.tcl/browse_thread/thread/87266afd63143a11/f9b735ee56100d57
- foundin changed to: "obsolete: 8.6b1"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "petasis"
- subsystem changed to: "40. Dynamic Loading"
- title changed to:
load: loaded shared libraries don't export symbols (OS X)
- type changed to: "Bug"