Artifacts Associated With Ticket 2057479fffffffffffffffffffffffffffffffff
Ticket change [69d13aa1f6] (rid 128045) by lars_h on 2008-08-18 12:36:00:
- assignee initialized to: "mdejong"
- cmimetype initialized to: "text/plain"
- 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? - foundin initialized to: "obsolete: 8.6a2"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "lars_h"
- subsystem initialized to: "52. Portability Support"
- title initialized to: "Undefined symbol _tclEmptyStringRep"
- type initialized to: "Bug"
Ticket change [cc90aec376] (rid 95722) by dgp on 2008-08-19 04:14:16:
- assignee changed to: "das"
Ticket change [54613d17c4] (rid 93940) by tallniel on 2008-08-19 04:34:39:
- 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.
- login: "tallniel"
- mimetype: "text/plain"
- username: "tallniel"
- icomment:
Ticket change [52a6101900] (rid 126350) by das on 2008-08-19 04:59:05:
- assignee changed to: "msofer"
- icomment:
Logged In: YES user_id=90580 Originator: NO Culprit is the use of TclInvalidateStringRep() in Miguel's new TestconcatobjCmd()...
- login: "das"
- mimetype: "text/plain"
- priority changed to: "9 Immediate"
- subsystem changed to: "53. Configuration and Build Tools"
- username: "das"
Ticket change [1c93e22f50] (rid 90626) by das on 2008-08-20 03:56:04:
- 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 - login: "das"
- mimetype: "text/plain"
- username: "das"
- icomment:
Ticket change [abc1d7c9f8] (rid 101173) by msofer on 2008-08-20 04:58:14:
- icomment:
Logged In: YES user_id=148712 Originator: NO No problem, sorry about that - go ahead and commit
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [b15a904933] (rid 98130) by das on 2008-08-20 18:46:25:
- assignee changed to: "das"
- closedate changed to: "2008-08-20T11:46:25"
- closer changed to: "das"
- icomment:
Logged In: YES user_id=90580 Originator: NO fix committed to HEAD and core-8-5-branch
- login: "das"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "das"