Skip to content
Tcl Source Code History Of Ticket 444308ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 444308ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 444308ffffffffffffffffffffffffffffffffff

  1. Ticket change [af342b2829] (rid 97768) by lloydlim on 2001-07-25 00:47:41:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Tcl can sometimes fail to compile from source.  This
      happens most often on FreeBSD machines when the Tcl
      source code is being checked out of a CVS repository.
      
      The details are as follows:
      Often Tcl source code that is being checked out of a
      CVS repository will end up with tcl.decls and/or
      tclInt.decls having modification times that are later
      than tclStubInit.c.  Typically, the modification times
      will only be 1 second later, but that's enough to cause
      trouble.  When Tcl is being built, it decides that it
      needs to regenerate tclStubInit.c.  This happens, of
      course, before tclsh is built.  If a working tclsh is
      not in the current path, the make fails when it tries
      to execute genStubs.tcl.  FreeBSD machines install
      tclsh under tclshx.x, so compiles will fail even if Tcl
      was installed by default.
      
      To reproduce this problem, make sure that some other
      tclsh is not in your path.  Touch the tcl.decls and/or
      tclInt.decls files to make their modification times
      later than tclStubInit.c.  Then try to configure and
      make Tcl as usual.
      
      This behavior isn't desirable.  The makefile shouldn't
      try to use something before it's built.  I suggest
      testing for the existence of tclsh before running
      genStubs.tcl.  Here is a patch to do this:
      
      --- Makefile.in.old     Tue Jul 24 16:49:54 2001
      +++ Makefile.in Tue Jul 24 16:52:42 2001
      @@ -1039,8 +1039,10 @@
       
       $(GENERIC_DIR)/tclStubInit.c: $(GENERIC_DIR)/tcl.decls
      \
                      $(GENERIC_DIR)/tclInt.decls
      -       $(TCL_EXE) $(TOOL_DIR)/genStubs.tcl
      $(GENERIC_DIR) \
      -               $(GENERIC_DIR)/tcl.decls
      $(GENERIC_DIR)/tclInt.decls
      +       if test -e $(TCL_EXE); then \
      +               $(TCL_EXE) $(TOOL_DIR)/genStubs.tcl
      $(GENERIC_DIR) \
      +                       $(GENERIC_DIR)/tcl.decls
      $(GENERIC_DIR)/tclInt.decls; \
      +       fi
       
       genstubs:
              $(TCL_EXE) $(TOOL_DIR)/genStubs.tcl
      $(GENERIC_DIR) \
      
      If someone is compiling from scratch, tclsh won't
      exist.  However, if someone really modified the
      declarations, then they are likely to have already
      compiled the source and tclsh will exist.  Some
      sequences of events won't be caught (eg--developer
      changes declarations, then developer does make
      distclean, then developer configures and makes).  It
      will, however, compile correctly if the developer makes
      again or if the developer does an explicit make
      genstubs.
      
      It'd be better if it worked 100% of the time, but I
      can't think of a way to do that.  Unless someone comes
      up with something better, I suggest incorporating the
      above patch.  IMHO, it's better if the source code
      always compiles from scratch.
      
    4. foundin initialized to: "obsolete: 8.3.3"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "lloydlim"
    9. subsystem initialized to: "53. Configuration and Build Tools"
    10. title initialized to: "Tcl can fail to compile from source"
    11. type initialized to: "Bug"
  2. Ticket change [75d01c9268] (rid 105454) by lloydlim on 2001-07-25 12:48:00:

    1. closedate changed to: "2001-07-25T05:48:00"
    2. closer changed to: "lloydlim"
    3. icomment:
      Logged In: YES 
      user_id=99220
      
      After further investigation, I discovered that when the 8.3.3 source was imported into our repository, CVS 
      set the modification times 1 second apart as mentioned above.  Therefore, all of our checkouts had this 
      time differential.  This was fixed by editing the timestamp for tclStubInit.c in our repository.
      
      Please disregard the above patch.  Sorry for the false alarm.  :)
      
      
    4. login: "lloydlim"
    5. mimetype: "text/plain"
    6. priority changed to: "1 Zero"
    7. resolution changed to: "Invalid"
    8. status changed to: "Closed"
    9. username: "lloydlim"