Skip to content
Tcl Source Code History Of Ticket 541181ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 541181ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 541181ffffffffffffffffffffffffffffffffff

  1. Ticket change [973b8b2f1a] (rid 106470) by dgp on 2002-04-08 19:54:33:

    1. assignee initialized to: "mdejong"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      CC -ptr./solaris -staticlib=Crun solaris/omfsh.o
      -L../../pkg/if/solaris -lif -L../../pkg/nb/solaris -lnb
      -L../../pkg/oc/solaris -loc
      -L/home/fs3c/dgp/sparc/solaris2/lib -ltk8.4
      -L/home/fs3c/dgp/sparc/solaris2/lib -ltcl8.4
      -L/usr/openwin/lib -lX11 -ldl -lsocket -lnsl -lm -o
      solaris/omfsh
      Undefined                       first referenced
       symbol                             in file
      __ashldi3                          
      /home/fs3c/dgp/sparc/solaris2/lib/libtcl8.4.so
      __ashrdi3                          
      /home/fs3c/dgp/sparc/solaris2/lib/libtcl8.4.so
      __floatdidf                        
      /home/fs3c/dgp/sparc/solaris2/lib/libtcl8.4.so
      ld: fatal: Symbol referencing errors. No output written
      to solaris/omfsh
      
      
    4. foundin initialized to: "obsolete: 8.4a5"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "53. Configuration and Build Tools"
    10. title initialized to: "link error embedding Tcl on Solaris"
    11. type initialized to: "Bug"
  2. Ticket change [5c3ad89d63] (rid 115264) by dgp on 2002-04-09 02:57:40:

    1. assignee changed to: "msofer"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      These symbols seem to come in due to generic/tclExecute.c.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. subsystem changed to: "47. Bytecode Compiler"
    6. username: "dgp"
  3. Ticket change [b477c0b87a] (rid 125041) by dgp on 2002-04-09 03:26:50:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      I traced the problem to a compiler/linker mismatch.
      
      The Tcl library was compiled with gcc, but the program
      that embeds Tcl was compiled with the Sun Workshop
      compiler.  That difference seems to cause the trouble.
      When I compiled both with the Sun compiler, everything
      worked fine.
      
      So, I do have a workaround, but it seems to me that 
      compiler matching should not be necessary.  That is,
      the shared libraries produced by Tcl's build process
      ought to be able to be linked into programs using any
      compiler -- at least on reasonable operating systems...
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [3593e214c0] (rid 106960) by msofer on 2002-04-26 19:50:08:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      I don't even know where to start looking; anybody to whack
      me with a big clue-by-four?
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  5. Ticket change [ac4680aa6c] (rid 101264) by andreas_kupries on 2002-04-26 23:47:54:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      The missing thing could be that the tcl library was not 
      linked against -lgcc, i.e. the gcc support library.
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  6. Ticket change [11e487c53c] (rid 95218) by dgp on 2002-04-27 02:25:45:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      Perhaps, but if additional libraries are required for
      successful static linking against the Tcl library,
      those libraries should be part of the TCL_LIBS
      definition in tclConfig.sh.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [2f53f56bf2] (rid 93046) by dgp on 2002-04-27 02:31:36:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      Tracing futher, it appears the root of the trouble
      is the #include <float.h>.  Why does tclExecute.c
      need that header file?
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  8. Ticket change [8c8b771b7e] (rid 127759) by andreas_kupries on 2002-04-27 02:58:15:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      Bytecompiled expressions ?
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  9. Ticket change [0d47062bfc] (rid 114334) by msofer on 2002-04-27 03:02:36:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Beats me; commenting out lines 20-24 compiles OK and passes
      the test suite on linux. 
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  10. Ticket change [d552b7b592] (rid 123600) by dgp on 2002-04-27 03:30:20:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      ditto on Soaris 8
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  11. Ticket change [2f1957689e] (rid 92998) by msofer on 2002-04-27 05:09:40:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Those #include are in since the very first version on SF
      (1.1); what's more, compat/float.h has been empty since
      those days too! So: what is actually the point of
      
      #ifdef NO_FLOAT_H
      #   include "../compat/float.h"
      #else
      #   include <float.h>
      #endif
      
      Also, unix/tclUnixPort.h includes <float.h> to define
      FLT_MAX (used in generic/tclBinary.c) and FLT_MIN (unused);
      if float.h is not available, it tries <values.h>; if that is
      not available either, it defines default values that almost
      coincide with what I find in my
      /usr/lib/gcc-lib/i386-redhat-linux/2.96/include/float.h
      
      Note that FLT_MAX is only used in [binary format], to
      represent too-large single-precision floats.
      
      So: what is really the point of <float.h> in tcl?
      Note: win/tclWinPort.h also includes <float.h>.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  12. Ticket change [4e66f9c3eb] (rid 127229) by msofer on 2002-06-05 01:57:14:

    1. assignee changed to: "dkf"
    2. icomment:
      Logged In: YES 
      user_id=148712
      
      We could safely eliminate <float.h> everywhere in the unix
      branch if we make sure that FLT_MAX is defined properly in
      unix/tclUnixPort.h.
      
      I do not really know what a good generic definition for
      FLT_MAX would be. I wonder if the default defined in
      unix/tclUnixPort.h is OK for all platforms or it is just a
      "safe" default.
      
      Donal: do you know?
      
      
    3. login: "msofer"
    4. mimetype: "text/plain"
    5. username: "msofer"
  13. Ticket change [933d2d821f] (rid 105783) by dkf on 2002-06-07 16:18:28:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Well, I've tried examining what the various definitions for
      FLT_MAX (and DBL_MAX) are on various platforms
      (Solaris/SPARC, Linux/ix86, and IRIX64 in both 32bit and
      64-bit mode) and all report the same values:
      FLT_MAX=3.4028234663852886e+38
      DBL_MAX=1.7976931348623157e+308
      
      Examining the code, so long as "tclPort.h" is #included, we
      don't need to explicitly #include <float.h> anyway.  But
      tclExecute.c is somewhat bizarre here.  Will have a go at
      fixing it anyway.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  14. Ticket change [0c4068c5dc] (rid 114141) by dkf on 2002-06-07 17:42:48:

    1. closedate changed to: "2002-06-07T10:42:48"
    2. closer changed to: "dkf"
    3. icomment:
      Logged In: YES 
      user_id=79902
      
      OK, I think tclExecute.c is now right; any faults now are
      probably to do with the build system and/or not running
      configure and/or something else which I don't understand.
      
      (Doesn't mean I understand what those error messages really
      are though! :^))
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"
  15. Ticket change [0af82ca6f2] (rid 113915) by dgp on 2002-06-27 03:36:07:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      Re-opening this.  I'm seeing the same problem with
      the 8.4b1 sources.  Investigating...
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. status changed to: "Open"
    5. username: "dgp"
  16. Ticket change [c893ef168e] (rid 122127) by dgp on 2002-06-27 12:06:59:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      The missing symbols are routines supplied by
      gcc for doing math on "long long" values.
      The implementation of these routines is 
      in libgcc.a, so the linking of the embedding
      application can be completed by adding
      that library to those linked, as Andreas
      suggested before.  Note that I see this
      problem with both gcc-2.95.2 and gcc-3.0.3.
      It is a new problem because of new
      "long long" code within Tcl, not because
      of a change in compiler.
      
      So, one approach to fix this would be to
      see that the appropriate -L... -lgcc options
      get added to the TCL_LIBS value in
      tclConfig.sh.  Another might be to require
      embedders to use the TCL_CC compiler
      recorded in tclConfig.sh.
      
      Neither of those is really a satisfactory 
      answer though, because it requires the
      embedder to use the same toolset as
      the library builder.  It would be better if
      the binary Tcl and Tk libraries could be
      distributed in a binary distribution for
      embedding into applications possibly by a
      different toolset.
      
      So, it would be best to find some options
      to pass to the linker during the construction
      of libtcl8.4.so that force it to pull the 
      math support code out of libgcc and put
      it directly into libtcl8.4.so.  (I'm assuming
      that libgcc is LGPL).  Anyone know
      linker options well enough to proceed
      along that path?
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. priority changed to: "8"
    5. username: "dgp"
  17. Ticket change [4235a1d8b1] (rid 116326) by dkf on 2002-06-27 15:33:29:

    1. assignee changed to: "dgp"
    2. icomment:
      Logged In: YES 
      user_id=79902
      
      Linker options are not my specialty.
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. subsystem changed to: "53. Configuration and Build Tools"
    6. username: "dkf"
  18. Ticket change [e10807e7db] (rid 87378) by dkf on 2002-06-27 17:17:28:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      However, building with SunPro cc on Solaris should produce
      code that doesn't require these functions.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  19. Ticket change [fbed9c5d96] (rid 108143) by dgp on 2002-06-27 22:40:47:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      Yes, of course.  But that answer translates
      to "you cannot use gcc to build a binary
      distro of Tcl".  The root of the problem
      is probably bad design choices in gcc,
      but if we can work around them it would
      be a good idea.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  20. Ticket change [7261c5ce9b] (rid 100850) by dgp on 2002-06-28 02:18:22:

    1. title changed to: "gcc compiled Tcl library needs libgcc"
  21. Ticket change [b12c8b9ffc] (rid 98108) by dgp on 2002-06-28 02:56:27:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      OK, the linker options required are just
      to include libgcc among the items
      linked together to produce the
      Tcl shared library.  I achieved
      success adding the appropriate
      -L... -lgcc to the MATH_LIBS,
      but that's not the right solution
      within the Makefile architecture.
      Can someone advise the better
      way?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  22. Ticket change [2a02b7d04b] (rid 118481) by dgp on 2002-06-29 03:51:53:

    1. assignee changed to: "mdejong"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      It appears that what must change is
      what gets run during the
      ${TCL_LIB_FILE} target.  The key
      line is
      
          ${SHLIB_LD} -o $@ ${OBJS} ${LIBS}
      
      Perhaps {SHLIB_LD} needs to be some kind
      of invocation of gcc rather than /usr/ccs/bin/ld ?
      
      Or perhaps LIBS needs to include -L... -lgcc,
      but somehow, keep those additions out of
      the TCL_LIBS variable in tclConfig.sh
      
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. username: "dgp"
  23. Ticket change [3343dbc1e0] (rid 106555) by rmax on 2002-07-01 22:37:52:

    1. icomment:
      Logged In: YES 
      user_id=124643
      
      Just for completeness. It is allowed to link libgcc.a to
      binaries that are not GPL, or not even open source. The C
      file for libgcc.a contains a comment, that says:
              
        In addition to the permissions in the GNU General Public
      License, the
        Software Foundation gives you unlimited permission to link the
        compiled version of this file into combinations with other
      programs,
        and to distribute those combinations without any
      restriction coming
        from the use of this file.  (The General Public License
      restrictions
        do apply in other respects; for example, they cover
      modification of
        the file, and distribution when not linked into a combine
        executable.
      
      
      
    2. login: "rmax"
    3. mimetype: "text/plain"
    4. username: "rmax"
  24. Ticket change [4a49107c1e] (rid 126513) by dkf on 2002-07-01 22:45:13:

    1. assignee changed to: "dkf"
    2. closedate changed to: "2002-07-01T15:45:13"
    3. closer changed to: "dkf"
    4. status changed to: "Closed"
  25. Ticket change [031bec6aa8] (rid 119763) by dgp on 2004-11-18 01:59:19:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      FWIW, this problem has
      shown up again on the HEAD.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. status changed to: "Open"
    5. username: "dgp"
  26. Ticket change [3889a9a839] (rid 112222) by dgp on 2004-11-18 02:28:10:

    1. assignee changed to: "dgp"
  27. Ticket change [80cce4f22e] (rid 116930) by dgp on 2004-11-18 03:29:41:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      broken in 8.4.8 too.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  28. Ticket change [a5746dec7a] (rid 110382) by dgp on 2004-11-18 03:35:02:

    1. priority changed to: "5 Medium"
  29. Ticket change [af5d5e7f6c] (rid 97799) by dgp on 2004-11-18 03:35:03:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      dropping priority.
      This is an unusual, anti-recommended
      configuration, and fixing it looks hard.
      
      Just pick one compiler and use it
      for all.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  30. Ticket change [600e1e0142] (rid 115927) by hobbs on 2007-02-10 01:31:32:

    1. closedate changed to: "2007-02-09T18:31:32"
    2. closer changed to: "hobbs"
    3. status changed to: "Pending"
  31. Ticket change [a9fd16603d] (rid 99245) by sf-robot on 2007-02-24 10:20:10:

    1. closedate changed to: "2007-02-24T03:20:10"
    2. closer changed to: "sf-robot"
    3. icomment:
      Logged In: YES 
      user_id=1312539
      Originator: NO
      
      This Tracker item was closed automatically by the system. It was
      previously set to a Pending status, and the original submitter
      did not respond within 14 days (the time period specified by
      the administrator of this Tracker).
      
      
    4. login: "sf-robot"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "sf-robot"
  32. Ticket change [4a20e98d09] (rid 126482) by dgp on 2007-10-05 02:16:32:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      -static-libgcc option to the gcc linker
      might be a way out of this dilemma.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. status changed to: "Open"
    5. username: "dgp"
  33. Ticket change [90c519572a] (rid 120507) by dgp on 2008-04-15 22:55:25:

    1. closedate changed to: "2008-04-15T15:55:25"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      Can't reproduce with 8.4.19 and
      a modern Solaris/gcc combination.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Out of Date"
    7. status changed to: "Pending"
    8. username: "dgp"
  34. Ticket change [d31ee97cca] (rid 113641) by sf-robot on 2008-04-30 09:20:24:

    1. closedate changed to: "2008-04-30T02:20:24"
    2. closer changed to: "sf-robot"
    3. icomment:
      Logged In: YES 
      user_id=1312539
      Originator: NO
      
      This Tracker item was closed automatically by the system. It was
      previously set to a Pending status, and the original submitter
      did not respond within 14 days (the time period specified by
      the administrator of this Tracker).
      
      
    4. login: "sf-robot"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "sf-robot"