Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-6188

Fix C++ client build on Centos 7 and OSX

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.12.0
    • Fix Version/s: 1.13.0
    • Component/s: None
    • Labels:

      Description

      compile issue on CentOS 7:

      In file included from /root/default/private-drill/contrib/native/client/src/clientlib/utils.cpp:22:0:
      /root/default/private-drill/contrib/native/client/src/clientlib/logger.hpp: In constructor 'Drill::Logger::Logger()':
      /root/default/private-drill/contrib/native/client/src/clientlib/logger.hpp:38:29: error: 'cout' is not a member of 'std'
      m_pOutStream = &std::cout;
      ^
      make[2]: *** [src/clientlib/CMakeFiles/drillClient.dir/utils.cpp.o] Error 1
      make[1]: *** [src/clientlib/CMakeFiles/drillClient.dir/all] Error 2
      make: *** [all] Error 2

      OSX - has this compile error:

      In file included from /Users/mapr/private-drill/contrib/native/client/src/clientlib/drillClientImpl.cpp:34:
      /Users/mapr/private-drill/contrib/native/client/src/clientlib/drillClientImpl.hpp:185:39: error: 'm_bHasError' is a private member of 'Drill::DrillClientQueryHandle'
      void setHasError(bool hasError)
      Unknown macro: { m_bHasError = hasError; }
      ^
      /Users/mapr/private-drill/contrib/native/client/src/clientlib/drillClientImpl.hpp:158:10: note: declared private here
      bool m_bHasError;
      ^

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                parthc Parth Chandra
                Reporter:
                parthc Parth Chandra
                Reviewer:
                Arina Ielchiieva
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: