Skip to content
Tcl Source Code History Of Ticket 3135271
Login

History Of Ticket 3135271

Artifacts Associated With Ticket 3135271

  1. Ticket change [b27aa41a5f] (rid 98343) by andygoth on 2010-12-11 21:58:24:

    1. assignee initialized to: "stwo"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      On CentOS 4.2 (admittedly quite old), the Tcl/Tk build process can't link tclsh nor wish due to Tcl_Init and Tk_MainEx being hidden symbols in their respective lib*8.6.so files.  This is with today's CVS.  I fooled around with -DUSE_TCL_STUBS and similar but was unable to get it to work.
      
      CentOS 4.2 has gcc 3.4.4 and glibc 2.3.4.
      
    4. foundin initialized to: "obsolete: 8.6b1.1"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "andygoth"
    10. subsystem initialized to: "53. Configuration and Build Tools"
    11. title initialized to: "Link error due to hidden symbols (CentOS 4.2)"
    12. type initialized to: "Bug"
  2. Ticket change [be44bfce8d] (rid 102048) by nijtmans on 2010-12-12 15:31:57:

    1. assignee changed to: "nijtmans"
    2. icomment:
      This must be related to FRQ #2959069, I'll have al look
      
      
    3. login: "nijtmans"
    4. mimetype: "text/plain"
    5. username: "nijtmans"
  3. Ticket change [06730d149e] (rid 89228) by nijtmans on 2010-12-13 04:42:35:

    1. icomment:
      
      
      File Added - 395948: 3135271.patch
      
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  4. Add attachment "3135271.patch" [cb64832374] (rid 95506) by nijtmans on 2010-12-13 04:42:35.

  5. Ticket change [7f82251122] (rid 97572) by nijtmans on 2010-12-13 04:49:04:

    1. icomment:
      Question: Are Tcl_Init and Tk_MainEx the only hidden symbols, or are simply ALL symbols hidden?
      
      I suspect that the gcc 3.4.4 compiler with CentOS, is modified to support --fvisitiliby=hidden, which
      normally is only included with gcc 4.x.  Tcl's configure script picks this up, but tcl.h does not take
      that into account, and simply assumes that gcc < 4.0 does not have visibility support. This could
      explain why all symbols in the DSO's are hidden.
      
      The solution could be the same as used in zlib: Use the define NO_VIZ when the compiler
      has no visibility support, in stead of relying on the gcc version. Here is a patch doing that.
      
      Please try if this patch works as expected.
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  6. Ticket change [8cee5b3072] (rid 127823) by dkf on 2010-12-13 17:07:06:

    1. icomment:
      The current tcl.m4 SC_CONFIG_CFLAGS checks to see if the -fvisibility=hidden flag works (gcc only), otherwise if can use the __visibility__ attribute on the function (which MODULE_SCOPE is a concealing macro for). However, it also allows overriding of this; there's quite a thicket of complexity here...
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  7. Ticket change [d7aa414b8c] (rid 124033) by nijtmans on 2010-12-13 17:13:48:

    1. icomment:
      >there's quite a thicket of complexity here...
      
      Yes, I know, I wrote it.....   And when a compiler backports features, it becomes more compilcated, unfortunately.
      
      Feedback appreciated (first I would like to know if I am right about my suspicion, before changing anthing!!)
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  8. Ticket change [fdca113948] (rid 108474) by andygoth on 2010-12-14 04:48:55:

    1. icomment:
      That patch fixes it.  Thanks!
      
      Yes, all symbols were hidden.
      
      
    2. login: "andygoth"
    3. mimetype: "text/plain"
    4. username: "andygoth"
  9. Ticket change [c934f165d7] (rid 122243) by nijtmans on 2010-12-14 05:38:47:

    1. closedate changed to: "2010-12-13T22:38:47"
    2. closer changed to: "nijtmans"
    3. icomment:
      Committed to HEAD
      
      
    4. login: "nijtmans"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "nijtmans"