Uploaded image for project: 'MariaDB Connector/C++'
  1. MariaDB Connector/C++
  2. CONCPP-77

connector c++ is not buildable with rhel7, sles12

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: N/A
    • Component/s: General
    • Labels:
      None
    • Environment:
      sles12, rhel7

      Description

      Connector c++ requires GCC 4.9, but sles12 and rhel7 have 4.8.
      Is 4.9 really needed?

      the error message is confusing - "GCC versin >4.8 is required" - build error in rhel7 happens, but does not clarify the situation (rhel7 has gcc 4.8.5)

      changing https://github.com/mariadb-corporation/mariadb-connector-cpp/blob/master/CMakeLists.txt#L29 4.9 -> 4.8 fixes the problem

      also the condition:

      IF(CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9)
      

      does not work if compiler is not gnucc and does not check its version.

        Attachments

          Activity

            People

            Assignee:
            Lawrin Lawrin Novitsky
            Reporter:
            tturenko Timofey Turenko
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.