Skip to content
Tcl Source Code History Of Ticket 1195167fffffffff
Login

History Of Ticket 1195167fffffffff

Artifacts Associated With Ticket 1195167fffffffff

  1. Ticket change [4fdfe78ed5] (rid 125890) by nobody on 2005-05-04 12:19:41:

    1. assignee initialized to: "stwo"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      I cross-compile the latest tcl8.4.9 source code on a 
      Linux x86 platform targetting an embedded PowerPC 
      60x running Linux. The configure script determines that 
      the strtod() function needs to be build for this platform, 
      and for some reason it also determines that the fixstrtod
      () function need to be build as well.
      Because of the need for fixstrtod(), the build script adds 
      the compiler switch -Dstdtod=fixstrtod to gcc. But this 
      causes both strtod() (compat/strtod.c) and fixstrtod() 
      (compat/fixstrtod.c) to be compiled into the single 
      function fixstrtod(). (compat/fixstrtod.c contains 
      an "#undef strtod" to undo this define locally, but 
      compat/strtod.c does not). Since fixstrtod() references 
      strtod(), subsequent linking fails.
      Adding "#undef stdtod" to compat/strtod.c as well 
      solves the problem.
      
      
    4. foundin initialized to: "obsolete: 8.4.9"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "52. Portability Support"
    10. title initialized to: "strtod() gets compiled into fixstrtod()"
    11. type initialized to: "Bug"
  2. Ticket change [c0eeeb0852] (rid 102505) by ivan_daniluk on 2005-05-30 12:46:51:

    1. icomment:
      Logged In: YES 
      user_id=902311
      
      I've got this bug also when crosscompiling tcl8.4.9 on x86
      with uClibc.
      It seems, configure script automatically marks strtod() as
      buggy when detects crosscompiling enabled:
      tcl8.4.9/unix/configure:6243:
      ...
      if test "$cross_compiling" = yes; then
        tcl_cv_strtod_buggy=0
      else
      ...
      
      // note: zero value means "buggy" accordingly to configure
      script
      
      Solution with adding "#undef strtod" works for me, btw.
      
      
    2. login: "ivan_daniluk"
    3. mimetype: "text/plain"
    4. username: "ivan_daniluk"
  3. Ticket change [1dad74b881] (rid 90852) by jcw on 2005-12-01 07:43:42:

    1. icomment:
      Logged In: YES 
      user_id=1983
      
      I can confirm for 8.4.11 that this is the only issue preventing a cross-compile of 
      Tcl.  Am appending a patch which works around this in another way: omitting 
      the strtod.c from the build.
      
      -jcw
      
      
    2. login: "jcw"
    3. mimetype: "text/plain"
    4. username: "jcw"
  4. Ticket change [3dea6c0d81] (rid 121177) by jcw on 2005-12-01 07:48:12:

    1. icomment:
      Logged In: YES 
      user_id=1983
      
      Hm... can't seem to attach a file in this bug report area.  I've placed it here 
      instead: http://www.equi4.com/pub/etc/bug1195167.diff
      
      -jcw
      
      
    2. login: "jcw"
    3. mimetype: "text/plain"
    4. username: "jcw"
  5. Add attachment "bug1195167.diff" [7bdb2f2ec9] (rid 96975) by dkf on 2005-12-01 20:32:49.

  6. Ticket change [8361e74189] (rid 117372) by dkf on 2005-12-01 20:32:49:

    1. icomment:
      
      
      File Added - 158251: bug1195167.diff
      
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  7. Ticket change [0387c56a04] (rid 119845) by coldstore on 2006-12-20 08:06:51:

    1. icomment:
      Logged In: YES 
      user_id=19214
      Originator: NO
      
      This is still a current problem with tcl8.5 recent CVS checkout.
      
      
    2. login: "coldstore"
    3. mimetype: "text/plain"
    4. username: "coldstore"
  8. Ticket change [5531a40ed9] (rid 152774) by dgp on 2017-03-31 16:45:43:

    1. assignee changed to: "dgp"
    2. closer changed to: "nobody"
    3. comment changed to:
      I cross-compile the latest tcl8.4.9 source code on a 
      Linux x86 platform targetting an embedded PowerPC 
      60x running Linux. The configure script determines that 
      the strtod() function needs to be build for this platform, 
      and for some reason it also determines that the fixstrtod
      () function need to be build as well.
      Because of the need for fixstrtod(), the build script adds 
      the compiler switch -Dstdtod=fixstrtod to gcc. But this 
      causes both strtod() (compat/strtod.c) and fixstrtod() 
      (compat/fixstrtod.c) to be compiled into the single 
      function fixstrtod(). (compat/fixstrtod.c contains 
      an "#undef strtod" to undo this define locally, but 
      compat/strtod.c does not). Since fixstrtod() references 
      strtod(), subsequent linking fails.
      Adding "#undef stdtod" to compat/strtod.c as well 
      solves the problem.
      
    4. icomment:
      
      This appears to be the last Open ticket that
      still touches on the "fixstrtod" issue.
      
      Tcl no longer uses the strtod() routine anywhere.
      It can no longer suffer because of any brokenness
      in any system strtod() routine.
      
      In at least Tcl 8.7 and later, we should purge Tcl's
      build machinery of all crutches, patches and other
      heroism dedicated to solving a problem which has
      not existed for years.  The solution is now far
      more damaging, tripping up cross-compile efforts.
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. priority changed to: "8"
    8. severity changed to: "Minor"
  9. Ticket change [a2c269cc74] (rid 167089) by dgp on 2018-11-01 15:52:46:

    1. closedate changed to: "2458424.16164897"
    2. closer changed to: "dgp"
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. resolution changed to: "Fixed"
    6. status changed to: "Closed"