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

History Of Ticket 529801ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 529801ffffffffffffffffffffffffffffffffff

  1. Ticket change [667302f6aa] (rid 102715) by jcw on 2002-03-14 09:43:28:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      On the SF compile farm. MacOS X 10.1, running the Tcl 
      make fails because a ranlib call is not being done 
      before ld.
      
      It can be resolved by inserting the following lines 
      at the end of the ${TCL_LIB_FILE} target:
      
              if test "x@DL_OBJS@" = "xtclLoadDyld.o"; then 
      \
                      $(RANLIB) ${TCL_LIB_FILE}; \
              fi
      
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "jcw"
    9. subsystem initialized to: "None"
    10. title initialized to: "macosx forgets to do ranlib"
    11. type initialized to: "Bug"
  2. Ticket change [0bd6dbdef9] (rid 114065) by jcw on 2002-03-14 16:44:33:

    1. subsystem changed to: "53. Configuration and Build Tools"
  3. Ticket change [b567c83959] (rid 125238) by andreas_kupries on 2002-03-19 06:44:43:

    1. assignee changed to: "wolfsuit"
  4. Ticket change [f1f61a9c22] (rid 109448) by vincentdarley on 2002-07-19 22:15:42:

    1. closedate changed to: "2002-07-19T15:15:42"
    2. closer changed to: "vincentdarley"
    3. foundin changed to: "obsolete: 8.4b2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  5. Ticket change [40b248d716] (rid 116062) by das on 2002-07-24 16:13:34:

    1. assignee changed to: "das"
    2. icomment:
      
      
      File Added - 27640: ranlib.patch
      
      Logged In: YES 
      user_id=90580
      
      this fix is incorrect, it breaks the shared build as ranlib fails on 
      dynamic libraries:
      ranlib: file: libtcl8.4.dylib is not an archive
      
      to correctly fix static linking (i.e. configured with --disable-shared), 
      IMHO it's best to change the definition of MAKE_LIB in 
      configure.in as in the attached patch (which also reverses the 
      present incorrect change)
      
      I'll check this in if Vince agrees
      
      
    3. login: "das"
    4. mimetype: "text/plain"
    5. resolution changed to: "Accepted"
    6. status changed to: "Open"
    7. username: "das"
  6. Add attachment "ranlib_HEAD.patch" [073c6ecba1] (rid 89355) by das on 2002-07-24 16:34:37.

  7. Ticket change [a31712737b] (rid 110001) by das on 2002-07-24 16:34:37:

    1. icomment:
      
      
      File Deleted - 27640: 
      
      
      
      File Added - 27642: ranlib_HEAD.patch
      
      Logged In: YES 
      user_id=90580
      
      attached patch to HEAD
      
      
    2. login: "das"
    3. mimetype: "text/plain"
    4. username: "das"
  8. Add attachment "ranlib_core-8-3-1-branch.patch" [adc1e40112] (rid 101520) by das on 2002-07-24 16:35:38.

  9. Ticket change [4e80d8597e] (rid 125649) by das on 2002-07-24 16:35:38:

    1. icomment:
      
      
      File Added - 27643: ranlib_core-8-3-1-branch.patch
      
      Logged In: YES 
      user_id=90580
      
      attached patch to core-8-3-1-branch
      
      
    2. login: "das"
    3. mimetype: "text/plain"
    4. username: "das"
  10. Ticket change [61f6c5d1e0] (rid 92332) by das on 2002-07-24 20:55:32:

    1. closedate changed to: "2002-07-24T13:55:32"
    2. closer changed to: "das"
    3. icomment:
      Logged In: YES 
      user_id=90580
      
      commited to HEAD & core-8-3-1-branch
      
      
    4. login: "das"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "das"
  11. Ticket change [6fb1c88bd5] (rid 100354) by mdejong on 2002-07-28 10:29:08:

    1. icomment:
      Logged In: YES 
      user_id=90858
      
      This change along with a couple of others from the Mac OS X
      branch
      have been reverted as of 2002-07-27. They were just wrong and
      they broke the build on other systems.
      
      I have gone ahead and created a new set of build and install
      commands and defined them in the SC_CONFIG_CFLAGS
      macro in tcl.m4 (see MAKE_LIB, MAKE_STUB_LIB,
      INSTALL_LIB, and INSTALL_STUB_LIB).
      
      If you are still having problems with ranlib related issues
      related to OS X, please take a look at the new approach
      and assign any related patches to me. Just an FYI, I don't
      see how the DL_OBJS in use could have anything to do
      with ranlib, so please don't go down that route again.
      
      
    2. login: "mdejong"
    3. mimetype: "text/plain"
    4. status changed to: "Open"
    5. username: "mdejong"
  12. Ticket change [2d0febfe65] (rid 119016) by jcw on 2002-07-28 18:53:31:

    1. icomment:
      Logged In: YES 
      user_id=1983
      
      Except that now, on OS X, --disable-shared doesn't build at 
      all.
      
      I don't mind having my suggestion ignored or reverted, all I 
      can say is that what I originally submitted worked for me, 
      and that we're not getting very far this way :(
      
      Mo, I'll rephrase the problem, in the hope that it works 
      better for you this way: on OS X, a "--disable-shared" (i.e. 
      static) build fails, because a ranlib call is being left out 
      (in two places in the makefile, in fact).
      
      
      
    2. login: "jcw"
    3. mimetype: "text/plain"
    4. username: "jcw"
  13. Ticket change [afcaaa240d] (rid 97875) by mdejong on 2002-07-29 08:31:59:

    1. icomment:
      Logged In: YES 
      user_id=90858
      
      While the approach in question may have worked for you, it
      broke the
      build for other systems. Besides, it just did not make any
      sense. What
      on earth does the implementation of dynamic loading have to
      do with
      whether ranlib is run on a generated .a archive?
      
      Even if those two things were related, the decision of when to
      run ranlib must be made in the configure script, not the
      Makefile.
      
      You mention that ranlib is not getting run on OS X. I assume you
      mean at build and not install time, right? The right way to
      address
      this is to take a peek at the SC_CONFIG_CFLAGS macro and
      see what MAKE_LIB is getting set to. I assume that the
      AC_PROG_RANLIB is not finding ranlib and this is causing
      MAKE_LIB to not include a ranlib call. Is that the case?
      
      
      
    2. login: "mdejong"
    3. mimetype: "text/plain"
    4. username: "mdejong"
  14. Ticket change [17c9c64ecc] (rid 122556) by das on 2002-07-30 09:43:14:

    1. assignee changed to: "mdejong"
    2. icomment:
      Logged In: YES 
      user_id=90580
      
      Mo,
      
      thanks for looking into this. The problem was that before your 
      latest fixes, MAKE_LIB on OSX did not run ranlib on libtcl.a 
      before linking tclsh which caused that link to fail (ranlib _was_ 
      run at installation time however)
      
      however, with your latest work this works fine for me now, i.e. 
      building tbe HEAD with --disable-shared now works for me on 
      Darwin/OSX
      
      could you take a look at this issue on core-8-3-1-branch as well? 
      I had checked in the same change to configure.in there also, as 
      the static linking problem on OSX exists there too of course.
      
      (btw, you can test building on OSX yourself on the SF 
      compilefarm cf.sf.net)
      
      What were the other changes "from the Mac OS X branch" that 
      you have reverted? was that just referring to your changes re. 
      TCL_SHLIB_LD_EXTRAS or was there anything else?
      
      
      JC,
      
      not sure why this doesn't work for you, what are the errors you 
      see when building the HEAD?
      as long as your tcl.m4 has Mo's new
      MAKE_LIB='${STLIB_LD} [$]@ ${OBJS} ; ${RANLIB} [$]@'
      (i.e functionally equivalent on OSX to what I had added to 
      configure.in earlier), static linking should work.
      
      
      
    3. login: "das"
    4. mimetype: "text/plain"
    5. username: "das"
  15. Ticket change [0b807f9a13] (rid 113996) by mdejong on 2002-07-30 13:41:35:

    1. icomment:
      Logged In: YES 
      user_id=90858
      
      I would rather not backport all the needed changes to get
      the 8.3
      branch working with OS X. The build system in 8.3 is so out of
      date WRT the HEAD, it would likely take a whole lot of work.
      If you have checked ranlib related changes into the 8.3 branch,
      I would rather see them reverted since they will break the
      build for a number of systems that already work. The 8.3
      branch should be used for bug fixes only, adding support for
      a new system at the cost of breaking others does not seem
      to fit that bill.
      
      
    2. login: "mdejong"
    3. mimetype: "text/plain"
    4. username: "mdejong"
  16. Ticket change [c4f5f7bc7d] (rid 111914) by das on 2002-07-30 14:24:25:

    1. icomment:
      Logged In: YES 
      user_id=90580
      
      No, you're confusing Jim's macosx-8-4-branch using Apple's GUI 
      compiler tools and native GUI with my ongoing work to maintain 
      classical 'configure; make' on Darwin/OSX.
      There is nothing new about this support, it's been there since 
      8.3.1 and tcl built thusly has in fact been shipping in the 
      MacOSX retail product since it's very first release 2 years ago...
      
      Maybe you can explain how the attached ranlib_core-8-3-1-
      branch.patch to configure.in breaks the build on other systems?
      It certainly doesn't affect the x86 linux and solaris builds I've 
      tested. (both --enable-shared and --disable-shared)
      
      
    2. login: "das"
    3. mimetype: "text/plain"
    4. username: "das"
  17. Ticket change [a0445b5bbc] (rid 96772) by mdejong on 2002-07-30 14:50:18:

    1. icomment:
      Logged In: YES 
      user_id=90858
      
      You mentioned that you checked the
      ranlib_core-8-3-1-branch.patch file into the
      8.3 branch. That will break the build under BSD
      as well as others and so it should be reverted.
      
      Tcl bug 587299 is an example of what goes wrong.
      I assume you are not seeing the bug because the
      Linux and Solaris versions of ar automatically
      invoke ranlib behind the scenes to create an archive
      index. Some systems do not do this.
      
      Even if nobody reported this as a bug, you should
      still revert the patch. Why? Because it is totally
      the wrong thing to be doing. First off, the implementation
      of dynamic loading has nothing to do with ranlib
      and static libs, so why are you making it depend
      on DL_OBJS? Second, the RANLIB variable should
      be set to : when building a shared library.
      
      
      
      
    2. login: "mdejong"
    3. mimetype: "text/plain"
    4. username: "mdejong"
  18. Ticket change [8c204d85fc] (rid 127693) by mdejong on 2002-07-30 15:01:58:

    1. icomment:
      Logged In: YES 
      user_id=90858
      
      Oops, I forgot to mention the "other changes" I reverted.
      I took a quick peek at the configure.in on the 8.3 branch
      via CVSWeb and found the same broken code that I
      just removed from the HEAD:
      
      if test "${SHARED_BUILD}" = "1" -a "${SHLIB_SUFFIX}" != "" ;
      then
          TCL_SHLIB_CFLAGS="${SHLIB_CFLAGS}"
          eval "TCL_LIB_FILE=libtcl${TCL_SHARED_LIB_SUFFIX}"
          if test "x$DL_OBJS" = "xtclLoadAout.o"; then
              MAKE_LIB="\${STLIB_LD} \[$]@ \${OBJS}"
          else
              MAKE_LIB="\${SHLIB_LD} ${TCL_SHLIB_LD_EXTRAS} -o
      \[$]@ \${OBJS} ${SHLIB_
      LD_LIBS}"
          fi
      else
      
      
      I have no idea how this got into such a state, but it appears to
      be linking a shared library with STLIB_LD (totally wrong)
      and is once again running RANLIB based on the dynamic
      loading implementation. This too should be reverted in the
      8.3 branch since it will break other systems.
      
      
    2. login: "mdejong"
    3. mimetype: "text/plain"
    4. username: "mdejong"
  19. Ticket change [99d6f2130d] (rid 110857) by das on 2002-07-30 17:09:31:

    1. icomment:
      Logged In: YES 
      user_id=90580
      
      the line with
      test "x$DL_OBJS" = "xtclLoadAout.o"
      has been in configure.in forever (at least since rev 1.57 in core-
      8-3-1 from over 2 years ago), it seems to be a special case for 
      "pseudo-static linking" (c.f. comments). It certainly has nothing to 
      do with Darwin/MacOSX
      
      however this test is what Jean-Claude apparently had adapted 
      as a kind of platform check for Darwin in his original patch (based 
      on the fact that DL_OBJS==tclLoadDyld.o only ever on Darwin)
      His patch always did ranlib however and so broke dynamic 
      linking on OSX. While I fixed that problem, I didn't change the 
      test logic (because I didn't fully understand it until now...)
      
      the right thing to do is to test against $system, it's also true that 
      RANLIB=':' got lost somwhere in the shuffle as well. (it's there in 
      rev 1.57)
      
      would you then agree with something along the lines of the 
      following patch to the current configure.in on the tip of core-8-3-
      1-branch ?
      
      I realize that there are probably better ways to do this but this 
      rather crude method seems to result in the smallest possible 
      patch for the bug at hand. It should not interfere with other 
      systems since MAKE_LIB will only be changed when on Darwin 
      with static linking on.
      
      BTW, this builds fine on the compilefarm on FreeBSD 4.6-
      STABLE both static and shared, not sure if that would have 
      been one of the BSDs affected by the ranlib problems.
      
      Index: configure.in
      ==================================================
      =================
      RCS file: /cvsroot/tcl/tcl/unix/configure.in,v
      retrieving revision 1.57.2.11
      diff -u -r1.57.2.11 configure.in
      --- configure.in        24 Jul 2002 13:54:47 -0000      1.57.2.11
      +++ configure.in        30 Jul 2002 09:40:22 -0000
      @@ -389,6 +389,7 @@
              MAKE_LIB="\${STLIB_LD} \[$]@ \${OBJS}"
           else
              MAKE_LIB="\${SHLIB_LD} ${TCL_SHLIB_LD_EXTRAS} -o 
      \[$]@ \${OBJS} ${SHLIB_LD_LIBS}"
      +       RANLIB=":"
           fi
       else
           case $system in
      @@ -405,9 +406,11 @@
           TCL_SHLIB_CFLAGS=""
           eval "TCL_LIB_FILE=libtcl${TCL_UNSHARED_LIB_SUFFIX}"
           MAKE_LIB="\${STLIB_LD} \[$]@ \${OBJS}"
      -    if test "x$DL_OBJS" = "xtclLoadDyld.o"; then
      -       MAKE_LIB="${MAKE_LIB} ; \${RANLIB} \$@"
      -    fi
      +    case $system in
      +       Darwin-*)
      +           MAKE_LIB="${MAKE_LIB} ; \${RANLIB} \$@"
      +           ;;
      +    esac
       fi
       
      
      
      
    2. login: "das"
    3. mimetype: "text/plain"
    4. username: "das"
  20. Ticket change [2dc1305047] (rid 119113) by mdejong on 2002-07-31 02:22:49:

    1. icomment:
      Logged In: YES 
      user_id=90858
      
      I went ahead and checked out the 8.3 branch and reverted the
      changes while adding the RANLIB=: bit back in. This should
      fix things on systems where running ranlib is required.
      It does not port back all the changes from the HEAD, I
      just made the minimal change to get things working again.
      As far as it not working on OS X, I just don't see why that
      would happen now. Please try it out and let me know if
      it is still a problem. Now of that DL_OBJS stuff should
      have been in there, so I removed it.
      
      
    2. login: "mdejong"
    3. mimetype: "text/plain"
    4. username: "mdejong"
  21. Ticket change [7d0eabc8d0] (rid 97180) by das on 2002-08-01 06:14:44:

    1. closedate changed to: "2002-07-31T23:14:44"
    2. closer changed to: "das"
    3. icomment:
      Logged In: YES 
      user_id=90580
      
      your changes to Makefile.in did the trick, ranlib now gets run and 
      everything links properly with --disable-shared. Thanks
      
      
    4. login: "das"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "das"
  22. Add attachment "ranlib1.patch" [5c07c713a5] (rid 118428) by das on 2002-08-01 06:14:44.

  23. Ticket change [2c0523e55a] (rid 118835) by das on 2002-08-01 06:14:45:

    1. icomment:
      
      
      File Added - 28172: ranlib1.patch
      
      
      
    2. login: "das"
    3. mimetype: "text/plain"
    4. username: "das"