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

C++ module doesn't compile on ubuntu 18.04

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 2.7
    • 2.8
    • build
    • Docs Required

    Description

      I followed up installation guide in https://apacheignite-cpp.readme.io/docs/getting-started-1

       

      occurs this error when execute `make` command

      /root/tmp/apache-ignite-2.7.0-src/modules/platforms/cpp # make
      
      ...
      
      Making all in odbc
      make[2]: Entering directory '/root/tmp/apache-ignite-2.7.0-src/modules/platforms/cpp/odbc'
      Making all in include
      make[3]: Entering directory '/root/tmp/apache-ignite-2.7.0-src/modules/platforms/cpp/odbc/include'
      make[3]: Nothing to be done for 'all'.
      make[3]: Leaving directory '/root/tmp/apache-ignite-2.7.0-src/modules/platforms/cpp/odbc/include'
      make[3]: Entering directory '/root/tmp/apache-ignite-2.7.0-src/modules/platforms/cpp/odbc'
      CXX src/ssl/secure_socket_client.lo
      In file included from ./include/ignite/odbc/ssl/ssl_bindings.h:21:0,
      from src/ssl/secure_socket_client.cpp:25:
      ./include/ignite/odbc/ssl/ssl_bindings.h:133:24: error: expression list treated as compound expression in initializer [-fpermissive]
      inline int SSL_library_init()
      ^
      In file included from src/ssl/secure_socket_client.cpp:25:0:
      ./include/ignite/odbc/ssl/ssl_bindings.h:134:13: error: expected ',' or ';' before '{' token
      {
      ^
      In file included from ./include/ignite/odbc/ssl/ssl_bindings.h:21:0,
      from src/ssl/secure_socket_client.cpp:25:
      ./include/ignite/odbc/ssl/ssl_bindings.h:142:25: error: variable or field 'OPENSSL_init_ssl' declared void
      inline void SSL_load_error_strings()
      ^
      src/ssl/secure_socket_client.cpp: In static member function 'static void* ignite::odbc::ssl::SecureSocketClient::MakeContext(const string&, const string&, const string&, ignite::odbc::diagnostic::Diagnosable&)':
      src/ssl/secure_socket_client.cpp:206:31: error: 'ignite::odbc::ssl::OPENSSL_init_ssl' cannot be used as a function
      (void)SSL_library_init();
      ^
      src/ssl/secure_socket_client.cpp:208:25: error: 'ignite::odbc::ssl::OPENSSL_init_ssl' cannot be used as a function
      SSL_load_error_strings();
      ^
      src/ssl/secure_socket_client.cpp:237:40: error: 'SSL_CTRL_OPTIONS' was not declared in this scope
      ssl::SSL_CTX_ctrl(ctx, SSL_CTRL_OPTIONS, flags, NULL);
      ^~~~~~~~~~~~~~~~
      src/ssl/secure_socket_client.cpp:237:40: note: suggested alternative: 'SQL_SCROLL_OPTIONS'
      ssl::SSL_CTX_ctrl(ctx, SSL_CTRL_OPTIONS, flags, NULL);
      ^~~~~~~~~~~~~~~~
      SQL_SCROLL_OPTIONS
      Makefile:782: recipe for target 'src/ssl/secure_socket_client.lo' failed
      make[3]: *** [src/ssl/secure_socket_client.lo] Error 1
      make[3]: Leaving directory '/root/tmp/apache-ignite-2.7.0-src/modules/platforms/cpp/odbc'
      Makefile:812: recipe for target 'all-recursive' failed
      make[2]: *** [all-recursive] Error 1
      make[2]: Leaving directory '/root/tmp/apache-ignite-2.7.0-src/modules/platforms/cpp/odbc'
      Makefile:432: recipe for target 'all-recursive' failed
      make[1]: *** [all-recursive] Error 1
      make[1]: Leaving directory '/root/tmp/apache-ignite-2.7.0-src/modules/platforms/cpp'
      Makefile:364: recipe for target 'all' failed
      make: *** [all] Error 2
      
      
      

       

       

       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              theodore Theodore Han
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: