<i>missing -lm when building shared lib on OSF/1</i> status still Open with 6 other changes
by
.
D 2016-08-25T10:56:14.801
J closer nobody
J comment For\sTcl\s8.4.5,\swhen\sbuilding\sthe\sshared\slib\s(configure\r\n--enable-shared)\son\sDigital\sOSF/1\sV4.0,\suser\r\nexecutables\sthat\slink\sagainst\slibtcl8.4.so\s(-ltcl)\sand\r\nthat\sdon't\sneed\sthe\smath\slibrary\slibm.so\sthemselves,\r\nsuddenly\sneed\sa\s-lm\son\sthe\slink\scommand\sline,\sotherwise\r\nthere\swill\sbe\sruntime\serrors\sdue\sto\sunresolved\ssymbols\r\nfrom\slibm.so.\sPreviously\s(with\sTcl\s8.3.4),\sit\swas\snot\r\nnecessary\sto\shave\sthe\s-lm\sflag,\sso\sthe\sTcl\supgrade\r\nbreaks\sexisting\suser\sMakefiles.\r\n\r\nI\sfound\sthat\sbuilding\slibtcl8.4.so\swith\s-lm\son\sthe\slink\r\ncommand\sline\ssolves\sthe\sproblem.\sThis\sseems\sto\sput\r\nenough\sinformation\sinto\slibtcl8.4.so\sfor\sthe\sruntime\r\nlinker\sto\sbe\sable\sto\sresolve\sall\ssymbols.\sSo\sinstead\sof\r\n\r\nld\s-shared\s-expect_unresolved\s"*"\s-o\slibtcl8.4.so\s\r\n${OBJS}\s-rpath\r\n/work/cvim1/src/tcl/tcl8.4.5/install/osf1-alpha/lib\r\n\r\nI\sdo\r\n\r\nld\s-shared\s-expect_unresolved\s"*"\s-o\slibtcl8.4.so\s\r\n${OBJS}\s-lm\s-rpath\r\n/work/cvim1/src/tcl/tcl8.4.5/install/osf1-alpha/lib\r\n\r\nThis\sis\seasily\saccomplished\sby\sdoing\r\n\r\n$\sgmake\sSHLIB_LD_LIBS=-lm\r\n\r\nSo,\sa\sway\sto\sfix\sthis\sproblem\swould\sbe\sto\schange\sline\r\n1345\sin\sunix/tcl.m4\sfrom\r\n\r\n\s\s\s\s\s\s\s\s\s\s\s\sSHLIB_LD_LIBS=""\r\n\r\nto\r\n\r\n\s\s\s\s\s\s\s\s\s\s\s\sSHLIB_LD_LIBS="-lm"
J login dkf
J mimetype text/plain
J severity Minor
J subsystem 53.\sConfiguration\sand\sBuild\sTools
K 874194ffffffffffffffffffffffffffffffffff
U dkf
Z 1f8470370c5cedfe3c6113584fa98591