Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d77e3ee995d2bc771d7c80edfe4552f89330ffb4
Ticket: 878333ffffffffffffffffffffffffffffffffff
workaround for buggy(??) mkstemp() on IRIX systems
User & Date: sussner on 2004-01-16 15:25:54
Changes

  1. assignee changed to: "vincentdarley"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    This bug concerns only IRIX systems (6.5.19m) so far.
    
    Using a tclkit with included dynamic libraries results
    in the following
    error message when loading a second dynamic library
    from the vfs:
    
    > tclkit-irix
    % package require Itcl
    3.3
    % package require Tk
    couldn't find procedure Tk_Init
    %
    
    I tracked it down to the temporary filename create
    mkstemp() in
    TclpTempFileName() in tclUnixPipe.c. mkstemp() always
    uses the
    same filename, but keeps the content of the first file
    copied into
    it. I.e. a second call of TclCrossFilesystemCopy()
    means that the
    content of the first call is still present causing
    TclpFindSymbol() not
    to find the <EXT>_Init() procedure.
    Adding a counter to the temporary filename solves this
    problem. I
    submit a patch as well.
    
    hope that helps
    
    gerd
    
    ps: i just wonder whether i am the first one, using
    tclkits under IRIX.
    
  4. foundin changed to: "obsolete: 8.4.5"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "sussner"
  9. subsystem changed to: "37. File System"
  10. title changed to: "workaround for buggy(??) mkstemp() on IRIX systems"
  11. type changed to: "Bug"