Tk Source Code

View Ticket
Login
Ticket UUID: 651396
Title: tktest build fails with makefile.vc
Type: Bug Version: obsolete: 8.4.1
Submitter: nobody Created on: 2002-12-10 12:08:51
Subsystem: 85. Win Build Assigned To: davygrvy
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2002-12-11 05:09:58
Resolution: Fixed Closed By: davygrvy
    Closed on: 2002-12-10 22:09:58
Description:
tktest will not currently compile with makefile.vc 
on Windows.

*** Compiler has 'Optimizations'
*** Compiler has 'Pentium 0x0f fix'
*** Linker has 'Win98 alignment problem'
*** Doing threads
*** Doing symbols
*** Doing profile
*** Doing memdbg
*** Doing compdbg
*** Intermediate directory will 
be '.\Debug\tk_ThreadedDynamic'
*** Output directory will be '.\Debug'
*** Suffix for binaries will be 'td'
*** Optional defines are '-DTCL_MEM_DEBUG -
DTCL_COMPILE_DEBUG -DTCL_COMPILE_STATS -
DTCL_THREADS=1'
*** Dependency rules are not being used.

... a lot of files are compiled successfully ...

        cl -Z7 -Od -WX -nologo -c -W3 -YX -
Fp.\Debug\tk_ThreadedDynamic\ -QI0f -
MDd -I"..\win" -I"..\generic" -I"..\bitmaps" -
I"..\xlib"  -I "..\..\tcl\win" -I
"..\..\tcl\generic" -DTCL_MEM_DEBUG -
DTCL_COMPILE_DEBUG -DTCL_COMPILE_STATS -
DTC
L_THREADS=1 -
Fo.\Debug\tk_ThreadedDynamic\tkWinTest.obj ..\w
in\tkWinTest.c
tkWinTest.c

NMAKE : fatal error U1073: don't know how to 
make '\tclThreadTest.obj'
Stop.
User Comments: davygrvy added on 2002-12-11 05:09:58:
Logged In: YES 
user_id=7549

Oh, tktest.exe links without tclThreadTest.obj

Who changed that without updating makefile.vc?

andreas_kupries added on 2002-12-11 05:07:29:
Logged In: YES 
user_id=75003

How does the Img extension factor into this ?
Parts of it (small parts now, and only on windows)
need the Tk internal headers, true, and Tcl internal
headers. But why does that mean that Tk requires Tcl 
internals ? Especially when testing ?

dgp added on 2002-12-11 05:03:36:
Logged In: YES 
user_id=80530

Have you looked at the other
Tk Bug reports I referenced?

I do not dispute that Tk needs
access to Tcl header files, even
private header files.  That's not
the issue here.

What I've been trying to get across
is that the program tktest.exe does
not depend on the presence of an
object file tclThreadTest.obj  for
successful linking.  Like all the other
Makefiles that were changed for
Tk 8.4, this dependency is incorrect
and should be removed.

Is that clear enough yet?

davygrvy added on 2002-12-11 05:00:09:
Logged In: YES 
user_id=7549

how about copying it over from the source and building it 
instead of requiring the .obj?  Or just put tclThreadTest.c into 
Tk's source.

Tk *NEEDS* Tcl's source to build from.  It has to do mainly 
because of the Img extension includes tclInt.h.  If that 
requirement goes away.... etc., etc..

dgp added on 2002-12-11 04:55:41:
Logged In: YES 
user_id=80530

You don'e seem to get it.

TKTESTOBJS is defined to include
a file named tclThreadTest.obj.

It should not.

Remove tclThreadTest.obj from the
dependency list of the tktest executable.

davygrvy added on 2002-12-11 04:50:04:
Logged In: YES 
user_id=7549

I see.

what's requested (line 332):
TCLTMP_DIR = $(_TCLDIR)\win\$(TMP_DIR:tk=tcl)

should really be:
TCLTMP_DIR = $(_TCLDIR)\win\$(TMP_DIR:$(PROJECT)=tcl)

but nmake can't do macro substitutions in a replacement.
I need to think about this.

dgp added on 2002-12-11 04:43:16:
Logged In: YES 
user_id=80530

Again, do *NOT* try to "fix" those
out of date -- always wrongheaded --
dependencies!  Just remove them.
See similar removals in Makefile.in
for both Unix and Windows.

davygrvy added on 2002-12-11 04:29:28:
Logged In: YES 
user_id=7549

did you set TCLDIR=??? for the nmake commandline?

tclThreadTest.obj is located in Tcl's intermediate build 
directory.  Yeah, it's odd.

dgp added on 2002-12-11 04:12:38:
Logged In: YES 
user_id=80530

Note that the correct fix is to
remove all dependencies on
source in the Tcl source distro.
See Bugs 592638, 592639,
and572134.

nobody added on 2002-12-10 19:12:05:
Logged In: NO 

A potential fix for this bug is attached...

JJM

NOTE: I tried submitting this comment once already and 
it doesn't show up, so I am trying again, sorry if it's a 
duplicate.

nobody added on 2002-12-10 19:10:35:
Logged In: NO 

a potential fix for this bug is attached...

JJM

nobody added on 2002-12-10 19:08:52:

File Added - 37257: rules.vc

Attachments: