Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f79ea6c3269c050cc79cbe286cbd63fa9af47160583029a875c4b4096151b694
Ticket: 840660e5a1ab8a7bfe61d404913caa9ef3d18d35
fixstrtod.c breaks cross compilation
User & Date: dkf on 2018-10-24 19:44:45
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    [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.
    
  5. foundin changed to: "8.6.8"
  6. is_private changed to: "0"
  7. login: "dkf"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "dkf"
  13. subsystem changed to: "53. Configuration and Build Tools"
  14. title changed to: "fixstrtod.c breaks cross compilation"
  15. type changed to: "Bug"