Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 90682c5b2457599fd2b615cd68270b458e61cc7e
Ticket: 218731ffffffffffffffffffffffffffffffffff
makefile.vc seems to be FUBAR
User & Date: nobody on 2000-10-26 01:04:41
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 1916 Bug
    Version: 8.1b3
    SubmitDate: '1999-04-21'
    LastModified: '1999-08-20'
    Severity: CRIT
    Status: Released
    Submitter: pat
    ChangedBy: hobbs
    OS: Windows 95
    Machine: X86
    FixedDate: '1999-08-20'
    ClosedDate: '2000-10-25'
    
    
    Name:
    Thomas A. Hutto
    
    Comments:
    How does .\Release\tcl81.lib get built?
    
        Based on the excerpts from makefile.vc for tcl 8.1b3 it seems that
        the target $(TCLSH) is linking a non-existent tcl81.lib. Excerpts
        of makefile.vc and its ouput are given below.
    
        Using Borland's make.exe, I ran the following: 
        make -fmakefile.vc -N -n -K -r all >make.out
        -N = microsoft compatability mode
        -n = process makefile but don't 'do' anything
        -K = keep temp files
        -r = ignore BUILTINS.MAK := default implicit targets
        >make.out = write the results to the named file
    
        I stuck in some 'set' statements following most TARGETS so that
        the output would associate the actual commands with the abstract
        target definitions.
    
        I did not put a 'set' after $(TCLLIB): because I thought it might mess
        up program flow; given that it has no commands and I have not read
        the NMAKE manual.
    
        On greping all of the output files, I found only one reference to 
        .\Release\tcl81.lib and that was in the link step for tclsh81.exe.
    
        I also found -out:.\release\tcl81.dll -- that's getting built
        because of the indirection at $(TCLLIB): $(TCLDLL).  Furthermore,
        $(TCLDLL) does not show up in makefile.vc as a dependent of any
        target.
    
        FURTHERMORE, I cannot find a target in makefile.vc that builds
        tcl81.lib even though it is being linked.
    
        I also noticed that the following is being executed before
        tcl81.dll is built, notice the ref to tcl81.dll:
    
        DUMPEXTS.EXE -o .\Release\tcl.def tcl81.dll @MAKE0006.@@@
    
        Finaly, it seems that tcl81.lib is expected to be built because the
        target install_binaries tries to copy it somewhere.
    
        EXCERPTS FROM MAKEFILE.VC
        -------------------------------------------
        $(TCLLIB): $(TCLDLL)
    
        $(TCLDLL): $(TCLOBJS) $(TMPDIR)\tcl.def $(TMPDIR)\tcl.res
        set tcldll_TARGET = $@
        set LIB="$(TOOLS32)\lib"
        $(link32) $(ldebug) $(dlllflags) -def:$(TMPDIR)\tcl.def  -out:$@ $(TMPDIR)\tcl.res $(guilibsdll) @<<
        $(TCLOBJS)
        <<
    
        $(TCLSH): $(TCLSHOBJS) $(TCLLIB) $(TMPDIR)\tclsh.res
        set tclsh_TARGET = $@
        set LIB="$(TOOLS32)\lib"
        $(link32) $(ldebug) $(conlflags) $(TMPDIR)\tclsh.res 
        -stack:2300000  -out:$@ $(conlibsdll) $(TCLLIB) $(TCLSHOBJS) 
    
        HAND EDITED EXCERPTS FROM MAKES OUTPUT
        make -fmakefile.vc -N -n -K -r >make.out
        ____________________________________________
    
        set tcldll_TARGET = .\Release\tcl81.dll
        set LIB="c:\program files\devstudio\vc\lib\TCLDLL"
        link32 
        /RELEASE /NODEFAULTLIB /RELEASE /NOLOGO /MACHINE:IX86 
        -entry:_DllMainCRTStartup@12 
        -dll 
        -def:.\Release\tcl.def   
        -out:.\Release\tcl81.dll 
        .\Release\tcl.res msvcrt.lib oldnames.lib kernel32.lib  
        advapi32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib 
        @MAKE0001.@@@
    
        set tclsh_TARGET = .\Release\tclsh81.exe
        set LIB="c:\program files\devstudio\vc\lib"
        link32 
        /RELEASE /NODEFAULTLIB /RELEASE /NOLOGO /MACHINE:IX86 
        -subsystem:console 
        -entry:mainCRTStartup 
        .\Release\tclsh.res 
        -stack:2300000   
        -out:.\Release\tclsh81.exe 
        msvcrt.lib oldnames.lib kernel32.lib  advapi32.lib 
        user32.lib .\Release\tcl81.lib .\Release\tclAppInit.obj 
    
         NOTE THE REFERENCE TO tcl81.lib IN THE LINE ABOVE!  Make.out does
         not show it getting built.  I cannot find a target to make it in
         makefile.vc.
    
    ReproducibleScript:
    nmake -fmakefile.vc -n -K >makeout
    
    ObservedBehavior:
    tcl.lib not being built
    
    DesiredBehavior:
    build tcl.lib
    
    
    
    The 8.2.0 makefile.vc works without error on VC++ 5.0, but there
    is also a whole new makefile/config setup for Cygwin for those
    who want the option that uses the same config files as for Unix. 
    -- 08/20/1999 hobbs
    
  4. foundin changed to: "obsolete: 8.1b3"
  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: "69. Other"
  10. title changed to: "makefile.vc seems to be FUBAR"
  11. type changed to: "Bug"