Skip to content
Tcl Source Code Artifact [d983ce2356]
Login

Artifact [d983ce2356]

Artifact d983ce2356535155030bf9223d455517c674cafb:

Ticket change [d983ce2356] - New ticket [217853ffffffffff|217853ffff] <i>linux tk/tcl configure bug</i>. by nobody on 2000-10-26 00:44:55.
D 2000-10-26T00:44:55
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s1951\sBug\nVersion:\s8.0.4\nSubmitDate:\s'1999-04-27'\nLastModified:\s'1999-08-13'\nSeverity:\sMED\nStatus:\sClosed\nSubmitter:\spat\nChangedBy:\shobbs\nRelatedBugIDs:\s957\s1896\s2195\s1409\nOS:\sAll\nOSVersion:\sNA\nMachine:\sNA\nFixedDate:\s'2000-10-25'\nFixedInVersion:\s8.1\nClosedDate:\s'1999-08-13'\n\n\n>tcl\s8.0\sconfigure\sbug\sunder\sLinux\s[slackware,\sbut\n>should\sbe\sthe\ssame\son\sall\slinux\ssystems]\n>[same\sbasic\sproblem\soccurs\sunder\stk\s8.0,\ssee\sbelow]\n>\n>Short\sDescription:\n>--------------------\n>Under\sLinux\sConfigure\swith\s--enabled-shared\s*AND*\n>--prefix=/some/directory\n>other\sthen\sa\sstandard\sinstallation\sdirectory\sfails\sto\sbuild\n>a\sworkable\sexecutable.\n>\n>------------------------------------------------------------\n>How\sto\sduplicate:\s[assume\syou\sare\suser\sduane]\n>\n>#\smake\sinstallation\sdirectories\s\n>mkdir\s-p\s/home/duane/installed/bin\n>mkdir\s-p\s/home/duane/installed/man\n>mkdir\s-p\s/home/duane/installed/include\n>mkdir\s-p\s/home/duane/installed/lib\n>\n>#\sUnpack\sthe\ssource\n>cd\s/home/duane/source\n>gtar\sxfz\stcl8.0p1.tar.gz\s\s\s\s\s[also\sdoes\sit\swith\sp2\sapplied]\n>\n>#\sConfigure,\sBuild\s&\sInstall\n>cd\stk8.0/unix\n>./configure\s--prefix=/home/duane/installed\s--enabled-shared\n>make\n>make\sinstall\n>\n>#\sGo\stry\sit\sout\n>cd\s/home/duane/installed/bin\n>./tclsh8.0\n>\n>#\sld.so\scomplains,\sit\scannot\sfind\slibrary\stcl8.0\n>\n>#NOTE:\sIf\sit\sdoes\swork\sfor\syou\s-\sthen\syou\smay\swell\shave\n>#the\stcl8.0\slibrary\sinstalled\sin\ssome\scommon\ssystem\n>#search\sdirectory,\sthen\sperform\sthis\stest:\n>\n>cd\s/home/duane/installed/bin\n>ldd\s./tclsh8.0\n>\n>It\sshould\sshow\ssomething\slike\sthis:\n>\n>libtcl8.0.so\s=>\s/home/duane/installed/lib/libtcl8.0.so\n>libdl.so.1\s=>\s/lib/libdl.so.1\n>libm.so.5\s=>\s/lib/libm.so.5\n>libc.so.5\s=>\s/lib/libc.so.5\n>\n>The\sfirst\sline\sis\s*VERY*\simportant,\s(A)\syou\shave\sinstalled\n>THIS\sspecific\sinstance\sof\stclsh8.0\sbuilt\swith\s(B)\sthis\sspecific\n>library\sthat\s*YOU*\sjust\sinstalled,\sit\sshould\sbe\susing\s*YOUR*\n>newly\sinstalled\slibtcl8.0.so\sfile\sand\s*NOT*\sa\spreviously\n>installed\sversion.\n>\n>--------------------------------------------------\n>\n>Solution/Fix,\sdescription\n>\n>In\sunix/configure.in\s[and\sunix/configure]\n>\n>configure.in:755,\sand\s762\sare\stwo\sparts\sof\san\n>if/else/endif\sstatement\sthat\ssets\sthe\sshell\s\n>variables:\sLD_FLAGS\sand\sLD_SEARCH_FLAGS\n>they\sshould\sspecify\sthe\s-rpath\soption\sas\sshown\n>below\sin\sthe\snew\s'if/else/endif'\sstatement.\n>\n>if\stest\s"$have_dl"\s=\syes;\sthen\n>\s\s\s\sSHLIB_LD="${CC}\s-shared"\n>\s\s\s\sDL_OBJS="tclLoadDl.o"\n>\s\s\s\sDL_LIBS="-ldl"\n>new->\s\s\s\sLD_FLAGS='-rdynamic\s-Wl,-rpath,${LIB_RUNTIME_DIR}'\n>new->\s\s\s\sLD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'\n>else\n>\s\s\s\sAC_CHECK_HEADER(dld.h,\s[\n>SHLIB_LD="ld\s-shared"\n>DL_OBJS="tclLoadDld.o"\n>DL_LIBS="-ldld"\n>new->LD_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'\n>new->LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'])\n>fi\n>\n>configure\s[output\sof\sautoconfigure\s&\sconfigure.in]\n>these\sshow\sup\sin\slines\s3699\s(was:\s755)\sand\s3729\s(was:\s762)\n>\n>Note:\sIn\seffect,\sit's\sthe\ssame\soptions\sthat\sare\sused\sin\sseveral\sof\sthe\n>other\ssystems\sright\sabove.\sI\sam\sunsure\sabout\sif\sboth\sLD_FLAGS\sand\n>LD_SEARCH_FLAGS\sare\srequired,\sI\sdid\sboth,\sand\sit\sseems\sok\sto\sme.\sThe\n\n>maintainers\sof\sthis\ssystem\sprobably\sknow\sa\sbit\smore\sabout\sthis\ssubject\n>then\sI\sdo.\n>\n>Reading\sthe\sdocs\sfor\sthese\stwo\svariables\s[configure.in\sline:\s578/581]\n>It\sappears\sthat\s*BOTH*\sshould\sactually\sbe\sused.\sI\sleave\sthat\sdecision\n>to\sthe\smaintainers.\n>\n>--------------------------------------------------\n>\n>The\ssame\sbasic\sproblem\soccurs\sin\stk8.0/unix/configure.in\n>(and\sconfigure)\sbut\sin\sa\sdifferent\sway.\n>\n>In\sconfigure.in,\sline:\s221\s[configure,\sline:\s1473]\n>The\sTK_LD_SEARCH_FLAGS\svariable\sis\sset\svia\spiping\s\n>some\stext\sthrough\ssed,\sas\ssuch:\n>\n>TK_LD_SEARCH_FLAGS=`echo\s${TK_CC_SEARCH_FLAGS}\s|sed\s-e\s"s|-Wl,||g"\s-e\n>"s|,|\s|g"`\n>\n>Basically,\swhat\sthe\sabove\sis\sdoing\sis\stranslating\sthe\sGCC\s"-Wl"\soption\n>into\splain-old-linker\soptions.\n>\n>However\s-\sUnder\sLinux\s[the\ssystem\sI'm\susing]\sthe\sshared\slibrary\slinker\n>statement\scomes\sfrom\sTCL's\sconfigure\sscript,\sand\sin\smy\sLinux\scase\n>SHLIB_LD\sis\sdefined\sto\sbe:\s"gcc\s-shared",\swhich\scomes\sfrom\sthe\s-\syou\n>guessed\sit,\ssame\sif/else/endif\sstatement\sin\stcl8.0/unix/configure\n>which\sdefines\sit\sto\sbe:\s'${CC}\s-shared'\n>\n>Problem:\sIn\sthe\sLinux\scase,\sthe\s'sed'\smodifications\sshould\s*NOT*\shappen\n>if\sleft\sas\sis,\sgcc\scomplains:\sabout\sthe\sunknown\soption\s"-rpath",\sin\sthe\n>other\s[tcl]\soperating\ssystem\scases,\sin\ssome\splaces\sthe\slinker\sis\s\n>actually\sspecified\sas\sSHLIB_LD\sinstead\sof\susing\sgcc.\sJust\sremoving\n>the\s'sed'\sportion\swill\scause\sthis\sto\sfail\son\sother\ssystems.\n>\n>In\smy\slimited\sworld\s[Linux\sonly\shere\sat\shome,\sSunOS\s4.1.3\sat\swork]\n>I've\shand\smodified\sthe\sshell\sscript\sto\s*NOT*\sperform\sthe\ssed\sstep.\n>Unfortunatly,\sI\scan\snot\soffer\sa\smore\sgeneral\sas\sI\sdon't\sknow\senough\n>about\sthe\sauto-configure\sprocess\sthat\sis\sused\shere.\sNor\scan\sI\stest\n>a\ssolution\sthat\sI\spropose.\n>\n>--------------------------------------------------\n>\n>FYI\s-\sThis\sthrew\sme\sfor\sa\sloop\sin\sthe\sbeginning,\n>as\sI\sam\sporting\sa\stool\sof\sours\sfrom\sSunOS\sto\sLinx.\n>It\sworked\sfine\sunder\sSunOS\n>\n>>From\sthe\sLinux\sld\sman\spage:\s[aka:\sld\s-\sThe\sGNU\sLinker]\n>\s\n>\s\s\s\s[...\ssnip\ssnip\s...]\n>\s\s\s\sThe\s\s-rpath\s\soption\s\smay\salso\sbe\sused\son\sSunOS.\s\sBy\n>\s\s\s\sdefault,\son\sSunOS,\sthe\slinker\swill\sform\s\sa\s\sruntime\n>\s\s\s\ssearch\spatch\sout\sof\sall\sthe\s-L\soptions\sit\sis\sgiven.\n>\s\s\s\s[...\ssnip\ssnip\s...]\n>\n>I\smention\sthis\sbecause\sthis\sproblem\sI'm\sdescribing\smay\swell\n>occur\sin\sother\sELF\senviorments\sthat\smake\suse\sof\sthe\sGNU\sLd\n>Linker,\s*AND*\suse\sgcc\sas\sthe\s'SHLIB_LD'\scommand.\n>\n>Thanks\sfor\sa\s*GREAT*\spackage!\n>\n>-Duane\n>[email protected]\s[work]\n>[email protected]\s[home]\n>\s\n\n\n-Wl,-rpath\shave\sbeen\sincluded\ssince\s8.1\n--\s08/13/1999\shobbs\s\n--\s08/13/1999\shobbs
J foundin obsolete:\s8.0.4
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 61.\s(unused)
J title linux\stk/tcl\sconfigure\sbug
J type Bug
K 217853ffffffffffffffffffffffffffffffffff
U nobody
Z 77d46f1efd9bc130f5057cd057d69962