Skip to content
Tcl Source Code History Of Ticket 2057479
Login

History Of Ticket 2057479

Artifacts Associated With Ticket 2057479

  1. Ticket change [69d13aa1f6] (rid 128045) by lars_h on 2008-08-18 12:36:00:

    1. assignee initialized to: "mdejong"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      This is on Mac OS X 10.4.11 PowerPC with a freshly installed XCode 2.5.
      
      Compiling CVS HEAD fails when attempting to link tcltest:
      
      make tcltest-real LIB_RUNTIME_DIR="`pwd`"
      gcc -g -pipe      -prebind -headerpad_max_install_names -Wl,-search_paths_first  tclTestInit.o tclTest.o tclTestObj.o tclTestProcBodyObj.o tclThreadTest.o tclUnixTest.o -F/Installerare/Tcl/tcl/build/tcl/Development -framework Tcl -lpthread -framework CoreFoundation  -sectcreate __TEXT __info_plist Tclsh-Info.plist \
               -o tcltest
      /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: warning prebinding disabled because of undefined symbols
      /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols:
      _tclEmptyStringRep
      collect2: ld returned 1 exit status
      make[4]: *** [tcltest-real] Error 1
      make[3]: *** [tcltest] Error 2
      make[2]: *** [build-tcl] Error 2
      make[1]: *** [tcl] Error 2
      make: *** [develop] Error 2
      
      I have verified that this happens with a fresh checkout today of the tcl module into an empty directory, then: cd macosx; make.
      
      Is this related to tclEmptyStringRep being MODULE_SCOPE?
      
    4. foundin initialized to: "obsolete: 8.6a2"
    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: "lars_h"
    10. subsystem initialized to: "52. Portability Support"
    11. title initialized to: "Undefined symbol _tclEmptyStringRep"
    12. type initialized to: "Bug"
  2. Ticket change [cc90aec376] (rid 95722) by dgp on 2008-08-19 04:14:16:

    1. assignee changed to: "das"
  3. Ticket change [54613d17c4] (rid 93940) by tallniel on 2008-08-19 04:34:39:

    1. icomment:
      Logged In: YES 
      user_id=102050
      Originator: NO
      
      I also see this on OS X 10.4.11 Intel. A workaround is to configure with --disable-shared to run the test suite.
      
      
    2. login: "tallniel"
    3. mimetype: "text/plain"
    4. username: "tallniel"
  4. Ticket change [52a6101900] (rid 126350) by das on 2008-08-19 04:59:05:

    1. assignee changed to: "msofer"
    2. icomment:
      Logged In: YES 
      user_id=90580
      Originator: NO
      
      Culprit is the use of TclInvalidateStringRep() in Miguel's new TestconcatobjCmd()...
      
      
    3. login: "das"
    4. mimetype: "text/plain"
    5. priority changed to: "9 Immediate"
    6. subsystem changed to: "53. Configuration and Build Tools"
    7. username: "das"
  5. Ticket change [1c93e22f50] (rid 90626) by das on 2008-08-20 03:56:04:

    1. icomment:
      Logged In: YES 
      user_id=90580
      Originator: NO
      
      the following patch fixes the issue for me, Miguel, any objections to committing this?
      
      Index: generic/tclTest.c
      ===================================================================
      RCS file: /cvsroot/tcl/tcl/generic/tclTest.c,v
      retrieving revision 1.122
      diff -u -p -r1.122 tclTest.c
      --- generic/tclTest.c17 Aug 2008 14:15:25 -00001.122
      +++ generic/tclTest.c19 Aug 2008 20:46:11 -0000
      @@ -6617,11 +6617,17 @@ TestconcatobjCmd(
           
           list1Ptr = Tcl_NewStringObj("foo bar sum", -1);
           Tcl_ListObjLength(NULL, list1Ptr, &len);
      -    TclInvalidateStringRep(list1Ptr);
      +    if (list1Ptr->bytes != NULL) {
      +ckfree((char *) list1Ptr->bytes);
      +list1Ptr->bytes = NULL;
      +    }
           
           list2Ptr = Tcl_NewStringObj("eeny meeny", -1);
           Tcl_ListObjLength(NULL, list2Ptr, &len);
      -    TclInvalidateStringRep(list2Ptr);
      +    if (list2Ptr->bytes != NULL) {
      +ckfree((char *) list2Ptr->bytes);
      +list2Ptr->bytes = NULL;
      +    }
       
           /*
            * Verify that concat'ing a list obj with one or more empty strings does
      
      
      
      
    2. login: "das"
    3. mimetype: "text/plain"
    4. username: "das"
  6. Ticket change [abc1d7c9f8] (rid 101173) by msofer on 2008-08-20 04:58:14:

    1. icomment:
      Logged In: YES 
      user_id=148712
      Originator: NO
      
      No problem, sorry about that - go ahead and commit
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  7. Ticket change [b15a904933] (rid 98130) by das on 2008-08-20 18:46:25:

    1. assignee changed to: "das"
    2. closedate changed to: "2008-08-20T11:46:25"
    3. closer changed to: "das"
    4. icomment:
      Logged In: YES 
      user_id=90580
      Originator: NO
      
      fix committed to HEAD and core-8-5-branch
      
      
    5. login: "das"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
    9. username: "das"