Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b5f065237c268c884e0f7c28143fb0cd826242c1
Ticket: 585178ffffffffffffffffffffffffffffffffff
test failures for cross-compiled HEAD
User & Date: vincentdarley on 2002-07-24 18:36:57
Changes

  1. assignee changed to: "vincentdarley"
  2. icomment:
    Logged In: YES 
    user_id=32170
    
    Ok, first thing cmdAH-29.4 doesn't pass. It 
    is 'unixOnly' and so never runs.  It could be, therefore, 
    that no use of 'file link' actually passes here at all.
    
    So, the first thing to determine, I think, is why a very 
    simple test like cmdah-29.4.1 fails.  All it does is create 
    a directory link and then check the type of the link and 
    then cleanup.
    
    From the test failure, it is clear that the creation of the 
    link fails, as you've said.  This means that something 
    inside TclpObjLink fails (tclWinFile.c), assuming 
    that 'S_IFLNK' is defined.  This define should be forced 
    to true in tclWinPort.h, but if you look at the #includes 
    in tclWinFile.c:
    
    #include "tclWinInt.h"
    #include <winioctl.h>
    #include <sys/stat.h>
    #include <shlobj.h>
    #include <lmaccess.h>
    
    Now, what if mingw actually #undefs or otherwise 
    modifies that symbol in any of the <*.h> files 
    afterwards?  This is the first thing to check -- perhaps 
    easiest is to replace TclpObjLink by garbage and see if 
    the compiler notices anything.
    
    Assuming it does notice something, then we should 
    check if TclpObjLink is being called.  Put a 'printf' at the 
    beginning of the function.  Also put a printf to 
    output 'LinkTarget' and 'LinkSource' in the middle of the 
    function and re-run just test cmdAH-29.4.1...
    
    I won't continue right now, since the above may already 
    show us where the problem is (else we have to continue 
    deeper into the code...)
    
    cheers,
    
    Vince.
    
    
    
    
    
  3. login: "vincentdarley"
  4. mimetype: "text/plain"
  5. username: "vincentdarley"