Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-1547

CFEngine 3.6 compilation fails on RHEL3 due to the use of EVP_PKEY_cmp

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Rejected
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.x
    • Labels:
      None
    • Platform:
      Linux
    • Found in version (details):
      3.6.0 RELEASE

      Description

      CFEngine 3.6 on RHEL3 is unable to compile as it tries to use EVP_PKEY_cmp. On RHEL3 (OpenSSL 0.9.7a Feb 19 2003), EVP_PKEY_cmp did not exist yet.

      The only solution I found yet was to backport the EVP_PKEY_cmp function from OpenSSL 0.9.8 and use it like this:
      <pre>
      crypto.h:
      #ifndef HAVE_DECL_EVP_PKEY_CMP
      int EVP_PKEY_cmp(const EVP_PKEY *a, const EVP_PKEY *b);
      #endif

      crypto.c:
      #ifndef HAVE_DECL_EVP_PKEY_CMP
      <backported function>
      #endif
      </pre>

      And to alter configure.ac to define HAVE_DECL_EVP_PKEY_CMP if EVP_PKEY_cmp is here.

      I am not really comfortable with this solution, but I can not find a more elegant solution for now, do anyone have an idea how to solve this properly ?

        Attachments

          Activity

            People

            • Assignee:
              a10038 jimis (Dimitrios Apostolou)
              Reporter:
              Kegeruneku Matthieu CERDA
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel