Skip to content
Tcl Source Code History Of Ticket 3281728fffffffff
Login

History Of Ticket 3281728fffffffff

Artifacts Associated With Ticket 3281728fffffffff

  1. Ticket change [23d132498d] (rid 130998) by zoro2 on 2011-04-09 06:23:11:

    1. assignee initialized to: "stwo"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Hi,
      
      The issue is configure is detecting that gcc3 supports visibility_hidden, however, visibility default is not detected. This gives an error:
      
      [07:53:28] 2  >> /shared/dev/cookit/sources/tcl-8.6b1.2/generic/tcl.h:2377: visibility arg must be one of "hidden", "protected" or "internal"
      
      This is due to:
      
      #   if defined(__GNUC__) && !defined(NO_VIZ) && !defined(STATIC_BUILD)
      #       define DLLEXPORT __attribute__ ((visibility("default")))
      #   else
      #       define DLLEXPORT
      #   endif
      
      Probably configure should also check if "default" is supported as well and ignore it if it's not.
      
      Another approach (from 3137454) is:
      #   if defined(__GNUC__) && !defined(NO_VIZ) && !defined(STATIC_BUILD)
      #       if __GNUC__ >= 4
      #           define DLLEXPORT __attribute__ ((visibility("default")))
      #       else
      #            define DLLEXPORT
      #       endif
      #   else
      #       define DLLEXPORT
      #   endif
      
      
    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: "zoro2"
    10. subsystem initialized to: "53. Configuration and Build Tools"
    11. title initialized to:
      Tcl sources from 2011-04-06 do not build on GCC9 (RH9)
      
    12. type initialized to: "Bug"
  2. Ticket change [49c5bcd7b6] (rid 100099) by nijtmans on 2011-04-09 14:58:31:

    1. icomment:
      I'll have a look at this
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  3. Ticket change [7d3c506aaa] (rid 97211) by nijtmans on 2011-04-09 14:58:32:

    1. assignee changed to: "nijtmans"
  4. Ticket change [831593c559] (rid 117336) by nijtmans on 2011-04-11 14:31:41:

    1. icomment:
      Strange, as : zoro2 reported in Bug #3137454 that it everything worked there. ;-(
      
      Another strange thing: How is it possible that a compiler support -fvisibility=hidden
      (the configure script checks for this), but there is no way to set visibility back
      to default???? I don't have such an environment, so cannot (and I don't
      reallly want) to experiment in such environments to get -fvisibility=hidden
      working there.
      
      I only see one way out: revert tcl.h to how it was before in Tcl 8.5, and
      simply only allow -fivisilibility=hidden for gcc > 3. This means that
      -fivisibility=hidden cannot be used on other compilers which take
      over the feature from gcc, but that's how it is: other compilers will
      have to use MODULE_SCOPE like it was before ;-(
      
      Anyway, fixed now.
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  5. Ticket change [cb77ad4100] (rid 95524) by zoro2 on 2011-04-11 15:05:30:

    1. icomment:
      Thank you for responding to this so quickly. Both static and dynamic versions build fine now. Feel free to close the ticket if you think the fix is final.
      
      I have tested it and it works fine now. I guess GCC3 only allowed "hiding" certain functions instead of having everything hidden vs exported functions visible. So, with the age of GCC3 it makes sense (I will actually try to upgrade my environment to use GCC4 in a few months). 
      
      Just for clarification - #3137454 was about *AppInit.c (which I compile outside of Tcl) failing. Now compiling Tcl failed as well.
      
      
    2. login: "zoro2"
    3. mimetype: "text/plain"
    4. username: "zoro2"
  6. Ticket change [d027e61664] (rid 113116) by nijtmans on 2011-04-11 15:31:59:

    1. closedate changed to: "2011-04-11T08:31:59"
    2. closer changed to: "nijtmans"
    3. icomment:
      
      
      allow_comments - 1
      
      >Just for clarification - #3137454 was about *AppInit.c (which I compile
      >outside of Tcl) failing. Now compiling Tcl failed as well.
      
      That explains what happened: The combination of using MODULE_SCOPE
      here and undefining STATIC_BUILD is what broke gcc-3: it was wrong
      all the way, but this change revealed it.
      
      Thanks for testing! (I didn't note that #3137454 was filed by you as well....)
      
      Regards,
                 Jan Nijtmans
      
      
    4. login: "nijtmans"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "nijtmans"