Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 343934ae03518929715055d44c9e5200a65c651d
Ticket: 219167ffffffffffffffffffffffffffffffffff
pkg_mkIndex: numbers in dll names
User & Date: nobody on 2000-10-26 05:02:46
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 1706 Bug
    Version: 8.0.5
    SubmitDate: '1999-04-05'
    LastModified: '2000-07-28'
    Severity: SER
    Status: Assigned
    Submitter: pat
    ChangedBy: ericm
    OS: All
    Machine: X86
    FixedDate: '2000-10-25'
    ClosedDate: '2000-10-25'
    
    
    Name:
    Aharon Strosberg
    
    ReproducibleScript:
    EXPORT(int,Rldm818_Init)(Tcl_Interp *interp)
        {
        
                Tcl_CreateCommand(interp, "RLDLLOpenMux818",
        fnTclOpenMux818,NULL,NULL);
                Tcl_CreateCommand(interp, "RLDLLCloseMux818",
        fnTclCloseMux818,NULL,NULL);
                Tcl_CreateCommand(interp, "RLDLLSetMux818",
        fnTclSetMux818,NULL,NULL);
                Tcl_CreateCommand(interp, "RLDLLGetMux818",
        fnTclGetMux818,NULL,NULL);
        
                
                return Tcl_PkgProvide(interp,"RLDM818","1.0");
        
        }
    
    ObservedBehavior:
    When I try to make a pkgIndex for this dll using pkg_mkIndex,
        I get an empty file. This doesn?t happen when I omit the numbers
        in the fileName, pkg_Init and packageName.
    
    
    
    This is because [load], when trying to guess the package name (and thus the name of the init function) takes the library file and strips off the extension and all trailing numbers, which are assumed to be version numbers.
    
    One possible partial solution is to modify the [load] facilities to generate a list of possible package names.  Given the filename foo123.so, it currently looks for "Foo_Init"; in addition, it could look for "Foo123_Init".  That is, the first guess would be the strictly alpha prefix of the filename; the second guess would be the entire filename less the extension.
    
    - eric
    
    -- 07/28/2000 ericm
    
    
    
  4. foundin changed to: "final: 8.0.5"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "56. LibTomMath"
  10. title changed to: "pkg_mkIndex: numbers in dll names"
  11. type changed to: "Bug"