Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-705

Installed C++ header files depend on "config.h" which may have conflicting macros with the (autoconf based) C++ project using Thrift.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • C++ - Library
    • None
    • Any Thrift compatible C++ compiler environment.

    • Patch Available

    Description

      The public, installed Thrift C++ header files depend on an autoconf generated system specific 'config.h' header file. Unfortunately, having this header file as a part of the library headers is generally troublesome. For example, see:

      http://sources.redhat.com/autobook/autobook/autobook_96.html

      Attached is a patch that relies on an alternative, simpler approach based on AX_PREFIX_CONFIG_H, which adds a package prefix to both config.h file name and to the macros defined within:

      http://www.nongnu.org/autoconf-archive/ax_prefix_config_h.html

      The resulting thrift-config.h can be installed and included safely from C++ applications having their own config.h.

      Attachments

        1. config_h_patch-r994950.diff
          20 kB
          Ivan Murashko
        2. config-h-patch.diff
          14 kB
          Teemu Koponen

        Activity

          People

            Unassigned Unassigned
            tkoponen Teemu Koponen
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: