Skip to content
Tcl Source Code History Of Ticket 2967340
Login

History Of Ticket 2967340

Artifacts Associated With Ticket 2967340

  1. Ticket change [d4ada4b153] (rid 123492) by decosterjos on 2010-03-10 12:05:52:

    1. assignee initialized to: "stwo"
    2. cmimetype initialized to: "text/plain"
    3. 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.
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "decosterjos"
    10. subsystem initialized to: "53. Configuration and Build Tools"
    11. title initialized to: "Static build failure"
    12. type initialized to: "Bug"
  2. Ticket change [82fccee81d] (rid 117320) by decosterjos on 2010-03-10 19:40:48:

    1. icomment:
      Forgot to mention tclOOStubLib.obj and tclStubLib.obj needed to be added to COREOBJS too.
      
      
    2. login: "decosterjos"
    3. mimetype: "text/plain"
    4. username: "decosterjos"
  3. Ticket change [f3d759c935] (rid 129792) by nijtmans on 2010-03-11 17:29:38:

    1. assignee changed to: "nijtmans"
    2. icomment:
      Last time I did this for Tcl 8.6, it worked. Please, provide info on which Tcl version you are doing this.
      
      
    3. login: "nijtmans"
    4. mimetype: "text/plain"
    5. username: "nijtmans"
  4. Ticket change [6d5b99bb3f] (rid 128683) by decosterjos on 2010-03-11 18:10:23:

    1. icomment:
      This happens on CVS head when building both tcl and tk with OPTS=statci,staticpkg,msvcrrt
      
      
    2. login: "decosterjos"
    3. mimetype: "text/plain"
    4. username: "decosterjos"
  5. Ticket change [5504f03955] (rid 94055) by nijtmans on 2010-03-12 22:44:13:

    1. closedate changed to: "2010-03-12T15:44:13"
    2. closer changed to: "nijtmans"
    3. 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.
      
      
    4. login: "nijtmans"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "nijtmans"
  6. Ticket change [38966ca62b] (rid 112236) by nijtmans on 2010-03-12 22:44:34:

    1. foundin changed to: "obsolete: 8.6b1.1"
  7. Ticket change [2cf45a4502] (rid 119003) by kennykb on 2010-03-15 22:25:03:

    1. icomment:
      
      
      allow_comments - 0
      
      Jos Decoster claims that the fix does not solve the problem
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. resolution changed to: "Remind"
    5. status changed to: "Open"
    6. username: "kennykb"
  8. Ticket change [1a7118cdd2] (rid 122978) by decosterjos on 2010-03-15 22:30:49:

    1. 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. 
      
      
    2. login: "decosterjos"
    3. mimetype: "text/plain"
    4. username: "decosterjos"
  9. Ticket change [d10fabc509] (rid 113289) by decosterjos on 2010-03-15 22:48:04:

    1. 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
      
      
      
    2. login: "decosterjos"
    3. mimetype: "text/plain"
    4. username: "decosterjos"
  10. Ticket change [864b1f0396] (rid 131485) by nijtmans on 2010-03-16 15:38:23:

    1. 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 ?
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  11. Ticket change [358aa70b1d] (rid 106953) by decosterjos on 2010-03-16 15:45:04:

    1. icomment:
      removing makefile.vc and cvs update gives me 1.206.
      
      
    2. login: "decosterjos"
    3. mimetype: "text/plain"
    4. username: "decosterjos"
  12. Ticket change [294ace1a1c] (rid 88845) by decosterjos on 2010-03-16 15:54:32:

    1. icomment:
      A clean checkout brings in 1.209. Sorry for the noise.
      
      
    2. login: "decosterjos"
    3. mimetype: "text/plain"
    4. username: "decosterjos"
  13. Ticket change [b357c96c88] (rid 124848) by nijtmans on 2010-03-16 22:25:38:

    1. closedate changed to: "2010-03-16T15:25:38"
    2. closer changed to: "nijtmans"
    3. icomment:
      
      
      allow_comments - 1
      
      OK, so it was a CVS problem. Closing.
      
      
    4. login: "nijtmans"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "nijtmans"