Overview
| Artifact ID: | 67cc2699b536f8630281c186125a2b6d7e21e3f1 |
|---|---|
| Ticket: | 3033027fffffffffffffffffffffffffffffffff
load: loaded shared libraries don't export symbols (OS X) |
| User & Date: | ferrieux on 2010-07-22 19:41:15 |
Changes
- icomment:
On second thought, I realize that the error message is not at the symbol level, but at the dependency level, so indeed RTLD_GLOBAL is not really concerned. Now, there are two ways of loading a library: either implicitly through dependency, or programmatically with dlopen(). A is loaded through dlopen(), then B too, and B implicitly needs A, but at this point in time, A is *not* "implicitly loaded". So, *if* OSX maintains two separate lists of dylds, one implicitly loaded, the other dlopened(), that could explain the behavior. Daniel, is this possible ? And if it is the case, then the solution is to refactor A so that it contains only the Tcl API entry points needed for an extension, and shove all the useful shareable code into a 3rd library C, on which A depends. Hence, [load A] also loads C but on the implicit list. Then do the same for B, and C should be reused as is.
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"