.
D 2001-07-25T00:47:41
J assignee nobody
J cmimetype text/plain
J comment Tcl\scan\ssometimes\sfail\sto\scompile\sfrom\ssource.\s\sThis\nhappens\smost\soften\son\sFreeBSD\smachines\swhen\sthe\sTcl\nsource\scode\sis\sbeing\schecked\sout\sof\sa\sCVS\srepository.\n\nThe\sdetails\sare\sas\sfollows:\nOften\sTcl\ssource\scode\sthat\sis\sbeing\schecked\sout\sof\sa\nCVS\srepository\swill\send\sup\swith\stcl.decls\sand/or\ntclInt.decls\shaving\smodification\stimes\sthat\sare\slater\nthan\stclStubInit.c.\s\sTypically,\sthe\smodification\stimes\nwill\sonly\sbe\s1\ssecond\slater,\sbut\sthat's\senough\sto\scause\ntrouble.\s\sWhen\sTcl\sis\sbeing\sbuilt,\sit\sdecides\sthat\sit\nneeds\sto\sregenerate\stclStubInit.c.\s\sThis\shappens,\sof\ncourse,\sbefore\stclsh\sis\sbuilt.\s\sIf\sa\sworking\stclsh\sis\nnot\sin\sthe\scurrent\spath,\sthe\smake\sfails\swhen\sit\stries\nto\sexecute\sgenStubs.tcl.\s\sFreeBSD\smachines\sinstall\ntclsh\sunder\stclshx.x,\sso\scompiles\swill\sfail\seven\sif\sTcl\nwas\sinstalled\sby\sdefault.\n\nTo\sreproduce\sthis\sproblem,\smake\ssure\sthat\ssome\sother\ntclsh\sis\snot\sin\syour\spath.\s\sTouch\sthe\stcl.decls\sand/or\ntclInt.decls\sfiles\sto\smake\stheir\smodification\stimes\nlater\sthan\stclStubInit.c.\s\sThen\stry\sto\sconfigure\sand\nmake\sTcl\sas\susual.\n\nThis\sbehavior\sisn't\sdesirable.\s\sThe\smakefile\sshouldn't\ntry\sto\suse\ssomething\sbefore\sit's\sbuilt.\s\sI\ssuggest\ntesting\sfor\sthe\sexistence\sof\stclsh\sbefore\srunning\ngenStubs.tcl.\s\sHere\sis\sa\spatch\sto\sdo\sthis:\n\n---\sMakefile.in.old\s\s\s\s\sTue\sJul\s24\s16:49:54\s2001\n+++\sMakefile.in\sTue\sJul\s24\s16:52:42\s2001\n@@\s-1039,8\s+1039,10\s@@\n\s\n\s$(GENERIC_DIR)/tclStubInit.c:\s$(GENERIC_DIR)/tcl.decls\n\\\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s$(GENERIC_DIR)/tclInt.decls\n-\s\s\s\s\s\s\s$(TCL_EXE)\s$(TOOL_DIR)/genStubs.tcl\n$(GENERIC_DIR)\s\\\n-\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s$(GENERIC_DIR)/tcl.decls\n$(GENERIC_DIR)/tclInt.decls\n+\s\s\s\s\s\s\sif\stest\s-e\s$(TCL_EXE);\sthen\s\\\n+\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s$(TCL_EXE)\s$(TOOL_DIR)/genStubs.tcl\n$(GENERIC_DIR)\s\\\n+\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s$(GENERIC_DIR)/tcl.decls\n$(GENERIC_DIR)/tclInt.decls;\s\\\n+\s\s\s\s\s\s\sfi\n\s\n\sgenstubs:\n\s\s\s\s\s\s\s\s$(TCL_EXE)\s$(TOOL_DIR)/genStubs.tcl\n$(GENERIC_DIR)\s\\\n\nIf\ssomeone\sis\scompiling\sfrom\sscratch,\stclsh\swon't\nexist.\s\sHowever,\sif\ssomeone\sreally\smodified\sthe\ndeclarations,\sthen\sthey\sare\slikely\sto\shave\salready\ncompiled\sthe\ssource\sand\stclsh\swill\sexist.\s\sSome\nsequences\sof\sevents\swon't\sbe\scaught\s(eg--developer\nchanges\sdeclarations,\sthen\sdeveloper\sdoes\smake\ndistclean,\sthen\sdeveloper\sconfigures\sand\smakes).\s\sIt\nwill,\showever,\scompile\scorrectly\sif\sthe\sdeveloper\smakes\nagain\sor\sif\sthe\sdeveloper\sdoes\san\sexplicit\smake\ngenstubs.\n\nIt'd\sbe\sbetter\sif\sit\sworked\s100%\sof\sthe\stime,\sbut\sI\ncan't\sthink\sof\sa\sway\sto\sdo\sthat.\s\sUnless\ssomeone\scomes\nup\swith\ssomething\sbetter,\sI\ssuggest\sincorporating\sthe\nabove\spatch.\s\sIMHO,\sit's\sbetter\sif\sthe\ssource\scode\nalways\scompiles\sfrom\sscratch.
J foundin obsolete:\s8.3.3
J priority 5\sMedium
J resolution None
J status Open
J submitter lloydlim
J subsystem 53.\sConfiguration\sand\sBuild\sTools
J title Tcl\scan\sfail\sto\scompile\sfrom\ssource
J type Bug
K 444308ffffffffffffffffffffffffffffffffff
U lloydlim
Z 17bdf2d9cff60a571e04f6f561a8a495