Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4fdfe78ed5b02bc46f57d866c1bae19128fa14d0
Ticket: 1195167fffffffffffffffffffffffffffffffff
strtod() gets compiled into fixstrtod()
User & Date: nobody on 2005-05-04 12:19:41
Changes

  1. assignee changed to: "stwo"
  2. cmimetype changed to: "text/plain"
  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. foundin changed to: "obsolete: 8.4.9"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "52. Portability Support"
  10. title changed to: "strtod() gets compiled into fixstrtod()"
  11. type changed to: "Bug"