Skip to content
Tcl Source Code Artifact [176c589b70]
Login

Artifact [176c589b70]

Artifact 176c589b7097fb1aefe8f20c81a55e0e90923e16:

Ticket change [176c589b70] - New ticket [3397938fffffffff|3397938fff] <i>load failes due to RTLD_LOCAL</i>. by uring on 2011-08-25 10:24:08.
D 2011-08-25T10:24:08
J assignee dkf
J cmimetype text/plain
J comment \nafter\sswitching\sfrom\stcl8.6b1\sto\stcl8.6b2\smany\sof\sour\sapps\sare\sfailing\sat\sstartup\swhen\sloading\nextensions,\sfor\sexample:\n\n>\stclsh8.6\n%\sload\s./libfoo.so\n%\sload\s./libbar.so\n...error:\ssymbol\slookup\serror:\sundefined\ssymbol:\s.....\n\nthis\shappens,\sbecause\s(a)\slibbar\sreferences\sa\ssymbol\swhich\sis\sdefined\sin\slibfoo\sand\s(b)\sbecause\sdlopen()\sin\stclLoadDl.c\spasses\sthe\nflag\sRTLD_LOCAL\s(instead\sof\sRTLD_GLOBAL).\n\nthis\sseems\sto\sbe\sa\sknown\sproblem,\sdiscussed\sfor\sexample\sin\sbug\s#3216070.\n\nI\sunderstand\sthe\sreasons\swhy\syou\scame\sup\swith\sthis\schange.\sBut\sfrom\sa\srather\snaive\spoint\sof\sview\nit\scauses\sa\ssevere\sincompatibility,\sstopping\sthe\smany\sapps\shere\swhich\sare\sbuilt\supon\sthe\sabove\nmentioned\sdependencies.\n\nAt\spresent\sI\ssee\sthe\sfollowing\soptions:\n\n(a)\shacking\stclLoadDl.c\sback\sto\susing\sRTDL_GLOBAL;\n\s\s\s\s\snot\san\sapproach\sI\swere\shappy\swith.\sInstead\sI'd\sprefer\n\s\s\s\sa\scompile\soption\slike\s-DLOAD_GLOBAL.\n(b)\sgetting\san\soption\s"-global"\sin\stcl8.6b3,\sthough\sthis\n\s\s\sneeds\schanging\s\sall\s"load\s..\s"\scommands.\n(c)\schanging\sthe\slink\sof\slibbar.so\sintroducing\s\san\n\s\s\s\simplicit\sdepenency\s"-lfoo".\sdon't\sknow\show\s\n\s\s\sportable\sthis\sadvice\sist.\shere\s(linux,\sSuSE\s11.4,\n\s\s\sbinutils-2.21-13.1.x86_64)\sit\sseems\sto\swork.\n\nWhat\sdo\syou\ssuggest\sto\sget\saround\sthis\sload-failures?\n\n
J foundin obsolete:\s8.6b1.1
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter uring
J subsystem 17.\sCommands\sI-L
J title load\sfailes\sdue\sto\sRTLD_LOCAL
J type Bug
K 3397938fffffffffffffffffffffffffffffffff
U uring
Z 61760e6a7d0b006610668bf5af06a129