Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2457f8d07d3ff755fdd348bb96f963b48d8a233f
Ticket: 1960628fffffffffffffffffffffffffffffffff
TEA adjustments/fixes
User & Date: jenglish on 2009-03-12 13:46:04
Changes

  1. icomment:
    (For future reference): On the chat, stu pointed (again) to: http://www.openbsd.org/porting/libraries.html
    
    ... which if I understand correctly is talking about more or less the standard ELF rules for dynamically-linked libraries and SONAMES.  So there doesn't seem to be anything hugely different between the *BSDs and other modern Unices.
    
    However -- and this is the part that seems to be widely misunderstood -- the "libfoo.so.major.minor" SONAME naming scheme is only relevant for shared libraries that are dynamically *linked*.
    
    For shared libraries that are dynamically *loaded* -- like Tcl extensions! -- the SONAME, and the filename, are utterly irrelevant as far as dlopen() is concerned. 
    
    (And as far as the Tcl [load] command is concerned, the only part of the filename that matters is the bit between the optional leading "lib" and the first nonalphaorunderline character.  See Tcl_LoadObjCmd()).
    
    AFAICT, all the autogoo trying to guess the "right" ${SHARED_LIB_SUFFIX} is a PWOT, a WOMBAT, a tapdancing badger.   On every Unix I've seen in the last 10 years, you could name the shared library "FOO.DLL" and in Tcl say [package ifneeded foo X.Y [list load [file join $dir FOO.DLL]]] and everything would work Just Fine.
    
    What am I missing?
    
    
  2. login: "jenglish"
  3. mimetype: "text/plain"
  4. username: "jenglish"