.
D 2002-09-18T14:11:38
J assignee kennykb
J cmimetype text/plain
J comment With\s8.4.0\s(compared\sto\s8.3.1)\s"load\slibfred.so"\sno\slonger\s\nworks\sunless\slibfred.so\sis\sin\sthe\scurrent\sdirectory.\sPreviously\s\nthis\ssearched\sthe\sLD_LIBRARY_PATH\son\sUnix,\sor\sPATH\s\non\sWindows.\s(The\ssearching\sis\sreally\sdone\sby\sdlopen().)\n\nSince\sthe\sinclusion\sof\sTcl_FS*\sin\s8.4\sload\snow\salways\scalls\s\ndlopen()\swith\sa\sfull\spathname,\sthus\spreventing\sthe\ssystem\s\nfrom\ssearching\sLD_LIBRARY_PATH.\n\nThe\scause\sis\sin\sTclpDlopen:\n\n\s\s\s\snative\s=\sTcl_FSGetNativePath(pathPtr);\s\n\s\s\s\shandle\s=\sdlopen(native,\sRTLD_NOW\s|\sRTLD_GLOBAL);\s\n\nTcl_GetString(pathPtr)\sreturns\s"libfred.so",\sbut\snative\sis\snow\s\n/some/dir/libfred.so.\sSo\sremoving\sthe\sTcl_FSGetNativePath\s\ncures\sthis\sbug\s(at\sthe\sextent\sof\sbreaking\smuch\smore).\n\nI\sdo\snot\sknow\swhat\sthe\sproper\ssolution\sis,\sbut\sperhaps\sone\s\nway\swould\sbe\sto\sextend\sload\swith\sa\s-native\sswitch\sto\s\naccept\sthe\sargument\sgiven\sto\sit\sas\sa\snative\sname\salready\s\n(and\sso\sit\swill\snot\sneed\sto\scall\sTcl_FSGetNativePath).\n\n
J foundin obsolete:\s8.4.0
J priority 5\sMedium
J resolution None
J status Open
J submitter jkbonfield
J subsystem 40.\sDynamic\sLoading
J title LD_LIBRARY_PATH\sno\slonger\sused
J type Bug
K 611108ffffffffffffffffffffffffffffffffff
U jkbonfield
Z 107d59fbd3de195c4bd3a16614976cb8