Artifacts Associated With Ticket 1195167fffffffffffffffffffffffffffffffff
Ticket change [4fdfe78ed5] (rid 125890) by nobody on 2005-05-04 12:19:41:
- assignee initialized to: "stwo"
- cmimetype initialized to: "text/plain"
- 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.
- foundin initialized to: "obsolete: 8.4.9"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "52. Portability Support"
- title initialized to: "strtod() gets compiled into fixstrtod()"
- type initialized to: "Bug"
Ticket change [c0eeeb0852] (rid 102505) by ivan_daniluk on 2005-05-30 12:46:51:
- 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.
- login: "ivan_daniluk"
- mimetype: "text/plain"
- username: "ivan_daniluk"
- icomment:
Ticket change [1dad74b881] (rid 90852) by jcw on 2005-12-01 07:43:42:
- 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
- login: "jcw"
- mimetype: "text/plain"
- username: "jcw"
- icomment:
Ticket change [3dea6c0d81] (rid 121177) by jcw on 2005-12-01 07:48:12:
- 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
- login: "jcw"
- mimetype: "text/plain"
- username: "jcw"
- icomment:
Add attachment "bug1195167.diff" [7bdb2f2ec9] (rid 96975) by dkf on 2005-12-01 20:32:49.
Ticket change [8361e74189] (rid 117372) by dkf on 2005-12-01 20:32:49:
- icomment:
File Added - 158251: bug1195167.diff
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [0387c56a04] (rid 119845) by coldstore on 2006-12-20 08:06:51:
- icomment:
Logged In: YES user_id=19214 Originator: NO This is still a current problem with tcl8.5 recent CVS checkout.
- login: "coldstore"
- mimetype: "text/plain"
- username: "coldstore"
- icomment:
Ticket change [5531a40ed9] (rid 152774) by dgp on 2017-03-31 16:45:43:
- assignee changed to: "dgp"
- closer changed to: "nobody"
- 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.
- 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.
- login: "dgp"
- mimetype: "text/plain"
- priority changed to: "8"
- severity changed to: "Minor"
Ticket change [a2c269cc74] (rid 167089) by dgp on 2018-11-01 15:52:46:
- closedate changed to: "2458424.16164897"
- closer changed to: "dgp"
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"