Skip to content
Tcl Source Code View Ticket
Login

View Ticket

fixstrtod.c breaks cross compilation

Closed / Fixed840660e5a1ab8a7bfe61d404913caa9ef3d18d35Created 8 years agoUpdated 8 years ago
Descriptionplain2018-10-24 19:44:45
[20:35]	<maartenBE>	Hey, I'm trying to package tcl for conan. While cross building from x64 to x86, I get the following error during linking:
[20:35]	<maartenBE>	fixstrtod.o: In function `fixstrtod':
[20:35]	<maartenBE>	fixstrtod.c:(.text+0x0): multiple definition of `fixstrtod'
[20:35]	<maartenBE>	strtod.o:strtod.c:(.text+0x0): first defined here
[20:35]	<maartenBE>	collect2: error: ld returned 1 exit status
[20:37]	dkf	you probably don't need fixstrtod.c
[20:37]	dkf	it's very very old compatibility code to work around a problem in (IIRC) ancient versions of Solaris
[20:38]	<maartenBE>	I know, this is using the 8.6.8 tar ball.
[20:38]	dkf	It belongs to Tcl's pre-history (i.e., it comes from before the first commit we still have in our VCS repository)
[20:39]	dkf	some quirk of cross-compilation seems to have enabled it 
[20:39]	dkf	(history that old is archaeology)
[20:40]	dkf	digging out the medieval midden of code 
[20:41]	<maartenBE>	configure spits out these lines
[20:41]	<maartenBE>	checking for strtod... yes
[20:41]	<maartenBE>	checking proper strtod implementation... unknown
[20:41]	<maartenBE>	checking for strtod... (cached) yes
[20:41]	<maartenBE>	checking for Solaris2.4/Tru64 strtod bugs... buggy
[20:42]	<maartenBE>	It would be awesome if you could forward this on the mailing list.
jan.nijtmansplain2018-10-24 20:20:43
+1 for removing fixstrtod.c (and the configure part) altogether
dgpplain2018-10-26 16:22:06
Can someone check me on this. It appears the Tcl source
code no longer makes any calls to strtod() at all.

If true, shouldn't we just eliminate all the configure
machinery that deals with it?
dkfhtml2018-10-26 22:15:21

That would seem sensible to me.

dgpplain2018-10-29 18:21:10
Branch bug-840660e5a1 started to test the impact of clearing
out the weeds.
dgpplain2018-10-29 18:45:15
companion branch in Tk.
rkeenewiki2018-10-30 17:38:41
dgp Closed ticket [840660e5a1]. [History diff]2018-11-01 15:52:31
Log in (anonymous is fine) to add a comment.