Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: dd98e6e021cb7466562b02610d82f6a869697f30
Ticket: 1961211fffffffffffffffffffffffffffffffff
TclpDlopen failing on MacOSX 10.4 and later
User & Date: nobody on 2008-05-14 04:38:20
Changes

  1. icomment:
    Logged In: NO 
    
    > 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.
    No, RLTD_LOCAL does not mean that all static members are duplicated. It
    only changes the visibility of the symbols, not the way the library is
    loaded. It still will be loaded once for each application (executable)
    no matter how many dlopen's are done.
    
    I handled more similar problems in the past, and still I am convinced that
    there is a problem with run-time resolution of symbols in your libraries.
    It might be that library A and B are correct, but the problem is in
    C which is used by both A and B. It's hard to tell from here. One way
    to find out is make a dependancy graph of all your libraries, and try
    to load them separately from bottom to top. Does your linker have an
    option like --no-undefined? Then your linker can find out about such
    problems at build-time.
    
    I'm not trying to break currently working code. But some platforms,
    like win32, don't support undefined symbols in dll's at all, so
    if your libraries have a symbol resolution problem it will be
    impossible to port your libraries to win32.
    
    Good luck. If you have more questions, feel free to ask.
    
    
  2. login: "[email protected]"
  3. mimetype: "text/plain"
  4. username: "[email protected]"