[Pkg-tcltk-devel] Bug#440683: tcl8.4 strtod + fixstrtod confusion leads to symbol clash

Ian Jackson iwj at ubuntu.com
Mon Sep 3 16:31:27 UTC 2007


Package: tcl8.4
Version: 8.4.15-1
Tags: patch

I was trying to build tcl from source and for reasons I haven't
identified yet, it decided that it needed both compat/strtod.c and
compat/fixstrtod.c.

However, if this happens config.h #defines strtod to fixstrtod.  The
result is that strtod.c generates a strtod.o which defines fixstrtod,
and this leads to a multiply defined symbol.

To fix this I made the following change (but I still need to
investigate why configure isn't working properly).

Regards,
Ian.

--- tcl8.4-8.4.15/compat/strtod.c~	2002-02-25 14:26:12.000000000 +0000
+++ tcl8.4-8.4.15/compat/strtod.c	2007-09-03 17:23:28.000000000 +0100
@@ -62,6 +62,8 @@
  *----------------------------------------------------------------------
  */
 
+#undef strtod
+
 double
 strtod(string, endPtr)
     CONST char *string;		/* A decimal ASCII floating-point number,




More information about the Pkg-tcltk-devel mailing list