Skip to content
Tcl Source Code Artifact [94901ee40b]
Login

Artifact [94901ee40b]

Artifact 94901ee40b0493a055c1d35195a789a684cd36ab:

Ticket change [94901ee40b] - New ticket [218128ffffffffff|218128ffff] <i>8.1 installation issue? Tcl_Init no longer supported?</i>. by nobody on 2000-10-26 00:53:28.
D 2000-10-26T00:53:28
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s1987\sBug\nVersion:\s8.1\nSubmitDate:\s'1999-05-05'\nLastModified:\s'1999-11-07'\nSeverity:\sCRIT\nStatus:\sClosed\nSubmitter:\spat\nChangedBy:\shobbs\nOS:\sSolaris\nOSVersion:\s2.5\nMachine:\sOther\nFixedDate:\s'2000-10-25'\nClosedDate:\s'1999-11-07'\n\n\nName:\sPaul\sDanielson\n\nComments:\nMy\s8.1\sversion\sof\stclsh\sand\swish\sboth\soperate\sfine,\sbut\sthe\sC-API\sseems\n\s\s\s\sflakey.\n\s\s\s\sI\stried\sdirectly\sevaluating\sthe\sinit.tcl\sscript,\swhich\sgot\sme\sa\slittle\n\s\s\s\sfurther\sand\sthen\sinto\sa\score-dump.\sAny\sthoughts\swould\sbe\sappreciated.\n\nReproducibleScript:\nint\n\s\s\s\smain(argc,\sargv)\n\s\s\s\s\s\sint\s\s\s\sargc;\n\s\s\s\s\s\schar\s**argv;\n\s\s\s\s{\n\s\s\s\s\s\sint\s\sstatus;\n\s\s\s\s\n\s\s\s\s\s\sTcl_Interp*\sinterp;\n\s\s\s\s\s\sTcl_Obj*\s\s\s\szero;\n\s\s\s\s\s\sTcl_Obj*\s\s\s\sname;\n\s\s\s\s\n\s\s\s\s\s\sstatus\s=\sTCL_OK;\n\s\s\s\s\n\s\s\s\s\s\sinterp\s=\sTcl_CreateInterp();\n\s\s\s\s\n\s\s\s\s\s\szero\s=\sTcl_NewBooleanObj(\s0\s);\n\s\s\s\s\s\sname\s=\sTcl_NewStringObj(\s"::appDone",\s9\s);\n\s\s\s\s\s\sTcl_ObjSetVar2(\sinterp,\sname,\sNULL,\szero,\s0\s);\n\s\s\s\s\n\s\s\s\s\s\sif(\s(status\s=\sTcl_Init(\sinterp\s))\s!=\sTCL_ERROR\s)\n\s\s\s\s\s\s{\n\s\s\s\s\s\s\s\sif(\s(status\s=\sTk_Init(\sinterp\s))\s!=\sTCL_ERROR\s)\n\s\s\s\s\s\s\s\s{\n\s\s\s\s\s\s\s\s}\n\s\s\s\s\s\s}\selse\n\s\s\s\sprintf("interp\s=\s%s\\n",\sinterp->result);\n\s\s\s\s\n\s\s\s\sprintf("status\s=\s%s\\n",\s(status\s==\sTCL_ERROR)\s?\s"error"\s:\s"good");\n\s\s\s\s\n\s\s\s\s\s\sreturn\sstatus;\n\s\s\s\s}\n\s\s\s\s\n\s\s\s\scompile\swith\sgcc:\n\s\s\s\sgcc\s-I/usr/openwin/include\s-I/home/tcl/include\s-I.\s\s-c\s\stest.c\n\s\s\s\sgcc\s-I/usr/openwin/include\s-I/home/tcl/include\s-I.\s\s-L/home/tcl/lib\n\s\s\s\s-R/home/tcl/lib\s-ltcl8.1\s-ltk8.1\s-lstdc++\s-L/usr/openwin/lib\s-lX11\s-lm\n\s\s\s\stest.o\s\s-o\stester\n\s\s\s\s\n\s\s\s\sThen\sexecute\stester.\sThis\sis\son\sa\sSolaris\s2.5/SPARC\splatform.\n\nObservedBehavior:\nThe\sresult\sfield\sof\sthe\sintepreter\scontains:\n\s\s\s\sinterp\s=\sCan't\sfind\sa\susable\sinit.tcl\sin\sthe\sfollowing\sdirectories:\s\n\s\s\s\s\s\s\s\s\n\s\s\s\s\n\s\s\s\sThis\sprobably\smeans\sthat\sTcl\swasn't\sinstalled\sproperly.\n\s\s\s\s\n\s\s\s\sI\sinstalled\sit\sthe\ssame\sway\sas\salways:\sconfigure\s--enable-gcc\n\s\s\s\s--prefix=/home/tcl;\smake;\smake\sinstall.\sTcl_Init\sdoes\snot\sseem\sto\sbe\sa\n\s\s\s\sdocumented\scommand\s(at\sleast\son\sthe\sweb\ssite\sman\spages),\sbut\sit\sdid\swork\n\s\s\s\sin\s8.0,\sand\sthe\schange\slog\sdidn't\ssay\s"DANGER!!!\sIncompatible!".\sGoing\n\s\s\s\sback\sto\s8.0\son\sthe\scompile\sline\s(-ltcl8.0)\srestores\sthe\sexpected\n\s\s\s\sbehaviour.\n\nDesiredBehavior:\nInitialization\sof\sthe\sinterpreter,\sand\sa\sfunctioning\sprogram...\n\n\n\nTcl_FindExecutable\sneeds\sto\sbe\scalled\sfirst\sto\sset\sup\sthe\si18n\nstuff\sand\sfind\sthe\sright\sdirectories.\s\sUse\sof\sthis\scan\sbe\sseen\nin\sthe\ssource.\s\sUnfortunately,\sthis\swasn't\sdocumented\sappropriately.\s\n--\s11/07/1999\shobbs
J foundin obsolete:\s8.1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 61.\s(unused)
J title 8.1\sinstallation\sissue?\sTcl_Init\sno\slonger\ssupported?
J type Bug
K 218128ffffffffffffffffffffffffffffffffff
U nobody
Z 6d66f36926913f3ca8b75422837e36e0