|
2010-03-16
| ||
| 22:25 | • Closed ticket [2967340fff]: Static build failure plus 7 other changes artifact: b357c96c88 user: nijtmans | |
| 15:54 | • Ticket [2967340fff]: 4 changes artifact: 294ace1a1c user: decosterjos | |
| 15:45 | • Ticket [2967340fff]: 4 changes artifact: 358aa70b1d user: decosterjos | |
| 15:38 | • Ticket [2967340fff]: 4 changes artifact: 864b1f0396 user: nijtmans | |
|
2010-03-15
| ||
| 22:48 | • Ticket [2967340fff]: 4 changes artifact: d10fabc509 user: decosterjos | |
| 22:30 | • Ticket [2967340fff]: 4 changes artifact: 1a7118cdd2 user: decosterjos | |
| 22:25 | • Open ticket [2967340fff]. artifact: 2cf45a4502 user: kennykb | |
|
2010-03-12
| ||
| 22:44 | • Ticket [2967340fff]: 1 change artifact: 38966ca62b user: nijtmans | |
| 22:44 | • Closed ticket [2967340fff]. artifact: 5504f03955 user: nijtmans | |
|
2010-03-11
| ||
| 18:10 | • Ticket [2967340fff]: 4 changes artifact: 6d5b99bb3f user: decosterjos | |
| 17:29 | • Ticket [2967340fff]: 5 changes artifact: f3d759c935 user: nijtmans | |
|
2010-03-10
| ||
| 19:40 | • Ticket [2967340fff]: 4 changes artifact: 82fccee81d user: decosterjos | |
| 12:05 | • New ticket [2967340fff]. artifact: d4ada4b153 user: decosterjos | |
Static build failure
Closed / Fixed2967340fffffffffffffffffffffffffffffffffCreated 17 years agoUpdated 17 years ago
Descriptionplain2010-03-10 12:05:52
Hi, I need to build Tcl and Tk statically, so I use OPTS=static,staticpkg,msvcrt to build both Tcl and Tk. This fails because Tk expects to find a library for the DDE and registry packages but those are not create for static builds. What to do about it? To answer that question, it should be made clear what needs to be put in the static library. Will it contain the DDE and registry packages? Or will separate static libraries be created for those? To be able to continue I made the following changes: In the Tcl makefile.vc, I moved these lines: !if $(TCL_USE_STATIC_PACKAGES) $(TMP_DIR)\tclWinReg.obj \ $(TMP_DIR)\tclWinDde.obj \ !endif from TCLSHOBJS to COREOBJS. In the Tk makefile.vc I removed these lines: !if $(TCL_USE_STATIC_PACKAGES) $(TCLDDELIB) \ $(TCLREGLIB) \ !endif from WISHOBJS. It would be good if Tcl and Tk can be build without errors when both are compiled with the same set of OPTS. Jos.
decosterjosplain2010-03-10 19:40:48
Forgot to mention tclOOStubLib.obj and tclStubLib.obj needed to be added to COREOBJS too.
nijtmansplain2010-03-11 17:29:38
Last time I did this for Tcl 8.6, it worked. Please, provide info on which Tcl version you are doing this.
decosterjosplain2010-03-11 18:10:23
This happens on CVS head when building both tcl and tk with OPTS=statci,staticpkg,msvcrrt
nijtmansplain2010-03-12 22:44:13
allow_comments - 1 The problem in Tk 8.6 was that the TCLDDE and TCLREG version numbers were not updated to the actual value in Tcl. In Tk 8.6 we need to link with the stub library, because de DDE and TCLREG libraries are compiled with USE_TCL_STUBS. In Tk 8.5, this was OK. Further on, the real problem was in Tcl 8.6 (and 8.5), that - in this particular case - the static TCLDDE and TCLREG libraries were not created. Fixed that in Tcl 8.6 and 8.5. In Tcl 8.4 this was OK.
nijtmans Ticket [2967340fff]: 1 change
[History diff]2010-03-12 22:44:34
kennykbplain2010-03-15 22:25:03
allow_comments - 0 Jos Decoster claims that the fix does not solve the problem
decosterjosplain2010-03-15 22:30:49
When building Tcl with OPTS=static,staticpkg,msvcrt, no libs are generated for dde and registry. Still, Tk built with the same options requires them. Why not add the registry and dde code to the tcl library when compiling with the staticpkg option set? As it is now, the dde and registry object files are linked with the shell only, not with the tcl lib. So when you want to have a static tcl library, you still need to add those two object file by hand.
decosterjosplain2010-03-15 22:48:04
This is needed to build the libs: !if $(STATIC_BUILD) $(TCLDDELIB): $(TMP_DIR)\tclWinDde.obj $(lib32) -nologo $(LINKERFLAGS) -out:$@ $** !else $(TCLDDELIB): $(TMP_DIR)\tclWinDde.obj $(TCLSTUBLIB) $(link32) $(dlllflags) -base:@$(WINDIR)\coffbase.txt,tcldde -out:$@ \ $** $(baselibs) $(_VC_MANIFEST_EMBED_DLL) !endif !if $(STATIC_BUILD) $(TCLREGLIB): $(TMP_DIR)\tclWinReg.obj $(lib32) -nologo $(LINKERFLAGS) -out:$@ $** !else $(TCLREGLIB): $(TMP_DIR)\tclWinReg.obj $(TCLSTUBLIB) $(link32) $(dlllflags) -base:@$(WINDIR)\coffbase.txt,tclreg -out:$@ \ $** $(baselibs) $(_VC_MANIFEST_EMBED_DLL) !endif
nijtmansplain2010-03-16 15:38:23
Jos, your section is exactly what was in my fix as well. Are you sure you did an update to makefile.vc version 1.209 ?
decosterjosplain2010-03-16 15:45:04
emoving makefile.vc and cvs update gives me 1.206.
decosterjosplain2010-03-16 15:54:32
A clean checkout brings in 1.209. Sorry for the noise.
nijtmansplain2010-03-16 22:25:38
allow_comments - 1 OK, so it was a CVS problem. Closing.
Log in (anonymous is fine) to add a comment.