<i>why are there static paths in libtcl?</i> status still Open with 4 other changes
by
.
D 2002-07-10T21:55:53
J icomment Logged\sIn:\sYES\s\nuser_id=80530\n\n\nThe\smain\sproduct\sproduce\sby\s'make'\son\nthe\sTcl\ssources\sis\sa\sbinary\slibrary\slinkable\ninto\sother\s(C)\sprograms.\s\sIt\smay\sbe\sstatic\nor\sshared.\s\sIt\smay\shave\sa\sname\smatching\nlibtcl*.*\sor\stcl*.dll,\sbut\sI'll\scall\sit\s"libtcl"\n\nUnlike\smost\sbinary\slibraries,\slibtcl\sdoesn't\ncontain\severything\sit\sneeds\sto\sperform\nits\sfunctions.\s\sIt\srelies\son\sa\sscript\slibrary\nstored\ssomewhere\son\ssome\sfilesystem.\nIt\salso\sexpects\sto\sbe\sable\sto\s[load]\sor\n[source]\sinstalled\sfiles\sto\sextend\sits\nfunctionality.\s\sThe\slocations\sto\ssearch\nfor\sinstalled\sextensions/packages\sare\nalso\ssomewhere\son\ssome\sfilesystem.\n\nSo,\slibtcl\shas\sto\sknow\spath\sinformation\nin\sa\sfilesystem\sfor\scomplete\soperation.\nIn\sa\scompletely\sdefault\sbuild/install\sof\nTcl,\sthese\sare\sknown\srelative\spaths,\nrelative\sto\sthe\sinstalled\slocation\sof\slibtcl.\nHowever,\sUnix\soffers\sno\sway\swithin\nan\sexecutable\sto\sdiscover\sthe\sfull\spath\nof\sa\slibrary\slinked\sinto\sthat\sexecutable.\nFor\sexample,\sinside\sa\srunning\swish,\nthere's\sno\sC\sfunction\sthat\scan\sbe\scalled\nto\sfind\sthe\spath\sto\sthe\slibtcl*.*\sthat's\nlinked\sinto\sthat\swish.\s\sSo\sthere's\sno\sbase\npath\soff\sof\swhich\sto\sextend\sthe\srelative\npaths\sto\s"init.tcl"\sor\sto\sthe\sinstall\sdirectories\nfor\spackages.\s\sInstead,\sthe\spaths\nthemselves\smust\sbe\scompiled\sinto\sthe\nlibrary,\s*and*\sone\smust\sassume\sthat\nthe\slibrary\sand\sits\ssupport\sfiles\sare\sin\sfact\ninstalled\sin\sthe\slocation\swhere\s./configure\nsaid\sthey\swould\sbe\sinstalled.\n\nContrast\sthis\swith\sthe\sWindows\sinitialization\nwhere\sAppendDllPath()\sis\sable\sto\scall\nGetModuleFileName()\sto\sdiscover\sthe\spath\nto\stcl*.dll\sand\sbase\sfurther\spaths\son\sit.\n\nNote\sthe\simportance\sof\smatching\sa\nconfigure-time\sdeclaration\sof\swhere\nthings\swill\sbe\sinstalled\sto\sthe\sactual\ninstall\slocation\sdetermined\sat\sinstall\stime.\nThis\sreally\scomplicates\sbinary\sdistributions.\nIn\sfact,\sthe\sActiveTcl\sinstaller\shas\sto\nsolve\sthis\sby\sactually\s*binary\spatching*\nthe\scorrect\sinstall\spaths\sinto\slibtcl\sas\nit\sinstalls\sit.\n\nThat's\sa\sstart\sat\sthe\sexplanation,\sbut\sthat's\nlimited\sto\sthe\sdefault\sinstall.\s\sWhen\speople\nget\sadventurous\swith\stheir\s./configure\noptions,\sthings\sonly\sget\sworse.\s\sMore\sto\scome...\n
J login dgp
J mimetype text/plain
J username dgp
K 579633ffffffffffffffffffffffffffffffffff
U dgp
Z 0e0dd112f898bcbc36cb7dbf61a5a407