Overview
| Artifact ID: | 4fdfe78ed5b02bc46f57d866c1bae19128fa14d0 |
|---|---|
| Ticket: | 1195167fffffffffffffffffffffffffffffffff
strtod() gets compiled into fixstrtod() |
| User & Date: | nobody on 2005-05-04 12:19:41 |
Changes
- assignee changed to: "stwo"
- cmimetype changed to: "text/plain"
- 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.
- foundin changed to: "obsolete: 8.4.9"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "52. Portability Support"
- title changed to: "strtod() gets compiled into fixstrtod()"
- type changed to: "Bug"