Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-15867

glibc: <sys/cdefs.h> is no longer compatible with C90 compilers

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • rhel-8.10
    • rhel-8.7.0, rhel-8.8.0
    • glibc
    • None
    • glibc-2.28-244.el8
    • Yes
    • Moderate
    • Regression
    • rhel-sst-pt-libraries
    • ssg_platform_tools
    • 13
    • 16
    • 1
    • False
    • Hide

      None

      Show
      None
    • No
    • Red Hat Enterprise Linux
    • None
    • All
    • None

      Under bug 2033684, we enabled __builtin_dynamic_object_size in GCC Toolset 12. This change regressed header compatibility with C90 compilers. This was fixed upstream in this commit.

      I believe we anticipated that upstream and fixed it proactively there:

      commit 2337e04e21ba6040926ec871e403533f77043c40
      Author: Siddhesh Poyarekar <siddhesh@sourceware.org>
      Date:   Thu Feb 2 07:49:02 2023 -0500
      
          cdefs: Limit definition of fortification macros
          
          Define the __glibc_fortify and other macros only when __FORTIFY_LEVEL >
          0.  This has the effect of not defining these macros on older C90
          compilers that do not have support for variable length argument lists.
          
          Also trim off the trailing backslashes from the definition of
          __glibc_fortify and __glibc_fortify_n macros.
          
          Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
          Reviewed-by: Florian Weimer <fweimer@redhat.com>
      

              Unassigned Unassigned
              fweimer@redhat.com Florian Weimer
              Florian Weimer Florian Weimer
              Martin Coufal Martin Coufal
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: