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

libxslt-devel - xsltutils.h mismatched #endif

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • rhel-8.10.z
    • rhel-8.10
    • libxslt
    • None
    • libxslt-1.1.32-6.3.el8_10
    • Yes
    • Moderate
    • rhel-display-desktop-foundation
    • 3
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • x86_64
    • None

      What were you trying to do that didn't work?

      Application code #includes /usr/include/libxslt/xsltutils.h.

      Compile error of #define redefinition.

      The problem is a mismatched #endif (likely from a code merge error).

      The #endif on line 285 belongs near the end of the file to close the #ifdef _cplusplus.

      If the .h gets included more than once through other .h files, the mismatched #endif results in some #defines outside the protective #ifndef/#endif and results in redefinition errors.

      What is the impact of this issue to you?

      Application software will not compile without manually correcting the header file on ever development system.

      Please provide the package NVR for which the bug is seen:

      This happened in one of the two libxslt-devel updates this year, either 1.1.32-6.1 or 1.1.32-6.2. It was fine in the previous versions through 1.1.32-6 (from 2020).

      How reproducible is this bug?:

      The problem happens on every compilation until the .h file is corrected.

      Steps to reproduce

      1. #include <libxslt/xsltutils.h> twice and compile, observe error
      2.  
      3.  

      Expected results

      No compile errors from #include of <libxslt/xsltutils.h>

      Actual results

      #define redefinition errors when included more than once.

       

              dking@redhat.com David King
              tcs-dev-rhn Jason Clark (Inactive)
              David King David King
              Tomas Pelka Tomas Pelka
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: