Artifacts Associated With Ticket 2967340fffffffffffffffffffffffffffffffff
Ticket change [d4ada4b153] (rid 123492) by decosterjos on 2010-03-10 12:05:52:
- assignee initialized to: "stwo"
- cmimetype initialized to: "text/plain"
- comment initialized to:
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.
- foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "decosterjos"
- subsystem initialized to: "53. Configuration and Build Tools"
- title initialized to: "Static build failure"
- type initialized to: "Bug"
Ticket change [82fccee81d] (rid 117320) by decosterjos on 2010-03-10 19:40:48:
- icomment:
Forgot to mention tclOOStubLib.obj and tclStubLib.obj needed to be added to COREOBJS too.
- login: "decosterjos"
- mimetype: "text/plain"
- username: "decosterjos"
- icomment:
Ticket change [f3d759c935] (rid 129792) by nijtmans on 2010-03-11 17:29:38:
- assignee changed to: "nijtmans"
- icomment:
Last time I did this for Tcl 8.6, it worked. Please, provide info on which Tcl version you are doing this.
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
Ticket change [6d5b99bb3f] (rid 128683) by decosterjos on 2010-03-11 18:10:23:
- icomment:
This happens on CVS head when building both tcl and tk with OPTS=statci,staticpkg,msvcrrt
- login: "decosterjos"
- mimetype: "text/plain"
- username: "decosterjos"
- icomment:
Ticket change [5504f03955] (rid 94055) by nijtmans on 2010-03-12 22:44:13:
- closedate changed to: "2010-03-12T15:44:13"
- closer changed to: "nijtmans"
- icomment:
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.
- login: "nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "nijtmans"
Ticket change [38966ca62b] (rid 112236) by nijtmans on 2010-03-12 22:44:34:
- foundin changed to: "obsolete: 8.6b1.1"
Ticket change [2cf45a4502] (rid 119003) by kennykb on 2010-03-15 22:25:03:
- icomment:
allow_comments - 0 Jos Decoster claims that the fix does not solve the problem
- login: "kennykb"
- mimetype: "text/plain"
- resolution changed to: "Remind"
- status changed to: "Open"
- username: "kennykb"
- icomment:
Ticket change [1a7118cdd2] (rid 122978) by decosterjos on 2010-03-15 22:30:49:
- icomment:
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.
- login: "decosterjos"
- mimetype: "text/plain"
- username: "decosterjos"
- icomment:
Ticket change [d10fabc509] (rid 113289) by decosterjos on 2010-03-15 22:48:04:
- icomment:
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
- login: "decosterjos"
- mimetype: "text/plain"
- username: "decosterjos"
- icomment:
Ticket change [864b1f0396] (rid 131485) by nijtmans on 2010-03-16 15:38:23:
- icomment:
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 ?
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [358aa70b1d] (rid 106953) by decosterjos on 2010-03-16 15:45:04:
- icomment:
removing makefile.vc and cvs update gives me 1.206.
- login: "decosterjos"
- mimetype: "text/plain"
- username: "decosterjos"
- icomment:
Ticket change [294ace1a1c] (rid 88845) by decosterjos on 2010-03-16 15:54:32:
- icomment:
A clean checkout brings in 1.209. Sorry for the noise.
- login: "decosterjos"
- mimetype: "text/plain"
- username: "decosterjos"
- icomment:
Ticket change [b357c96c88] (rid 124848) by nijtmans on 2010-03-16 22:25:38:
- closedate changed to: "2010-03-16T15:25:38"
- closer changed to: "nijtmans"
- icomment:
allow_comments - 1 OK, so it was a CVS problem. Closing.
- login: "nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "nijtmans"