.
D 2000-10-26T00:53:14
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s1896\sBug\nVersion:\s8.1b3\nSubmitDate:\s'1999-04-19'\nLastModified:\s'1999-08-13'\nSeverity:\sSER\nStatus:\sClosed\nSubmitter:\spat\nChangedBy:\shobbs\nRelatedBugIDs:\s957\s1951\s2195\s1409\nOS:\sOther\nOSVersion:\sRedHat\sLinux\son\sAlpha\sXL\s300\nMachine:\sNA\nFixedDate:\s'2000-10-25'\nFixedInVersion:\sNA\nClosedDate:\s'1999-08-13'\n\n\nName:\nDon\sPorter\n\nObservedBehavior:\nI\salready\shave\sTcl\s8.1b2\sinstalled\sunder\s/usr/local\s.\n\n\s\s\s\sDownload\sand\sbuild\sTcl\s8.1b3:\n\s\s\s\s$\scd\stcl8.1b3/unix\n\s\s\s\s$\s./configure\s--enable-gcc\s--enable-shared\n\s\s\s\s$\smake\sruntest\n\s\s\s\s...\n\s\s\s\sgcc\s-pipe\s-rdynamic\stclTestInit.o\stclTest.o\stclTestObj.o\n\s\s\s\stclTestProcBodyObj.o\stclThreadTest.o\s\s\stclUnixTest.o\n\s\s\s\s-L/homeitl/dgp/tcl8.1b3/unix\s-ltcl8.1\s-ldl\s\s-lm\s-lc\s\s-Wl,-rpath,/usr/local/lib\s-o\stcltest\n\s\s\s\sLD_LIBRARY_PATH=`pwd`:;\sexport\sLD_LIBRARY_PATH;\s\sSHLIB_PATH=`pwd`:;\sexport\sSHLIB_PATH;\s\sTCL_LIBRARY="/homeitl/dgp/tcl8.1b3/library";\sexport\sTCL_LIBRARY;\s\s./tcltest\n\s\s\s\s%\sinfo\spatch\n\s\s\s\s8.1b2\n\nDesiredBehavior:\nI\swant\s'make\sruntest'\sand\s'make\stest'\sto\stest\sthe\sTcl\s8.1b3\slibrary\n\s\s\s\sthat\sI\sjust\sbuilt,\s*not*\sthe\sTcl\s8.1b2\slibrary\sinstalled\sas\n\s\s\s\s/usr/local/lib/libtcl8.1.so,\swhich\sthe\snew\slibrary\swill\soverwrite\n\s\s\s\swhen\sit\sis\sinstalled.\n\n\s\s\s\sBecause\stcl8.1b3/unix/tcltest\sis\slinked\swith\s-Wl,-rpath,/usr/local/lib,\n\s\s\s\sthe\spath\s/usr/local/lib\sis\sembedded\sin\stcltest\sas\sthe\sfirst\splace\sto\n\s\s\s\slook\sfor\sthe\slibtcl8.1.so\sshared\slibrary\sit\sneeds.\s\sThe\s-rpath\n\s\s\s\sapparently\soverrides\sthe\ssetting\sof\sLD_LIBRARY_PATH\smade\swhen\scalling\n\s\s\s\stcltest\swhich\sattempts\sto\sdirect\stcltest\sto\suse\sthe\slibtcl8.1.so\sin\n\s\s\s\sthe\scurrent\sdirectory.\s\sSo,\stcltest\sloads\s/usr/local/lib/libtcl8.1.so,\n\s\s\s\swhich\sis\sthe\s8.1b2\slibrary.\n\n\s\s\s\sThe\supshot\sis\sthat\s'make\stest'\sactually\stests\sthe\sold,\sinstalled\slibrary\n\s\s\s\sand\sprobably\scrashes,\seither\sbecause\sa\snew\stest\sreveals\sa\scrash\sin\sthe\n\s\s\s\sold\slibrary,\sor\sbecause\sthere\sare\ssymbols\smissing\sin\sthe\sold\slibrary\n\s\s\s\swhich\sthe\snew\stcltest\sexpects\sto\sfind.\n\n\s\s\s\sThe\squick\sworkaround\sis\sto\sadvise\sall\sinstallers\sthat\sthey\smust\srun\n\s\s\s\s'make\sinstall'\sbefore\srunning\s'make\stest',\sthough\sthat\sseems\s\n\s\s\s\sbackwards.\s\sOne\swould\srather\stest\sbefore\sinstalling.\s\sIn\sthe\slonger\n\s\s\s\sterm,\sthis\sissue\sneeds\smore\scareful\sthinking\sthrough.\s\sTesting\n\s\s\s\sin\sthe\sbuild\sdirectory\salways\sbeen\sawkward\s(look\sat\sall\sthose\s\n\s\s\s\senvironment\svariable\ssettings\sjust\strying\sto\smake\sit\swork!),\sand\n\s\s\s\sit's\snot\sgetting\sbetter.\n\n\s\s\s\sPerhaps\stclsh\sand\stcltest\scould\sbe\slinked\sdifferently?\s\sUse\s-rpath\n\s\s\s\sfor\stclsh,\sbut\snot\sfor\stcltest?\n\n\n\n-Wl,-rpath\sare\snecessary\sfor\snormal\soperations.\s\sThis\sconfusion\nmay\soccur\swhen\susers\sare\sdealing\swith\sminor\sversion\sreleases.\nSee\sthe\srelated\sbug\sreports\sfor\sthe\scounter\sto\sthis\sargument.\s\n--\s08/13/1999\shobbs
J foundin obsolete:\s8.1b3
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 61.\s(unused)
J title "gcc\s-Wl,-rpath"\sbreaks\s"make\stest"
J type Bug
K 218110ffffffffffffffffffffffffffffffffff
U nobody
Z 1cb55d733622e4d676dba2c67faaa8b0