Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 23d132498d56d3f8f9766a386f71bc3a03c6b64f
Ticket: 3281728fffffffffffffffffffffffffffffffff
Tcl sources from 2011-04-06 do not build on GCC9 (RH9)
User & Date: zoro2 on 2011-04-09 06:23:11
Changes

  1. assignee changed to: "stwo"
  2. cmimetype changed to: "text/plain"
  3. comment changed 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 changed to: "obsolete: 8.6b1.1"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "zoro2"
  10. subsystem changed to: "53. Configuration and Build Tools"
  11. title changed to:
    Tcl sources from 2011-04-06 do not build on GCC9 (RH9)
    
  12. type changed to: "Bug"