You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by bagsiur <ra...@gmail.com> on 2018/03/01 10:38:24 UTC
ODBC driver compile error
Hello,
I try to compile odbc but I have fallowing errors:
So I make fallowing commands:
1. cd ./modules/platforms/cpp
2. libtoolize && aclocal && autoheader && automake --add-missing &&
autoreconf
3. ./configure
4. make
Errors are:
error: 'ignite::odbc::ssl::OPENSSL_init_ssl' declared as an 'inline'
variable
error: expression list treated as compound expression in initializer
[-fpermissive]
error: expected ',' or ';' before '{' token
error: variable or field 'OPENSSL_init_ssl' declared void
error: 'ignite::odbc::ssl::OPENSSL_init_ssl' cannot be used as a function
error: 'SSL_CTRL_OPTIONS' was not declared in this scope
My Ignite version is 2.5 downloaded by (today):
git clone https://git-wip-us.apache.org/repos/asf/ignite
Please help me.
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: ODBC driver compile error
Posted by Igor Sapego-1 <is...@apache.org>.
I can not reproduce the issue on my system.
Can you try to apply attached patch and tell me if this helps?
01.patch <http://apache-ignite-users.70518.x6.nabble.com/file/t938/01.patch>
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: ODBC driver compile error
Posted by bagsiur <ra...@gmail.com>.
Thanks Igor, I will be grateful.
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: ODBC driver compile error
Posted by Igor Sapego <is...@apache.org>.
Thanks. I'll try to reproduce the issue and tell you
the result.
Best Regards,
Igor
On Thu, Mar 1, 2018 at 3:41 PM, bagsiur <ra...@gmail.com>
wrote:
> So, cammand line: "apt-cache policy openssl" show:
>
> openssl:
> Installed: 1.0.1t-1+deb8u7
> Candidate: 1.0.1t-1+deb8u7
> Version table:
> *** 1.0.1t-1+deb8u7 0
> 500 http://http.us.debian.org/debian/ jessie/main amd64 Packages
> 500 http://security.debian.org/ jessie/updates/main amd64 Packages
> 100 /var/lib/dpkg/status
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>
Re: ODBC driver compile error
Posted by bagsiur <ra...@gmail.com>.
So, cammand line: "apt-cache policy openssl" show:
openssl:
Installed: 1.0.1t-1+deb8u7
Candidate: 1.0.1t-1+deb8u7
Version table:
*** 1.0.1t-1+deb8u7 0
500 http://http.us.debian.org/debian/ jessie/main amd64 Packages
500 http://security.debian.org/ jessie/updates/main amd64 Packages
100 /var/lib/dpkg/status
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: ODBC driver compile error
Posted by Igor Sapego <is...@apache.org>.
What is your OpenSSL version?
Best Regards,
Igor
On Thu, Mar 1, 2018 at 2:21 PM, bagsiur <ra...@gmail.com>
wrote:
> ok, here are whole console logs:
>
> make[3]: Entering directory '/root/ignite/modules/platforms/cpp/odbc'
> [0/1251]
> 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:132:24: error:
> 'ignite::odbc::ssl::OPENSSL_init_ssl' declared as an 'inline' variable
> inline int SSL_library_init()
> ^
> ./include/ignite/odbc/ssl/ssl_bindings.h:132: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:133: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:141: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:269:31: error:
> 'ignite::odbc::ssl::OPENSSL_init_ssl' cannot be used as a function
> (void)SSL_library_init();
> ^
> src/ssl/secure_socket_client.cpp:271:25: error:
> 'ignite::odbc::ssl::OPENSSL_init_ssl' cannot be used as a function
> SSL_load_error_strings();
> ^
> src/ssl/secure_socket_client.cpp:300:40: error: 'SSL_CTRL_OPTIONS' was not
> declared in this scope
> ssl::SSL_CTX_ctrl(ctx, SSL_CTRL_OPTIONS, flags, NULL);
> ^~~~~~~~~~~~~~~~
> Makefile:720: 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/ignite/modules/platforms/cpp/odbc'
> Makefile:748: recipe for target 'all-recursive' failed
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory '/root/ignite/modules/platforms/cpp/odbc'
> Makefile:426: recipe for target 'all-recursive' failed
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory '/root/ignite/modules/platforms/cpp'
> Makefile:358: recipe for target 'all' failed
> make: *** [all] Error 2
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>
Re: ODBC driver compile error
Posted by bagsiur <ra...@gmail.com>.
ok, here are whole console logs:
make[3]: Entering directory '/root/ignite/modules/platforms/cpp/odbc'
[0/1251]
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:132:24: error:
'ignite::odbc::ssl::OPENSSL_init_ssl' declared as an 'inline' variable
inline int SSL_library_init()
^
./include/ignite/odbc/ssl/ssl_bindings.h:132: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:133: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:141: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:269:31: error:
'ignite::odbc::ssl::OPENSSL_init_ssl' cannot be used as a function
(void)SSL_library_init();
^
src/ssl/secure_socket_client.cpp:271:25: error:
'ignite::odbc::ssl::OPENSSL_init_ssl' cannot be used as a function
SSL_load_error_strings();
^
src/ssl/secure_socket_client.cpp:300:40: error: 'SSL_CTRL_OPTIONS' was not
declared in this scope
ssl::SSL_CTX_ctrl(ctx, SSL_CTRL_OPTIONS, flags, NULL);
^~~~~~~~~~~~~~~~
Makefile:720: 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/ignite/modules/platforms/cpp/odbc'
Makefile:748: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/root/ignite/modules/platforms/cpp/odbc'
Makefile:426: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/ignite/modules/platforms/cpp'
Makefile:358: recipe for target 'all' failed
make: *** [all] Error 2
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: ODBC driver compile error
Posted by Igor Sapego <is...@gridgain.com>.
Please, share the whole error listing. I can't see files and
lines of the errors and I can't find any mentions of e.g.
OPENSSL_init_ssl in driver code.
Best Regards,
Igor
On Thu, Mar 1, 2018 at 1:51 PM, bagsiur <ra...@gmail.com>
wrote:
> I have libssl-dev in newest version. Before compile I install gcc g++ make
> automake libtool m4 libssl-dev unixodbc unixodbc-dev
>
> So I have all dependencies from DEVNOTES.txt :
>
> * GCC, g++, autotools, automake, and libtool must be installed
> * Java Development Kit (JDK) must be installed:
> https://java.com/en/download/index.jsp
> * JAVA_HOME environment variable must be set pointing to Java installation
> directory.
> * IGNITE_HOME environment variable must be set to Ignite installation
> directory.
> * To build ODBC driver you need to install ODBC Driver Manager on you
> system.
> Apache Ignite has been tested with UnixODBC. Make sure that you install
> development
> version of the driver manager which contains header files that are
> necessary for
> building a driver.
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>
Re: ODBC driver compile error
Posted by bagsiur <ra...@gmail.com>.
I have libssl-dev in newest version. Before compile I install gcc g++ make
automake libtool m4 libssl-dev unixodbc unixodbc-dev
So I have all dependencies from DEVNOTES.txt :
* GCC, g++, autotools, automake, and libtool must be installed
* Java Development Kit (JDK) must be installed:
https://java.com/en/download/index.jsp
* JAVA_HOME environment variable must be set pointing to Java installation
directory.
* IGNITE_HOME environment variable must be set to Ignite installation
directory.
* To build ODBC driver you need to install ODBC Driver Manager on you
system.
Apache Ignite has been tested with UnixODBC. Make sure that you install
development
version of the driver manager which contains header files that are
necessary for
building a driver.
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: ODBC driver compile error
Posted by Igor Sapego <is...@apache.org>.
You need to install developer libraries of OpenSSL on
your system now to compile ODBC, as it supports
OpenSSL now.
Best Regards,
Igor
On Thu, Mar 1, 2018 at 1:38 PM, bagsiur <ra...@gmail.com>
wrote:
> Hello,
>
> I try to compile odbc but I have fallowing errors:
>
> So I make fallowing commands:
>
> 1. cd ./modules/platforms/cpp
> 2. libtoolize && aclocal && autoheader && automake --add-missing &&
> autoreconf
> 3. ./configure
> 4. make
>
> Errors are:
>
> error: 'ignite::odbc::ssl::OPENSSL_init_ssl' declared as an 'inline'
> variable
> error: expression list treated as compound expression in initializer
> [-fpermissive]
> error: expected ',' or ';' before '{' token
> error: variable or field 'OPENSSL_init_ssl' declared void
> error: 'ignite::odbc::ssl::OPENSSL_init_ssl' cannot be used as a function
> error: 'SSL_CTRL_OPTIONS' was not declared in this scope
>
> My Ignite version is 2.5 downloaded by (today):
>
> git clone https://git-wip-us.apache.org/repos/asf/ignite
>
> Please help me.
>
>
>
>
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>