Overview
| Artifact ID: | 1f2b509e983675b966183a59cc5d7b6e1945f69f |
|---|---|
| Ticket: | 1961211fffffffffffffffffffffffffffffffff
TclpDlopen failing on MacOSX 10.4 and later |
| User & Date: | sebbarre on 2008-05-13 22:31:36 |
Changes
- icomment:
Logged In: YES user_id=214100 Originator: YES Jan, Thanks for your comment. However, I think your statement might be incorrect: > The 'correct' way to solve this is make sure that when compiling B, > make sure to add '-lA' to the link line, then B will > see the symbols. Additional advantage: loading B will load A > automatically when it is not already done. Our libraries were linked that way. If you check my first email, you will see that I ran "otool -L" against libvtkFilteringTCL, and it correctly reports libvtkCommonTCL as a known dependency. I also just double-checked our link line, it is correct. So we suspect the problem is on the dlopen side and that very specific flag. But even if it did work with RLTD_LOCAL, there would be a problem with global variables (i.e. static members of classes for example). They would be duplicated if each library gets its own version of them, and hell would break loose. > Because tclLoadDl uses RLTD_GLOBAL as well, probably there are already > libraries out there who fail to indicate all linked libraries. > Therefore, I would recommend to change it to RLTD_GLOBAL > in tclLoadDyld.c as well. Would be great. > However, I suggest to change it to RLTD_LOCAL in Tcl 8.6, and > document the change clearly. I'm afraid I don't follow the rational here. Not only would the (reasonable) example I describe in my first email fail on MacOSX >= 10.4 (it does fail, I assure you), but it would start failing on all our others Unix platforms. We have nightly regressions tests here that show it works fine on our Unix systems and MacOSX < 10.4. It would be unfortunate if that situation was reverted. Thank you
- login: "sebbarre"
- mimetype: "text/plain"
- username: "sebbarre"