Skip to content
Tcl Source Code History Of Ticket 874194ffff
Login

History Of Ticket 874194ffff

Artifacts Associated With Ticket 874194ffff

  1. Ticket change [70cbbbbf5b] (rid 100552) by rcalmbac on 2004-01-10 00:08:48:

    1. assignee initialized to: "stwo"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      For Tcl 8.4.5, when building the shared lib (configure
      --enable-shared) on Digital OSF/1 V4.0, user
      executables that link against libtcl8.4.so (-ltcl) and
      that don't need the math library libm.so themselves,
      suddenly need a -lm on the link command line, otherwise
      there will be runtime errors due to unresolved symbols
      from libm.so. Previously (with Tcl 8.3.4), it was not
      necessary to have the -lm flag, so the Tcl upgrade
      breaks existing user Makefiles.
      
      I found that building libtcl8.4.so with -lm on the link
      command line solves the problem. This seems to put
      enough information into libtcl8.4.so for the runtime
      linker to be able to resolve all symbols. So instead of
      
      ld -shared -expect_unresolved "*" -o libtcl8.4.so 
      ${OBJS} -rpath
      /work/cvim1/src/tcl/tcl8.4.5/install/osf1-alpha/lib
      
      I do
      
      ld -shared -expect_unresolved "*" -o libtcl8.4.so 
      ${OBJS} -lm -rpath
      /work/cvim1/src/tcl/tcl8.4.5/install/osf1-alpha/lib
      
      This is easily accomplished by doing
      
      $ gmake SHLIB_LD_LIBS=-lm
      
      So, a way to fix this problem would be to change line
      1345 in unix/tcl.m4 from
      
                  SHLIB_LD_LIBS=""
      
      to
      
                  SHLIB_LD_LIBS="-lm"
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "rcalmbac"
    9. subsystem initialized to: "53. Configure and Build Tools"
    10. title initialized to: "missing -lm when building shared lib on OSF/1"
    11. type initialized to: "Patch"
  2. Ticket change [b4f62af5a2] (rid 125146) by hobbs on 2006-03-29 05:49:35:

    1. closedate changed to: "2006-03-28T22:49:35"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      
      MATH_LIBS is included in TCL_LIBS for unix, which is where
      -lm would be, unless 'sin' is in libc on OSF.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Pending"
    8. username: "hobbs"
  3. Ticket change [0dcf859981] (rid 114428) by rcalmbac on 2006-03-30 02:41:37:

    1. icomment:
      Logged In: YES 
      user_id=687758
      
      The output of
      
      nm -Pn libm.a | grep sin
      
      includes this line:
      
      sin                   T 0x00000000000010 0x00000000000008
      
      and the man page defines type 'T' as "External text". I
      assume this means 'sin' is actually defined in libm.a.
      
      We don't really use OSF1 any more, but if there is some
      quick test you want me to do, let me know. All I know is
      that the rather simple fix given solved the problem at the time.
      
      
    2. login: "rcalmbac"
    3. mimetype: "text/plain"
    4. status changed to: "Open"
    5. username: "rcalmbac"
  4. Ticket change [d47775c156] (rid 148475) by dkf on 2016-08-25 10:56:14:

    1. closer changed to: "nobody"
    2. comment changed to:
      For Tcl 8.4.5, when building the shared lib (configure
      --enable-shared) on Digital OSF/1 V4.0, user
      executables that link against libtcl8.4.so (-ltcl) and
      that don't need the math library libm.so themselves,
      suddenly need a -lm on the link command line, otherwise
      there will be runtime errors due to unresolved symbols
      from libm.so. Previously (with Tcl 8.3.4), it was not
      necessary to have the -lm flag, so the Tcl upgrade
      breaks existing user Makefiles.
      
      I found that building libtcl8.4.so with -lm on the link
      command line solves the problem. This seems to put
      enough information into libtcl8.4.so for the runtime
      linker to be able to resolve all symbols. So instead of
      
      ld -shared -expect_unresolved "*" -o libtcl8.4.so 
      ${OBJS} -rpath
      /work/cvim1/src/tcl/tcl8.4.5/install/osf1-alpha/lib
      
      I do
      
      ld -shared -expect_unresolved "*" -o libtcl8.4.so 
      ${OBJS} -lm -rpath
      /work/cvim1/src/tcl/tcl8.4.5/install/osf1-alpha/lib
      
      This is easily accomplished by doing
      
      $ gmake SHLIB_LD_LIBS=-lm
      
      So, a way to fix this problem would be to change line
      1345 in unix/tcl.m4 from
      
                  SHLIB_LD_LIBS=""
      
      to
      
                  SHLIB_LD_LIBS="-lm"
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. severity changed to: "Minor"
    6. subsystem changed to: "53. Configuration and Build Tools"