Skip to content
Tcl Source Code Artifact [bdb7b9e702]
Login

Artifact [bdb7b9e702]

Artifact bdb7b9e702c4b39f52a3c2c30d618f75ee0304f5:

Ticket change [bdb7b9e702] - New ticket [218948ffffffffff|218948ffff] <i>tcl 8.2 and tk 8.2 do not compile on SunOS 4.1.4 using cc(1)</i>. by nobody on 2000-10-26 01:08:30.
D 2000-10-26T01:08:30
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s2882\sBug\nVersion:\s8.2\nSubmitDate:\s'1999-09-24'\nLastModified:\s'2000-04-14'\nSeverity:\sCRIT\nStatus:\sReleased\nSubmitter:\stechsupp\nChangedBy:\shobbs\nOS:\sSunOS\nOSVersion:\s4.1.4\nMachine:\sSparc\nFixedDate:\s'2000-04-14'\nFixedInVersion:\s8.3.1\nClosedDate:\s'2000-10-25'\n\n\nName:\nH.\sGaravel\n\nCustomShell:\nNone\spatch\swas\sapplied,\sexcept\sthe\s8\sabove\sones\n\nReproducibleScript:\nBoth\sTCL\s8.2\sand\sTK\s8.2\sfail\sto\scompile\sunder\sSunOS\s4.1.4\susing\sthe\n\s\s\s\sstandard\sC\scompiler\s"cc"\s\sprovided\sin\sthis\soperating\ssystems.\n\nDesiredBehavior:\nBeing\sable\sto\scompile\sproperly\sis\sa\sminimal\srequirement\n\nPatch:\n-------------------------------------------------------------------------------\n***\stcl8.2.0/generic/tcl.h\n\n-------------------------------------------------------------------------------\nPROBLEM:\sthere\sare\sconflicts\sbetween\sstubs\sdefinitions\sand\smacro-definitions\n\s\s\s\s\s\s\s\s\ssharing\sthe\ssame\sidentifiers.\sThis\soccurs\sfor\sTCL_THREADS,\s\n\s\s\s\s\s\s\s\s\sTCL_MEM_DEBUG,\sTCL_NO_DEPRECATED,\setc.\n\nSOLUTION:\sthe\sidea\sis\sto\smove\spieces\sof\scode\sforward\sin\sthe\stcl.h\sfile\n\s\sThis\ssolves\sthe\sproblem\sfor\sSunOS\s4.1.4,\sbut\sit\smay\screate\sproblems\n\s\sfor\sother\sarchitectures\n\nPATCH:\s\n\n156,167d155\n<\s/*\n<\s\s*\sMacros\sthat\seliminate\sthe\soverhead\sof\sthe\sthread\ssynchronization\n<\s\s*\sfunctions\swhen\scompiling\swithout\sthread\ssupport.\n<\s\s*/\n<\s\n<\s#ifndef\sTCL_THREADS\n<\s#define\sTcl_MutexLock(mutexPtr)\n<\s#define\sTcl_MutexUnlock(mutexPtr)\n<\s#define\sTcl_ConditionNotify(condPtr)\n<\s#define\sTcl_ConditionWait(condPtr,\smutexPtr,\stimePtr)\n<\s#endif\s/*\sTCL_THREADS\s*/\n<\s\n1126,1155d1113\n<\s\s*\sThe\sfollowing\sdeclarations\seither\smap\sckalloc\sand\sckfree\sto\n<\s\s*\smalloc\sand\sfree,\sor\sthey\smap\sthem\sto\sprocedures\swith\sall\ssorts\n<\s\s*\sof\sdebugging\shooks\sdefined\sin\stclCkalloc.c.\n<\s\s*/\n<\s\n<\s#ifdef\sTCL_MEM_DEBUG\n<\s\n<\s#\s\s\sdefine\sckalloc(x)\sTcl_DbCkalloc(x,\s__FILE__,\s__LINE__)\n<\s#\s\s\sdefine\sckfree(x)\s\sTcl_DbCkfree(x,\s__FILE__,\s__LINE__)\n<\s#\s\s\sdefine\sckrealloc(x,y)\sTcl_DbCkrealloc((x),\s(y),__FILE__,\s__LINE__)\n<\s\n<\s#else\s/*\s!TCL_MEM_DEBUG\s*/\n<\s\n<\s/*\n<\s\s*\sIf\swe\sare\snot\susing\sthe\sdebugging\sallocator,\swe\sshould\scall\sthe\s\n<\s\s*\sTcl_Alloc,\set\sal.\sroutines\sin\sorder\sto\sguarantee\sthat\severy\smodule\n<\s\s*\sis\susing\sthe\ssame\smemory\sallocator\sboth\sinside\sand\soutside\sof\sthe\n<\s\s*\sTcl\slibrary.\n<\s\s*/\n<\s\n<\s#\s\s\sdefine\sckalloc(x)\sTcl_Alloc(x)\n<\s#\s\s\sdefine\sckfree(x)\sTcl_Free(x)\n<\s#\s\s\sdefine\sckrealloc(x,y)\sTcl_Realloc(x,y)\n<\s#\s\s\sdefine\sTcl_InitMemory(x)\n<\s#\s\s\sdefine\sTcl_DumpActiveMemory(x)\n<\s#\s\s\sdefine\sTcl_ValidateAllMemory(x,y)\n<\s\n<\s#endif\s/*\s!TCL_MEM_DEBUG\s*/\n<\s\n<\s/*\n1540,1549d1497\n<\s\s*\sDeprecated\sTcl\sprocedures:\n<\s\s*/\n<\s\n<\s#ifndef\sTCL_NO_DEPRECATED\n<\s#define\sTcl_EvalObj(interp,objPtr)\sTcl_EvalObjEx((interp),(objPtr),0)\n<\s#define\sTcl_GlobalEvalObj(interp,objPtr)\s\s<\s\s\s\s\s\s\sTcl_EvalObjEx((interp),(objPtr),TCL_EVAL_GLOBAL)\n<\s#endif\n<\s\n<\s/*\n1602a1551,1602\n>\s\s*\sMacros\sthat\seliminate\sthe\soverhead\sof\sthe\sthread\ssynchronization\n>\s\s*\sfunctions\swhen\scompiling\swithout\sthread\ssupport.\n>\s\s*/\n>\s\s\n>\s#ifndef\sTCL_THREADS\n>\s#define\sTcl_MutexLock(mutexPtr)\n>\s#define\sTcl_MutexUnlock(mutexPtr)\n>\s#define\sTcl_ConditionNotify(condPtr)\n>\s#define\sTcl_ConditionWait(condPtr,\smutexPtr,\stimePtr)\n>\s#endif\s/*\sTCL_THREADS\s*/\n>\s\s\n>\s/*\n>\s\s*\sThe\sfollowing\sdeclarations\seither\smap\sckalloc\sand\sckfree\sto\n>\s\s*\smalloc\sand\sfree,\sor\sthey\smap\sthem\sto\sprocedures\swith\sall\ssorts\n>\s\s*\sof\sdebugging\shooks\sdefined\sin\stclCkalloc.c.\n>\s\s*/\n>\s\s\n>\s#ifdef\sTCL_MEM_DEBUG\n>\s\s\n>\s#\s\s\sdefine\sckalloc(x)\sTcl_DbCkalloc(x,\s__FILE__,\s__LINE__)\n>\s#\s\s\sdefine\sckfree(x)\s\sTcl_DbCkfree(x,\s__FILE__,\s__LINE__)\n>\s#\s\s\sdefine\sckrealloc(x,y)\sTcl_DbCkrealloc((x),\s(y),__FILE__,\s__LINE__)\n>\s\s\n>\s#else\s/*\s!TCL_MEM_DEBUG\s*/\n>\s\n>\s/*\n>\s\s*\sDeprecated\sTcl\sprocedures:\n>\s\s*/\n>\s\s\n>\s#ifndef\sTCL_NO_DEPRECATED\n>\s#define\sTcl_EvalObj(interp,objPtr)\sTcl_EvalObjEx((interp),(objPtr),0)\n>\s#define\sTcl_GlobalEvalObj(interp,objPtr)\s\s>\s\s\s\s\s\s\s\s\sTcl_EvalObjEx((interp),(objPtr),TCL_EVAL_GLOBAL)\n>\s#endif\n>\s\s\n>\s/*\n>\s\s*\sIf\swe\sare\snot\susing\sthe\sdebugging\sallocator,\swe\sshould\scall\sthe\n>\s\s*\sTcl_Alloc,\set\sal.\sroutines\sin\sorder\sto\sguarantee\sthat\severy\smodule\n>\s\s*\sis\susing\sthe\ssame\smemory\sallocator\sboth\sinside\sand\soutside\sof\sthe\n>\s\s*\sTcl\slibrary.\n>\s\s*/\n>\s\s\n>\s#\s\s\sdefine\sckalloc(x)\sTcl_Alloc(x)\n>\s#\s\s\sdefine\sckfree(x)\sTcl_Free(x)\n>\s#\s\s\sdefine\sckrealloc(x,y)\sTcl_Realloc(x,y)\n>\s#\s\s\sdefine\sTcl_InitMemory(x)\n>\s#\s\s\sdefine\sTcl_DumpActiveMemory(x)\n>\s#\s\s\sdefine\sTcl_ValidateAllMemory(x,y)\n>\s\s\n>\s#endif\s/*\s!TCL_MEM_DEBUG\s*/\n>\s\n>\s/*\n\n-------------------------------------------------------------------------------\n***\stcl8.2.0/generic/tclBasic.c.ORIG\n\nPROBLEM:\smacros\s"minor"\sand\s"major"\salready\sexist\sin\sSunOS\s4.1.4\sstandard\n\sincludes\n\nSOLUTION:\s#undef\sthem\sin\sTCL\ssource\scode\n\nPATCH\n\n4199a4200,4203\n>\s/*\sto\savoid\sconflicts\swith\smacros\s"minor"\sand\s"major"\sdefined\sin\s/usr/include/sys/sysmacros.h\sand\s/usr/include/sys/mkdev.h\sunder\sSunOS\s4.1.4\s*/\n>\s#undef\smajor\s\n>\s#undef\sminor\n\n-------------------------------------------------------------------------------\n***\stcl8.2.0/generic/tclStubInit.c.ORIG\n\nPROBLEM:\sthe\scompiler\sfails\sto\scompile\n\nSOLUTION:\sadd\smissing\s#undefs\n\n34a35,42\n>\s#undef\sTcl_EvalObj\n>\s#undef\sTcl_GlobalEvalObj\n>\s#undef\sTcl_InitMemory\n>\s#undef\sTcl_MutexLock\n>\s#undef\sTcl_MutexUnlock\n>\s#undef\sTcl_ConditionNotify\n>\s#undef\sTcl_ConditionWait\n\n-------------------------------------------------------------------------------\n***\stk8.2.0/generic/tk.h.ORIG\n\nPROBLEM:\sdoes\snot\scompile\swith\sTK_USE_INPUT_METHODS\n\nSOLUTION:\scomment\sout\sthe\sfollowing\slines\sfor\sSunOS\s4.1.4\n\n/*\n#ifdef\sXNQueryInputStyle\n#define\sTK_USE_INPUT_METHODS\n#endif\n*/\n\nCRUDE\sPATCH\s(#ifdef\sshould\sbe\sused)\n96a97\n>\s/*\n99a101\n>\s*/\n\n-------------------------------------------------------------------------------\n***\stk8.2.0/generic/tkConsole.c.ORIG\n\nPROBLEM:\sfunction\sConsoleDeleteProc\sis\sdeclared\stwice,\sfirst\s'static',\sthen\n\s\s\s\s\s\s\s\s\snon-static\n\nSOLUTION:\sadd\s'static'\sbefore\sactual\sdefinition\sof\sConsoleDeleteProc,\si.e.\n\s\s\s\s\s\s\s\sstatic\svoid\n\s\s\s\s\s\s\s\sConsoleDeleteProc(clientData)\n\nPATCH\n\n676c676\n<\svoid\s\n---\n>\sstatic\svoid\s\n\n-------------------------------------------------------------------------------\n***\stk8.2.0/library/menu.tcl.ORIG\n\nPROBLEM:\scascaded\smenus\sopen\sin\swhole\sdepth,\seven\sif\sthe\suser\shas\sonly\s\s\n\s\s\s\s\s\s\s\s\sselected\sthe\sfirst\smenu\slevel.\sThis\sbug\shas\salready\sbeen\sreported\n\s\s\s\s\s\s\s\s\sby\sAldo\sMazzilli\sfor\s8.0.4,\sbut\sis\sstill\snot\sfixed\sin\s8.2\n\nPATCH:\sremove\sline\s1096\n1096c1096\n<\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s$menu\spostcascade\s$i\n---\n>\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s###\s$menu\spostcascade\s$i\n-------------------------------------------------------------------------------\n\nPatchFiles:\ntcl8.2.0/generic/tcl.h\n\s\s\s\s\s\s\s\s\s\s\s\stcl8.2.0/generic/tclBasic.c\n\s\s\s\s\s\s\s\s\s\s\s\stcl8.2.0/generic/tclStubInit.c\n\s\s\s\s\s\s\s\s\s\s\s\stk8.2.0/generic/tk.h\n\s\s\s\s\s\s\s\s\s\s\s\stk8.2.0/generic/tkConsole.c\n\s\s\s\s\s\s\s\s\s\s\s\stk8.2.0/library/menu.tcl\n\n\n\nFixed\stkConsole.c\s\n--\s11/10/1999\shobbs\nFixed\stkBasic.c,\sthe\sothers\sare\sas\sthey\sshould\sbe.\s\sThe\s"standard"\ncc\sof\sSunOS\sis\snot\svery\sintelligent,\sand\snot\sANSI\scompliant.\s\sgcc\nis\sa\srecommended\salternative\sas\sit\swill\swork\swith\sthe\scurrent\ssetup.\s\n--\s04/14/2000\shobbs
J foundin obsolete:\s8.2
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 75.\sTutorial
J title tcl\s8.2\sand\stk\s8.2\sdo\snot\scompile\son\sSunOS\s4.1.4\susing\scc(1)
J type Bug
K 218948ffffffffffffffffffffffffffffffffff
U nobody
Z c3111217041ebfb15cc6759bfbaab5a6