Skip to content
Tcl Source Code Artifact [d44f3abbe0]
Login

Artifact [d44f3abbe0]

Artifact d44f3abbe0d0a244ff20ff788278ae3856547234:

Ticket change [d44f3abbe0] - New ticket [514392ffffffffff|514392ffff] <i>load failures exit tclsh/wish</i>. by jkbonfield on 2002-02-07 17:46:53.
D 2002-02-07T17:46:53
J assignee das
J cmimetype text/plain
J comment "load\sblah"\swhere\sblah\sdoes\snot\sexist\scauses\swish\s\n(using\sthe\snative\sMacOS\sX\sbuild\sfrom\sJim\sIngham)\s\nto\sexit.\n\nload\slibblah.dylib\swhere\slibblah.dylib\sdoes\sexist\sin\s\nDYLD_LIBRARY_PATH,\sbut\sis\snot\sin\sthe\scurrent\s\ndirectory,\salso\sfails\sin\sthe\ssame\smanner.\sHence\s\nthe\suser\shas\sto\sknow\sthe\sexact\slocation\sof\sthe\s\nlibrary.\n\nThe\stclLoadDyld.c\sfile\scontains\sa\sfunction\snamed\s\nTclpLoadFile.\sThis\scalls:\n\n\s\s\s\sdyld_return\s=\sNSAddLibrary(native);\n\nThis\sfunction\snever\sreturns\s-\sit\ssimply\sexits\sthe\s\nprocess.\s(I\swonder\swhy\sthey\sbothered\sto\sput\sa\s\nreturn\svalue\son\sit!)\n\nSolutions:\stricky....\sit's\spossible\sto\sfork,\sload\sand\s\nsend\sa\smessage\sback\sto\sthe\sparent.\s\sThe\sparent\s\ncan\sthen\suse\sthis\sto\sdecide\swhether\sto\sattempt\sa\s\nload.\n\nThis\sonly\ssolves\sone\spart.\sWe'd\sstill\sneed\sto\stry\s\nsearching\sfor\sthe\slibrary\sin\sall\scomponents\sof\s\nDYLD_LIBRARY_PATH.\s(I\sthought\sthat\sthe\snicely\s\nnamed\sNSAddLibraryWithSearching\ssounded\s\nuseful,\sbut\sit\sdoesn't\sseem\sto\smake\sany\sdifference.\s\n)\n
J foundin obsolete:\s8.4a4
J priority 5\sMedium
J resolution None
J status Open
J submitter jkbonfield
J subsystem 68.\sMac\sClassic\s(obsolete)
J title load\sfailures\sexit\stclsh/wish
J type Bug
K 514392ffffffffffffffffffffffffffffffffff
U jkbonfield
Z 56d5978f343f22aba4cbe5643dda2b3c