Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-20329

Cannot build ODBC modules on MacOS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0
    • odbc
    • Docs Required, Release Notes Required

    Description

      I tried to build AI3 from master (hash: 59107180b) on my MacBook and faced an obstacle with compiling ODBC driver:

      ./gradlew clean build -x check
      ...
      > Task :platforms:cmakeBuildOdbc FAILED
        CMakePlugin.cmakeConfigure - ERRORS: 
      In file included from /Users/zloddey/work/apache/ignite-3/modules/platforms/cpp/ignite/odbc/app/application_data_buffer.cpp:18:
      In file included from /Users/zloddey/work/apache/ignite-3/modules/platforms/cpp/ignite/odbc/app/application_data_buffer.h:20:
      In file included from /Users/zloddey/work/apache/ignite-3/modules/platforms/cpp/ignite/odbc/common_types.h:20:
      /Users/zloddey/work/apache/ignite-3/modules/platforms/cpp/ignite/odbc/system/odbc_constants.h:29:10: fatal error: 'odbcinst.h' file not found
      #include <odbcinst.h>
               ^~~~~~~~~~~~
      1 error generated.
      make[2]: *** [ignite/odbc/CMakeFiles/ignite3-odbc-obj.dir/app/application_data_buffer.cpp.o] Error 1
      make[1]: *** [ignite/odbc/CMakeFiles/ignite3-odbc-obj.dir/all] Error 2
      make: *** [all] Error 2
      

      I have an unixODBC package installed in my system, and odbcinst.h located in /opt/local/include. My problem here is that this header is not found by build scripts.

      Attachments

        Issue Links

          Activity

            People

              akhitrin Andrey Khitrin
              akhitrin Andrey Khitrin
              Igor Sapego Igor Sapego
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: