Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2002-02-02
06:24 • Closed ticket [511652ffff]: tk compilation problems plus 7 other changes artifact: 35faad6a66 user: davygrvy
05:57 • Ticket [511652ffff]: 4 changes artifact: cb9a45882e user: davygrvy
00:20 • Ticket [511652ffff]: 6 changes artifact: 418e9cd36e user: vincentdarley
00:13 • Ticket [511652ffff]: 4 changes artifact: 65633a8ac0 user: vincentdarley
00:09 • Ticket [511652ffff]: 4 changes artifact: 1177de2703 user: dgp
00:06 • Ticket [511652ffff]: 4 changes artifact: a187f98b39 user: vincentdarley
00:03 • Ticket [511652ffff]: 4 changes artifact: bf92522e37 user: dgp
2002-02-01
23:27 • Ticket [511652ffff]: 4 changes artifact: ba0c9aed35 user: vincentdarley
21:36 • Ticket [511652ffff]: 4 changes artifact: 17cd8c681d user: dgp
10:51 • New ticket [511652ffff]. artifact: d7a71b412b user: vincentdarley

tk compilation problems

Closed / Fixed511652ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2002-02-01 10:51:55
Since the changes on 2002-01-05 and 2002-01-09, in 
which various 'Tcl_SetMainLoop' tests were added, 
tclTest.c will not compile with VC++ 5.2 in debug mode.

the error I get is:

        cl -Z7 -Od -WX -c -W3 -nologo -
Fp.\Debug\tcl_Dynamic\ -YX -MDd -I"..\win
" -I"..\generic"  -
Fo.\Debug\tcl_Dynamic\tclTest.obj ..\generic\tclTest.c
tclTest.c
..\generic\tclTest.c(4304) : warning C4113: 'void 
(__cdecl *)(void)' differs in
parameter lists from 'void (__cdecl *)(void )'
..\generic\tclTest.c(4304) : error C2220: warning 
treated as error - no object f
ile generated
NMAKE : fatal error U1077: 'cl' : return code '0x2'

(which I don't understand...)
dgpplain2002-02-01 21:36:41
Logged In: YES 
user_id=80530


Do you see the same problem when compiling Tk ?
vincentdarleyplain2002-02-01 23:27:10
Logged In: YES 
user_id=32170

Tk is even worse (but for different reasons).  I got two 
different errors, depending if I was building Tk or Tktest:

        cl -Z7 -Od -WX -nologo -c -W3 -
Fp.\Debug\tk_Dynamic\ -YX -MDd -I"..\win"
 -I"..\generic" -I"..\bitmaps" -I"..\xlib"  -I "..\..\tcl8.4
\win" -I "..\..\tcl8
.4\generic"  -
Fo.\Debug\tk_Dynamic\tkWinTest.obj ..\win\tkWinTest.c
tkWinTest.c
NMAKE : fatal error U1073: don't know how to 
make '\tclThreadTest.obj'
Stop.

C:\Tcl-source\tk8.4\win>nmake -f makefile.vc OPTS=symbols 
TCLDIR=..\..\tcl8.4

Microsoft (R) Program Maintenance Utility   Version 
1.62.7022
Copyright (C) Microsoft Corp 1988-1997. All rights reserved.

*** Doing symbols
*** Intermediate directory will be '.\Debug\tk_Dynamic'
*** Output directory will be '.\Debug'
*** Suffix for binaries will be 'd'
*** Optional defines are ''
        cl -DBUILD_tk -Z7 -Od -WX -nologo -c -W3 -
Fp.\Debug\tk_Dynamic\ -YX -MDd
 -I"..\win" -I"..\generic" -I"..\bitmaps" -I"..\xlib"  -
I "..\..\tcl8.4\win" -I
"..\..\tcl8.4\generic"  -DUSE_TCL_STUBS -
Fo.\Debug\tk_Dynamic\ @C:\WINNT\Profile
s\VinceD\LOCALS~1\Temp\nma01344.
stubs.c
..\win\stubs.c(258) : warning C4028: formal parameter 3 
different from declarati
on
..\win\stubs.c(258) : error C2220: warning treated as 
error - no object file gen
erated
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
dgpplain2002-02-02 00:03:20
Logged In: YES 
user_id=80530

OK, back to the original problem.  Try changing line 4270:

MainLoop(void)
vincentdarleyplain2002-02-02 00:06:27
Logged In: YES 
user_id=32170

That works.  For the 'tk' problems, tk\win\stub.c needs to 
have 'CONST' added as follows:

void
XSetCommand(display, w, argv, argc)
    Display* display;
    Window w;
    CONST char** argv;
    int argc;
{
}

the other problem (\tclThreadTest.obj) appears to be a 
makefile error which should probably be referred to davygrvy

cheers, Vince.
dgpplain2002-02-02 00:09:09
Logged In: YES 
user_id=80530

Good.  I trust you will commit the corrections.
vincentdarleyplain2002-02-02 00:13:06
Logged In: YES 
user_id=32170

I don't have any permissions on Tk, so can't do anything 
there.  I'm happy to commit the Tcl change.
vincentdarleyplain2002-02-02 00:20:03
Logged In: YES 
user_id=32170

Committed the Tcl fix.  Hope someone else can fix 'stubs.c' 
in Tk.  Re-assigning bug to davygrvy to deal with the 
windows makefile problem in Tk (and changing summary line 
appropriately).
davygrvyplain2002-02-02 05:57:43
Logged In: YES 
user_id=7549

Yup.  I get it too.

        cl -Z7 -Od -WX -nologo -c -W3 -
Fp.\Debug\tk_Dynamic\ -YX -MDd -I"..\win"
 -I"..\generic" -I"..\bitmaps" -I"..\xlib"  -
I "d:\tcl_workspace\tcl_head\win" -
I "d:\tcl_workspace\tcl_head\generic"  -
Fo.\Debug\tk_Dynamic\tkWinTest.obj ..\wi
n\tkWinTest.c
tkWinTest.c
NMAKE : fatal error U1073: don't know how to 
make '\tclThreadTest.obj'
Stop.
davygrvyplain2002-02-02 06:24:01
Logged In: YES 
user_id=7549

Fixed.
Log in (anonymous is fine) to add a comment.