Skip to content
Tcl Source Code Artifact [5422b82fb2]
Login

Artifact [5422b82fb2]

Artifact 5422b82fb2a9c5ad917ad78fc1fb7720ab1c3a01:

Ticket change [5422b82fb2] - New ticket [1204237fffffffff|1204237fff] <i>load command in HP (shl_load) picks wrong version of library</i>. by dwcollins on 2005-05-18 12:38:49.
D 2005-05-18T12:38:49
J assignee kennykb
J cmimetype text/plain
J comment I\sthink\sthis\sis\sa\sfollow\son\sof\sseveral\searlier\sbug\sreports\sin\s\nthis\sarea\s(notably\s611108,\sbut\salso\s217820,\s219140).\n\nIf\sI\srun\s"load\s/home/dcollins/libtest.sl"\swithin\sa\sstock\s\ntclsh,\sit\sactually\signores\sthe\spath\sI've\sgiven\sit\sand\s\nsearches\sSHLIB_PATH\sfinding\sanother\scopy\sof\sthe\s\nsame\slibrary.\s\sThis\sis\scausing\slots\sof\shead\sscratching\s\nduring\sunit\stests\sof\sour\sextensions,\swhen\sany\srebuilds\s\ndon't\sseem\sto\shave\sany\seffect!\n\nI\swould\sexpect\sit\sto\suse\sSHLIB_PATH,\sif\sI\sjust\srun\s"load\s\nlibtest.sl",\sor\sif\sit\scouldn't\sfind\sit\sin\sthe\sfull\spath\sarea,\sbut\s\nnot\salways!\n\nThis\swas\sobserved\son\sHP-UX\s11i,\sSolaris\sand\slinux\s\nseem\sto\sbe\sbehave\sas\sexpected.\n\nFrom\slooking\sat\s611108,\sI\sassume\sthe\sbehaviour\sis\s\nsupposed\sto\sbe\sas\sfollows\s(but\scorrect\sme\sif\sI'm\swrong):\n\n1.\sConvert\sthe\sfilename\sthe\suser\sentered\sto\sa\sfull\snative\s\npathname\sand\suse\sthat\sto\sload\sthe\slibrary.\n2.\sIf\sthat\sfails,\spass\sthe\soriginal\sstring\sthe\suser\sentered\s\n(raw\sfilename,\srelative\spath\sor\swhatever)\sto\sthe\sOS-\nspecific\s"dlopen"\scommand\sand\slet\sit\sus\s\nLD_LIBRARY_PATH/SHLIB_PATH\sto\sfind\sa\sversion\sof\s\nthat\slibrary.\n\nI\sthink\sthat\sthe\simplementation\sis\scorrect\sfor\sthe\s\ntclLoadDl.c\sand\stclLoadDld.c\s(i.e.\sSolaris,\sLinux,\setc)\s\nbut\sthe\sHP\simplementation\shas\sa\sDYNAMIC_PATH\sflag\s\nthat\stells\sit\sto\salways\suse\sSHLIB_PATH,\seven\sin\sstep\s1\s\nabove.\n\nI've\sattached\sa\spatch\sthat\sremoves\sthat\sflag\sfor\sthe\sfirst\s\ncall\sto\sshl_load\s(the\sone\swith\sthe\sfull\snative\spath),\sthe\s\nsecond\scall\sis\sleft\salone\s(since\swe\swant\sthat\sto\suse\sthe\s\ndynamic\spath\svariable).\n\nCan\sany\sother\sHP\sTcl\susers'\sconfirm/contradict\sthat?\s\sI\s\ndon't\sclaim\sto\sbe\san\sexpert\son\sthis,\sits\smostly\sbeen\strial\s\nand\serror,\sand\sI\sbelieve\sthe\swhole\sshl_load\smechanism\s\nis\sbeing\sreplaced\sby\sthe\smore\susual\sdlopen\sfor\s64-bit,\s\nunfortunately\swe're\sstuck\swith\s32-bit\sHP!\n
J foundin obsolete:\s8.4.9
J priority 5\sMedium
J resolution None
J status Open
J submitter dwcollins
J subsystem 40.\sDynamic\sLoading
J title load\scommand\sin\sHP\s(shl_load)\spicks\swrong\sversion\sof\slibrary
J type Bug
K 1204237fffffffffffffffffffffffffffffffff
U dwcollins
Z 90d97e0daccf00387235bdaa478374ce