<i>Tcl 8.4 fails to build in debug/threaded config</i> status still Open with 4 other changes
by
.
D 2004-12-05T09:09:13
J icomment Logged\sIn:\sYES\s\nuser_id=21885\n\nTo\sclarify:\n\n--disable-threads:\suse\sgeneric/tclAlloc.c\n\n--disable-threads,\s--enable-symbols=mem:\suse\ngeneric/tclCkalloc.c\sAND\sgeneric/tclAlloc.c\n\n--enable-threads:\suse\sgeneric/tclThreadAlloc.c\n\n--enable-threads,\s--enable-symbols=mem:\suse\ngeneric/tclCkalloc.c\sAND\sgeneric/tclThreadAlloc.c\n\nI\scan\ssee\swhere\sthe\s"confusion"\scomes\sfrom\sbecause\sof\sthe\nway\sthe\s#ifdef's\sare\slaid\sout\sin\sgeneric/tclInt.h,\swith\n"#ifdef\sTCL_MEM_DEBUG\s...\s#elif\sdefined(TCL_THREADS)\s&&\ndefined(USE_THREAD_ALLOC)"\sbut\sthere\swas\sa\sdistinct\ndifference\sin\sTcl's\sbehavior\sif\sbuilt\sUSE_THREAD_ALLOC\swith\nand\swithout\sTCL_MEM_DEBUG\s...\suntil\sthe\spatch\sapplied\sto\nthis\sbug\swas\sapplied.\n\nThe\sone\sconfiguration\sthat's\snot\spossible\susing\sTcl's\n"configure"\sscript\scurrently\sis\sthe\sthreaded-no-zippy\sTcl\nbuild\swhich\swe\sstill\sbuild\sat\sAOL\s(for\sdebugging\spurposes).\n\sBasically,\sit\sdefines\sTCL_THREADS\sbut\snot\sUSE_THREAD_ALLOC\n--\syou\sget\sa\sthreaded\sTcl\sbuild,\sbut\suse\sthe\sallocator\sfrom\ngeneric/tclAlloc.c\sinstead\sof\sgeneric/tclThreadAlloc.c.\s\sI\ncan\sfile\sthis\sas\sa\sRFE/FRQ\sif\snecessary,\sbut\sour\sinternal\nbuilds\sat\sAOL\scan\shappily\scontinue\sto\suse\sthe\s"sed\stricks"\nto\sproduce\sthis\sbuild\sif\sthe\sTcl\score\sdoesn't\swant\sto\nsupport\sit\sas\sa\svalid\sconfiguration.\n\nAn\sinteresting\squestion\sfor\snon-threaded\sTcl\sbuilds\swould\sbe\nto\ssupport\sUSE_THREAD_ALLOC\sas\sa\svalid\soption\s--\sfor\nplatforms\srunning\sTcl\swith\splenty\sof\smemory,\sit\sshould\sspeed\nup\sTcl_DString\sperformance\sor\sother\splaces\swhere\schunks\sof\nsmall\smemory\sare\sallocated\sand\sgrown\sfrequently.\s\sBasically,\nTCL_THREAD\sis\sundefined\sbut\sUSE_THREAD_ALLOC\sis\sdefined.\s\nNot\ssure\sif\sTcl\swould\seven\sbuild\sthis\sway,\sbut\sif\sit\sdoes,\nI'd\sbe\scurious\sto\ssee\swhat\sthe\sTcl\sbenchmarks\shave\sto\ssay.\n\nAgain,\sthe\scorrect\sthing\sto\sdo\sis\sback\sout\sthe\schange\nassociated\swith\sthe\s"fix"\sto\sthis\sbug.\n\nTo\sanswer\sJoe's\squestion,\syou\sdebug\sthe\sthreaded\s(zippy)\nmemory\sallocator\swith\s--enable-threads\s--enable-symbols=mem,\nand\sif\sthat\sdoesn't\sbuild\son\sWin32\sthen\swe\sneed\sto\stalk\nabout\swhy\sit\sdoesn't\sbuild\s(what\ssymbols\sare\smissing\sand\nthen\simplement\sthose\sas\sappropriate\sfor\sWin32,\setc.).\n\n
J login dossy
J mimetype text/plain
J username dossy
K 1030548fffffffffffffffffffffffffffffffff
U dossy
Z 417e37cdea6f0311f691b13fa051abe0