Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 665f25b1861c0e5b11621276ed348b02b9fd4d1c
Ticket: 1961211fffffffffffffffffffffffffffffffff
TclpDlopen failing on MacOSX 10.4 and later
User & Date: das on 2008-05-14 06:23:42
Changes

  1. icomment:
    Logged In: YES 
    user_id=90580
    Originator: NO
    
    can you confirm that the current implementation via NSModule behaves differently than implementation via dlfcn in this case?
    
    i.e. compile with
        -DTCL_DYLD_USE_DLFCN=0 -DTCL_DYLD_USE_NSMODULE=1 -DTCL_DEBUG_LOAD
    and with
        -DTCL_DYLD_USE_DLFCN=1 -DTCL_DYLD_USE_NSMODULE=0 -DTCL_DEBUG_LOAD
    and if there is a difference, paste results of your [load]s above.
    
    Please make sure to test on both OSX 10.4 and 10.5 if possible and with binaries linked on 10.5 as well as on 10.4, the dyld and linker implementations in 10.5 are very different from 10.4...
    
    if the behaviour is indeed different between NSModule and dlfcn in 10.5, I'd want to fix it irrespective of the general RLTD_GLOBAL vs RLTD_LOCAL debate.
    
    BTW, have you considered not linking with -flat_namespace? that is a legacy option that completely changes how symbols are resolved, using two-level namespaces will record which library a given symbol comes from at link time, which may take care of the problem at hand...
    
    
    
  2. login: "das"
  3. mimetype: "text/plain"
  4. username: "das"