From: SourceForge.net <no...@so...> - 2005-05-04 12:19:44
|
Bugs item #1195167, was opened at 2005-05-04 05:19 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1195167&group_id=10894 Category: 50. Portability Support Group: current: 8.4.9 Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Mo DeJong (mdejong) Summary: strtod() gets compiled into fixstrtod() Initial Comment: 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. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1195167&group_id=10894 |