Tk Source Code

View Ticket
Login
Ticket UUID: 1019024
Title: Tests can't find tk.tcl
Type: Bug Version: obsolete: 8.5a2
Submitter: wildcard_25 Created on: 2004-08-30 12:05:32
Subsystem: 85. Win Build Assigned To: davygrvy
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2004-09-10 06:13:34
Resolution: Fixed Closed By: davygrvy
    Closed on: 2004-09-09 23:13:34
Description:
Tk: v8.5a2 HEAD at 30-08-04
OS: WinXPsp1
Built with makefile.vc using VC7

When running the tests for Tk, from makefile.vc, 
Wish85.exe fails to load due to it being unable to find 
tk.tcl.

This seems to be due to the changes to the search 
paths in auto.tcl on 23-08-04.

The attached patch adds the missing path to the tk 
library into makefile.vc using the same format as was 
used for the tcl library.

Error displayed...
error dialog
title =Error in Wish
text =Can't find a usable tk.tcl in the 
following directories:
D:/src_tcl/library/tk8.5
D:/src_tcl/tk8.5
D:/src_tk/win/lib/tk8.5
D:/src_tk/lib/tk8.5
D:/src_tk/win/library
This problem means that tk wasn't 
installed properly.

Also included check for old 'MSVCDIR' as per tcl 
makefile.vc.
User Comments: davygrvy added on 2004-09-10 06:13:34:
Logged In: YES 
user_id=7549

already in CVS on 2004-09-06

wildcard_25 added on 2004-09-01 06:53:02:
Logged In: YES 
user_id=596509

One other point I neglected to mention.
Using TK_LIBRARY variable ensures that tests are run against 
current build library and not another version that 
tcl_findlibrary may find on its searches.

dgp added on 2004-08-31 20:19:02:
Logged In: YES 
user_id=80530

good points.  re-opened for
makefile.vc maintainer to take
a look.

wildcard_25 added on 2004-08-31 14:55:08:
Logged In: YES 
user_id=596509

Very close to being a duplicate.
While adding back a search in the grandparent directory in 
auto.tcl would correct this as well, after considering that 
TCL_LIBRARY is set by the makefile in rules.vc and the 
comments in auto.tcl for tcl_findLibrary give an example of 
TK_LIBRARY for the envVarName, I thought this would be the 
more correct way of fixing the error.
Also, the TCL_LIBRARY env variable is used as the $(wish) 
target could not find the tcl source's library even before the 
modification to the search paths.
Going the other way (ie. changing auto.tcl) would re-
introduce extra search paths for every instance rather than 
just for this one.

dgp added on 2004-08-31 00:40:14:
Logged In: YES 
user_id=80530

I believe this is a duplicate
of Tcl Bug 976438.

wildcard_25 added on 2004-08-30 19:05:33:

File Added - 99715: makefile.vc.patch

Attachments: