Skip to content
Tcl Source Code History Of Ticket 874186ffffffffff
Login

History Of Ticket 874186ffffffffff

Artifacts Associated With Ticket 874186ffffffffff

  1. Ticket change [9501f241f4] (rid 106093) by rcalmbac on 2004-01-09 23:59:27:

    1. assignee initialized to: "stwo"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      For Tcl 8.4.5, when building the static lib (configure
      --disable-shared) on Digital OSF/1 V4.0, the dynamic
      loading tests in the Tcl test suite (gmake test) fail
      because the -non_shared flag is used instead of the
      -shared flag when building the dltest/pkg*.so files. I
      traced the source of the problem to lines 1340-1344 in
      unix/tcl.m4:
      
                  if test "$SHARED_BUILD" = "1" ; then
                      SHLIB_LD='ld -shared -expect_unresolved
      "*"'
                  else
                      SHLIB_LD='ld -non_shared
      -expect_unresolved "*"'
                  fi
      
      
      I'm not sure why this is done. SHLIB_LD is
      conventionally the macro for building shared libs, so
      you would never want to use -non_shared anyway. Also,
      the command for building the static lib on Digital
      OSF/1 is "ar cr libtcl8.4.a ...", so "ld" isn't even
      used in this case.
      
      I was able to successfully build and test the static
      lib using a modified dltest/Makefile:
      
      $ diff dltest/Makefile.orig dltest/Makefile
      12c12
      < SHLIB_LD =            ld -non_shared
      -expect_unresolved "*"
      ---
      > SHLIB_LD =            ld -shared -expect_unresolved "*"
      
      
      Since this is the only place in the static build where
      SHLIB_LD is used, I think it is safe to modify
      unix/tcl.m4 so that on line 1340, SHLIB_LD always gets
      set like this:
      
                  SHLIB_LD='ld -shared -expect_unresolved "*"'
      
      A similar fix may be needed for lines 1324-1328, but I
      can't speak from my own experience for that platform.
      
    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: "wrong flag for ld when doing static build on OSF/1"
    11. type initialized to: "Patch"
  2. Ticket change [6a29eae227] (rid 148528) by dkf on 2016-09-01 16:08:05:

    1. closer changed to: "nobody"
    2. comment changed to:
      For Tcl 8.4.5, when building the static lib (configure
      --disable-shared) on Digital OSF/1 V4.0, the dynamic
      loading tests in the Tcl test suite (gmake test) fail
      because the -non_shared flag is used instead of the
      -shared flag when building the dltest/pkg*.so files. I
      traced the source of the problem to lines 1340-1344 in
      unix/tcl.m4:
      
                  if test "$SHARED_BUILD" = "1" ; then
                      SHLIB_LD='ld -shared -expect_unresolved
      "*"'
                  else
                      SHLIB_LD='ld -non_shared
      -expect_unresolved "*"'
                  fi
      
      
      I'm not sure why this is done. SHLIB_LD is
      conventionally the macro for building shared libs, so
      you would never want to use -non_shared anyway. Also,
      the command for building the static lib on Digital
      OSF/1 is "ar cr libtcl8.4.a ...", so "ld" isn't even
      used in this case.
      
      I was able to successfully build and test the static
      lib using a modified dltest/Makefile:
      
      $ diff dltest/Makefile.orig dltest/Makefile
      12c12
      < SHLIB_LD =            ld -non_shared
      -expect_unresolved "*"
      ---
      > SHLIB_LD =            ld -shared -expect_unresolved "*"
      
      
      Since this is the only place in the static build where
      SHLIB_LD is used, I think it is safe to modify
      unix/tcl.m4 so that on line 1340, SHLIB_LD always gets
      set like this:
      
                  SHLIB_LD='ld -shared -expect_unresolved "*"'
      
      A similar fix may be needed for lines 1324-1328, but I
      can't speak from my own experience for that platform.
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. severity changed to: "Minor"
    6. subsystem changed to: "53. Configuration and Build Tools"