Skip to content
Tcl Source Code View Ticket
Login

View Ticket

makefile.vc seems to be FUBAR

Closed / Fixed218731ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:04:41
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
welch Closed ticket [218731ffff]. [History diff]2000-10-26 08:28:12
dgp Ticket [218731ffff]: 3 changes [History diff]2001-04-17 06:02:14
Log in (anonymous is fine) to add a comment.