Skip to content
Tcl Source Code History Of Ticket 931061ffffffffff
Login

History Of Ticket 931061ffffffffff

Artifacts Associated With Ticket 931061ffffffffff

  1. Ticket change [6d8c11608a] (rid 128720) by dgp on 2004-04-07 13:11:14:

    1. assignee initialized to: "das"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      In macosx/Makefile:
      
      TCL_LIBRARY    := @TCL_IN_FRAMEWORK@
      
      Appears to be the result of some incomplete
      configure process.
      
      Anyhow that value is invalid for TCL_LIBRARY,
      and it causes test unixInit-2.8 of the test suite
      to fail.  See 930621 for original report on
      that issue.
      
    4. foundin initialized to: "obsolete: 8.4.6"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "53. Configuration and Build Tools"
    10. title initialized to: "TCL_LIBRARY: invalid value"
    11. type initialized to: "Bug"
  2. Ticket change [1aec292493] (rid 123060) by das on 2004-04-08 08:01:03:

    1. closedate changed to: "2004-04-08T01:01:03"
    2. closer changed to: "das"
    3. icomment:
      Logged In: YES 
      user_id=90580
      
      no, this value is correct, it is handled specially and indicates that 
      the location of the script library files should be determined 
      dynamically at runtime inside Tcl.framework, c.f. 
      Tcl_MacOSXGetLibraryPath() in tclUnixInit.c
      unixInit-2.8 probably has to deal with Mac OS X specially, e.g. 
      by setting the TCL_LIBRARY env var to override this special 
      handling.
      
      
    4. login: "das"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Deleted"
    8. username: "das"
  3. Ticket change [74e89f44e1] (rid 105299) by das on 2004-04-08 08:01:52:

    1. closedate changed to: "2004-04-08T01:01:52"
    2. closer changed to: "das"
    3. status changed to: "Closed"
  4. Ticket change [568cff7c6c] (rid 94343) by dgp on 2004-04-08 20:40:05:

    1. assignee changed to: "dgp"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      
      um, ok, well if we must have such
      a magic value, at least we need
      to make sure it doesn't find its
      way into the tcl_libPath variable.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. resolution changed to: "Remind"
    6. status changed to: "Open"
    7. subsystem changed to: "38. Init - Library - Autoload"
    8. title changed to: "tcl_libPath holds invalid path: @TCL_IN_FRAMEWORK@"
    9. username: "dgp"
  5. Ticket change [02c3552ba5] (rid 119705) by tauvan on 2004-04-08 22:09:47:

    1. icomment:
      Logged In: YES 
      user_id=1011552
      
      Be patient.
        Is not the goal to load "tclLibraryPathStr" with the
      absolute address of "library"? and "defaultLibraryDir" with
      the same?
       I am not sure, not an "april fool's joke".
      
      Thanks.
      
      
    2. login: "tauvan"
    3. mimetype: "text/plain"
    4. username: "tauvan"
  6. Ticket change [4e155819e5] (rid 127164) by dgp on 2004-04-10 02:57:05:

    1. assignee changed to: "das"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      It appears that a compile time
      boolean has to get compiled
      into the Tcl library to serve as
      a signal for Tcl_MacOXSGetLibraryPath()
      to call Tcl_MacOSXOpenVersionedBundleResources().
      That should not be a problem.
      
      However, rather than invent such
      a boolean, the compiling in of the
      TCL_LIBRARY value into the
      global variable defaultLibraryDir
      has been repurposed -- making use
      of a magic string value.
      
      This achieves the goal, it appears,
      but the magic value also leaks out
      into the value
      of the Tcl variable ::tclDefaultLibrary
      and into the thread-global C variable
      tclLibraryPath and tclLibraryPathStr . 
      
      That's causing this test to fail, and
      also doesn't seem to make sense
      generally.  Why should the string
      value @TCL_IN_FRAMEWORK@
      appear as an element in a list of what
      should be directory names?
      
      Seems to me the right fix here is
      to create the compiled in boolean that's
      needed without piggy-backing on the
      other compiled-in values.
      
      If I'm missing something, let me know.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. username: "dgp"
  7. Ticket change [2665fc01a3] (rid 88340) by tauvan on 2004-04-10 03:36:08:

    1. icomment:
      Logged In: YES 
      user_id=1011552
      
      To make a long story short
      I found that "export DYLD_LIBRARY_PATH;"
      from the "Development/Makefile" is the problem.
      there are minor others but initial findings
      indicate all code from "tclUnixInit.c" ok.
      I will send details later, but I have to run.
      
      Steven.
      
      
    2. login: "tauvan"
    3. mimetype: "text/plain"
    4. username: "tauvan"
  8. Ticket change [4ffefa357b] (rid 125904) by tauvan on 2004-04-10 03:48:47:

    1. icomment:
      Logged In: YES 
      user_id=1011552
      
      To make a long story short
      I found that "export DYLD_LIBRARY_PATH;"
      from the "Development/Makefile" is the problem.
      there are minor others but initial findings
      indicate all code from "tclUnixInit.c" ok.
      I will send details later, but I have to run.
      
      Steven.
      
      
    2. login: "tauvan"
    3. mimetype: "text/plain"
    4. username: "tauvan"
  9. Ticket change [c6c8aad70f] (rid 121826) by tauvan on 2004-04-10 22:32:15:

    1. icomment:
      Logged In: YES 
      user_id=1011552
      
      First, to address how "@TCL_IN_FRAMEWORK@" leaks is
      the makefile seems to set a condition for the boolean to fail.
      This occurs if the bundled resource is not found leaving
      the standard unix code using "defaultLibraryDir" which contains
      "@TCL_IN_FRAMEWORK@". See code "TclpSetVariables" and ask what 
      happens if != TCL_OK.
      
      Now, the findings at the time of this submission:
      
      Do out of box (2004/03/01 tar.gz) unpack
      make sure there is no previous install
      (mac's /System/Library OK as this installs /Library)
      (may need to can /usr/bin tclsh link, I did, also didn't)
      from local (added safety)
      cd to where unpacked (/Users/steven/complex)
      
        steven% make -C ./tcl8.4.6/macosx develop
        steven% make -C ./tcl8.4.6/macosx test-develop
        steven% ./build/tcl/tcltest ./tcl8.4.6/tests/all.tcl
      
      notes @ this point:
        unixInit-2.8 FAILED + others
        from Makefile.in (tclUnixInit.o: -DTCL_LIBRARY=\"${TCL_LIBRARY}\")
        which yields during make (-DTCL_LIBRARY=\
      "@TCL_IN_FRAMEWORK@\")
        can not run from command line
          can't open library: /Library/Frameworks/Tcl.framework/Versions/
      8.4/Tcl
        Makefile forces install
      notes EOF
      
        removed all *.test leaving all.tcl, unixInit.test in tests folder
        steven% make -C ./tcl8.4.6/macosx install-develop
        steven% make -C ./tcl8.4.6/macosx test-develop
      
      notes @ this point:
        unixInit-2.8 FAILED + other
        can run from command line
        from Tcl_MacOSXGetLibraryPath:
          foundInFramework = error;
      notes EOF
      
        add to the installed /Library framwork Info.plist from build
        steven% make -C ./tcl8.4.6/macosx test-develop
        steven% ./build/tcl/tcltest ./tcl8.4.6/tests/all.tcl
      
      notes @ this point:
        unixInit-2.8 FAILED + other
        from command line no unixInit-2.8 FAILED
        from Tcl_MacOSXGetLibraryPath:
          foundInFramework = ok;
      notes EOF
      
        change Tcl_MacOSXGetLibraryPath to load always (ignore 
      "@pooh@"):
          return Tcl_MacOSXOpenVersionedBundleResources(interp, 
          "com.tcltk.tcllibrary", TCL_VERSION, 0, maxPathLen, tclLibPath);
        delete /Development/Makefile (force rebuild)
        steven% make -C ./tcl8.4.6/macosx develop
        steven% make -C ./tcl8.4.6/macosx install-develop
        steven% make -C ./tcl8.4.6/macosx test-develop
        steven% ./build/tcl/tcltest ./tcl8.4.6/tests/all.tcl
      
      notes @ this point:
        unixInit-2.8 FAILED + other
        from command line no unixInit-2.8 FAILED
        from Tcl_MacOSXGetLibraryPath:
          foundInFramework = ok;
        noticed that only when "make" error occurs
        only introduced (different) variables "export"
      notes EOF
      
        removed each "export" indivially form /Development/Makefile
        steven% make -C ./tcl8.4.6/macosx test-develop
      
      notes @ this point:
        removal of "export DYLD_LIBRARY_PATH;" from "test:" in /
      Development/Makefile
          stopped error
      notes EOF
      
      
      this is where I'm at; at the submitting of this to you
      
      Summary:
        Makefile issues. file "tclUnixInit.c" does what it's designed to do.
        Also wish to discuss suggestions and fixes.
        Need to understand why "export DYLD_LIBRARY_PATH;" causes fail.
      
      When you finish reading and have questions or ready to debate
      possible suggestions to changes, I look forward to your response.
      Steven, Thanks.
      
      
    2. login: "tauvan"
    3. mimetype: "text/plain"
    4. username: "tauvan"
  10. Ticket change [7842028e37] (rid 89931) by tauvan on 2004-04-13 13:46:38:

    1. icomment:
      Logged In: YES 
      user_id=1011552
      
       Well, had a time getting at "export DYLD_LIBRARY_PATH;",
      even messed up my hard drive, but from what I've observed:
      when it tries to make the tests, the export of just "pwd:" stops
      the search for Tcl(dylib) at ${pwd}. When running tests over
      I noticed that the env-test had a different fail reason "can't open 
      library:" instead of "__CF....". Since DYLD_LIBRARY_PATH is not
      defined anywhere I changed tcl.m4 to use DYLIB_INSTALL_DIR
      which is a definable in the macosx/makefile. One note though,
      DYLIB_INSTALL_PATH changed to "?= ${SYMROOT}", just like
      TCLSH_EXE prefix. It now runs without a pre-install, which:
        Some possible bandages are:
      I did change "@TCL_IN_FRAMEWORK@" to ${LIBDIR}/Resources/
      Scripts now I hear the "aarg" but if I followed the logic correctly,
      init searches for the version of "library" it's to use. The mac has a
      special search algorithm for finding this. Now at the time of 
      development and deployment builds, prior to install, defaultDir
      gets the very latest copy built in. The bundle routine looks like
      it gets any version, but when an install is done it has the latest.
      As an outside user who can move it about the drive, the bundle
      routine will provide me with the current version, as insider(you)
      aren't you guarrented this by defaultDir? So, I changed unixInit
      such that defaultDir gets appended to all, and for the mac an
      additional append of bundle, no magic just aways do.
        I hope this makes sense and is helpfull. One other note:
      I don't have anything but the tests to go by, plus hopefully
      you have serval versions or at least can alter a "library" file, such
      that it won't do damage, to test what copy you get.
      
      
      
    2. login: "tauvan"
    3. mimetype: "text/plain"
    4. username: "tauvan"
  11. Ticket change [6602088ab6] (rid 102642) by tauvan on 2004-04-14 11:07:49:

    1. icomment:
      Logged In: YES 
      user_id=1011552
      
      As I don't understand a lot about Tcl nor dos machines, is it possible 
      that bug#926088 related?
      
      
    2. login: "tauvan"
    3. mimetype: "text/plain"
    4. username: "tauvan"
  12. Ticket change [30d6a94b11] (rid 93326) by das on 2004-11-19 13:36:57:

    1. closedate changed to: "2004-11-19T06:36:57"
    2. closer changed to: "das"
    3. icomment:
      Logged In: YES 
      user_id=90580
      
      fixed, see bug 1068088
      
      
    4. login: "das"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "das"