Re: ODBC driver build error

2018-12-02 Thread Ray
Hello Ilya,

The thing is I just want to apply a few bug fixes to the Ignite 2.6.
The nightly release will include all the new tickets in master since 2.6 if
my understanding is correct.





--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: ODBC driver build error

2018-11-30 Thread Ilya Kasnacheev
Hello!

You will have much easier time just taking a pre-built installer out of
nightly build:
https://ci.ignite.apache.org/viewLog.html?buildId=lastSuccessful&buildTypeId=Releases_NightlyRelease_RunApacheIgniteNightlyRelease&tab=artifacts&guest=1#!-oll7z3tvqsdk,-1fllqn9a26ew6,1e6erfmy67dj4,enpgjwyte3hs

Regards,
-- 
Ilya Kasnacheev


пт, 30 нояб. 2018 г. в 05:53, Ray :

> Thank you for the reply Igor,
>
> After adding legacy_stdio_definitions.lib in the linker's input, I built
> the
> ODBC driver successfully.
>
> I want to build ODBC driver myself because I want to apply this ticket to
> Ignite 2.6 because 2.7 is not yet released.
>
> https://issues.apache.org/jira/browse/IGNITE-8930
>
> By the way, I followed the instructions in the
> modules/platforms/cpp/DEVNOTES.txt, I think this document should be
> updated.
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>


Re: ODBC driver build error

2018-11-30 Thread Igor Sapego
You are right, this document needs update. I'll file
a ticket for this task.

Best Regards,
Igor


On Fri, Nov 30, 2018 at 5:53 AM Ray  wrote:

> Thank you for the reply Igor,
>
> After adding legacy_stdio_definitions.lib in the linker's input, I built
> the
> ODBC driver successfully.
>
> I want to build ODBC driver myself because I want to apply this ticket to
> Ignite 2.6 because 2.7 is not yet released.
>
> https://issues.apache.org/jira/browse/IGNITE-8930
>
> By the way, I followed the instructions in the
> modules/platforms/cpp/DEVNOTES.txt, I think this document should be
> updated.
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>


Re: ODBC driver build error

2018-11-29 Thread Ray
Thank you for the reply Igor,

After adding legacy_stdio_definitions.lib in the linker's input, I built the
ODBC driver successfully.

I want to build ODBC driver myself because I want to apply this ticket to
Ignite 2.6 because 2.7 is not yet released.

https://issues.apache.org/jira/browse/IGNITE-8930

By the way, I followed the instructions in the
modules/platforms/cpp/DEVNOTES.txt, I think this document should be updated.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: ODBC driver build error

2018-11-29 Thread Igor Sapego
By the way, you do know that there is a pre-built binary installer
in Ignite binary release, right? Or do you want to build ODBC by
yourself for some reason?

Best Regards,
Igor


On Thu, Nov 29, 2018 at 12:50 PM Igor Sapego  wrote:

> This is a known issue of broken backward compatibility of MSVC.
> See [1] for details and solution.
>
> [1] -
> https://apacheignite-sql.readme.io/docs/odbc-driver#section-building-on-windows
>
> Best Regards,
> Igor
>
>
> On Thu, Nov 29, 2018 at 9:22 AM Ray  wrote:
>
>> Hi Igor,
>>
>> Thanks for the reply.
>> I installed OpenSSL 1.0.2 instead, but there's another error.
>>
>> SeverityCodeDescription Project FileLine
>> Suppression State
>> Error   LNK1120 1 unresolved externals  odbc
>>
>> D:\ignite-ignite-2.6\modules\platforms\cpp\project\vs\Win32\Debug\ignite.odbc.dll
>> 1
>> Error   LNK2019 unresolved external symbol __vsnwprintf_s referenced in
>> function _StringVPrintfWorkerW@20   odbc
>>
>> D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\project\vs\odbccp32.lib(dllload.obj)
>> 1
>>
>>
>>
>>
>> --
>> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>>
>


Re: ODBC driver build error

2018-11-29 Thread Igor Sapego
This is a known issue of broken backward compatibility of MSVC.
See [1] for details and solution.

[1] -
https://apacheignite-sql.readme.io/docs/odbc-driver#section-building-on-windows

Best Regards,
Igor


On Thu, Nov 29, 2018 at 9:22 AM Ray  wrote:

> Hi Igor,
>
> Thanks for the reply.
> I installed OpenSSL 1.0.2 instead, but there's another error.
>
> SeverityCodeDescription Project FileLine
> Suppression State
> Error   LNK1120 1 unresolved externals  odbc
>
> D:\ignite-ignite-2.6\modules\platforms\cpp\project\vs\Win32\Debug\ignite.odbc.dll
> 1
> Error   LNK2019 unresolved external symbol __vsnwprintf_s referenced in
> function _StringVPrintfWorkerW@20   odbc
>
> D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\project\vs\odbccp32.lib(dllload.obj)
> 1
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>


Re: ODBC driver build error

2018-11-28 Thread Ray
Hi Igor,

Thanks for the reply.
I installed OpenSSL 1.0.2 instead, but there's another error.

SeverityCodeDescription Project FileLineSuppression 
State
Error   LNK1120 1 unresolved externals  odbc
D:\ignite-ignite-2.6\modules\platforms\cpp\project\vs\Win32\Debug\ignite.odbc.dll
1   
Error   LNK2019 unresolved external symbol __vsnwprintf_s referenced in
function _StringVPrintfWorkerW@20   odbc
D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\project\vs\odbccp32.lib(dllload.obj)
1   




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: ODBC driver build error

2018-11-28 Thread Igor Sapego
It seems like you are using OpenSSL 1.1, which is not yet supported.
You can use 1.0 instead for now.

Best Regards,
Igor


On Wed, Nov 28, 2018 at 11:53 AM Ray  wrote:

> I try to build ODBC driver on Windows Visual Studio 2017.
> I installed these dependencies
> Windows SDK 7.1
> JDK 8
> Win64 OpenSSL v1.1.1a from https://slproweb.com/products/Win32OpenSSL.html
>
> I set OPENSSL_HOME=C:\Program Files\OpenSSL-Win64
>
> When I try to build, there's these error logs.
>
> SeverityCodeDescription Project FileLine
> Suppression State
> Error   C7525   inline variables require at least '/std:c++17'  odbc
>
> d:\ignite-ignite-2.6\modules\platforms\cpp\odbc\include\ignite\odbc\ssl\ssl_bindings.h
> 133
> Error (active)  E0325   inline specifier allowed on function declarations
> only
> odbc
>
> D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\include\ignite\odbc\ssl\ssl_bindings.h
> 133
> Error (active)  E0018   expected a ')'  odbc
>
> D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\include\ignite\odbc\ssl\ssl_bindings.h
> 133
> Error (active)  E0065   expected a ';'  odbc
>
> D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\include\ignite\odbc\ssl\ssl_bindings.h
> 134
> Error (active)  E0135   namespace "ignite::odbc::ssl" has no member
> "SSL_set_tlsext_host_name_" odbc
>
> D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
> 80
> Error (active)  E0135   namespace "ignite::odbc::ssl" has no member
> "SSL_free_"
> odbc
>
> D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
> 86
> Error (active)  E0135   namespace "ignite::odbc::ssl" has no member
> "SSL_set_connect_state_"odbc
>
> D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
> 91
> Error (active)  E0135   namespace "ignite::odbc::ssl" has no member
> "SSL_free_"
> odbc
>
> D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
> 97
> Error (active)  E0135   namespace "ignite::odbc::ssl" has no member
> "SSL_get_peer_certificate"  odbc
>
> D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
> 103
> Error (active)  E0135   namespace "ignite::odbc::ssl" has no member
> "X509_free"
> odbc
>
> D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
> 105
> Error (active)  E0135   namespace "ignite::odbc::ssl" has no member
> "SSL_free_"
> odbc
>
> D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
> 111
> Error (active)  E0135   namespace "ignite::odbc::ssl" has no member
> "SSL_free_"
> odbc
>
> D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
> 124
> Error (active)  E0135   namespace "ignite::odbc::ssl" has no member
> "SSL_write_"odbc
>
> D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
> 152
> Error (active)  E0135   namespace "ignite::odbc::ssl" has no member
> "SSL_pending_"  odbc
>
> D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
> 172
> Error (active)  E0135   namespace "ignite::odbc::ssl" has no member
> "SSL_read_"
> odbc
>
> D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
> 180
> Error (active)  E0109   expression preceding parentheses of apparent call
> must
> have (pointer-to-) function typeodbc
>
> D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
> 206
> Error (active)  E0109   expression preceding parentheses of apparent call
> must
> have (pointer-to-) function typeodbc
>
> D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
> 208
> Error (active)  E0135   namespace "ignite::odbc::ssl" has no member
> "SSLv23_client_method_" odbc
>
> D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
> 216
> Error (active)  E0020   identifier "SSL_CTRL_OPTIONS" is undefined
> odbc
>
> D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
> 237
> Error (active)  E0135   namespace "ignite::odbc::ssl" has no member
> "BIO_new_ssl_connect"   odbc
>
> D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
> 292
> Error (active)  E0135   namespace "ignite::odbc::ssl" has no member
> "BIO_set_nbio_" odbc
>
> D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
> 301
> Error (active)  E0135   namespace "ignite::odbc::ssl" has no member
> "BIO_set_conn_hostname_"odbc
>
> D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
> 315
> Error (active)  E0135   namespace "ignite::odbc::ssl" has no member
> "BIO_free_all"  odbc
>
> D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
> 320
> Error (active)  E0135   namespace "ignite::odbc::ssl" has no member
> "BIO_get_ssl_"  odbc
>
> D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
> 326

ODBC driver build error

2018-11-28 Thread Ray
I try to build ODBC driver on Windows Visual Studio 2017.
I installed these dependencies 
Windows SDK 7.1
JDK 8
Win64 OpenSSL v1.1.1a from https://slproweb.com/products/Win32OpenSSL.html

I set OPENSSL_HOME=C:\Program Files\OpenSSL-Win64

When I try to build, there's these error logs. 

SeverityCodeDescription Project FileLineSuppression 
State
Error   C7525   inline variables require at least '/std:c++17'  odbc
d:\ignite-ignite-2.6\modules\platforms\cpp\odbc\include\ignite\odbc\ssl\ssl_bindings.h
133 
Error (active)  E0325   inline specifier allowed on function declarations only
odbc
D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\include\ignite\odbc\ssl\ssl_bindings.h
133 
Error (active)  E0018   expected a ')'  odbc
D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\include\ignite\odbc\ssl\ssl_bindings.h
133 
Error (active)  E0065   expected a ';'  odbc
D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\include\ignite\odbc\ssl\ssl_bindings.h
134 
Error (active)  E0135   namespace "ignite::odbc::ssl" has no member
"SSL_set_tlsext_host_name_" odbc
D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
80  
Error (active)  E0135   namespace "ignite::odbc::ssl" has no member "SSL_free_"
odbc
D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
86  
Error (active)  E0135   namespace "ignite::odbc::ssl" has no member
"SSL_set_connect_state_"odbc
D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
91  
Error (active)  E0135   namespace "ignite::odbc::ssl" has no member "SSL_free_"
odbc
D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
97  
Error (active)  E0135   namespace "ignite::odbc::ssl" has no member
"SSL_get_peer_certificate"  odbc
D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
103 
Error (active)  E0135   namespace "ignite::odbc::ssl" has no member "X509_free"
odbc
D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
105 
Error (active)  E0135   namespace "ignite::odbc::ssl" has no member "SSL_free_"
odbc
D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
111 
Error (active)  E0135   namespace "ignite::odbc::ssl" has no member "SSL_free_"
odbc
D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
124 
Error (active)  E0135   namespace "ignite::odbc::ssl" has no member
"SSL_write_"odbc
D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
152 
Error (active)  E0135   namespace "ignite::odbc::ssl" has no member
"SSL_pending_"  odbc
D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
172 
Error (active)  E0135   namespace "ignite::odbc::ssl" has no member "SSL_read_"
odbc
D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
180 
Error (active)  E0109   expression preceding parentheses of apparent call must
have (pointer-to-) function typeodbc
D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
206 
Error (active)  E0109   expression preceding parentheses of apparent call must
have (pointer-to-) function typeodbc
D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
208 
Error (active)  E0135   namespace "ignite::odbc::ssl" has no member
"SSLv23_client_method_" odbc
D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
216 
Error (active)  E0020   identifier "SSL_CTRL_OPTIONS" is undefined  odbc
D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
237 
Error (active)  E0135   namespace "ignite::odbc::ssl" has no member
"BIO_new_ssl_connect"   odbc
D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
292 
Error (active)  E0135   namespace "ignite::odbc::ssl" has no member
"BIO_set_nbio_" odbc
D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
301 
Error (active)  E0135   namespace "ignite::odbc::ssl" has no member
"BIO_set_conn_hostname_"odbc
D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
315 
Error (active)  E0135   namespace "ignite::odbc::ssl" has no member
"BIO_free_all"  odbc
D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
320 
Error (active)  E0135   namespace "ignite::odbc::ssl" has no member
"BIO_get_ssl_"  odbc
D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
326 
Error (active)  E0135   namespace "ignite::odbc::ssl" has no member
"BIO_free_all"  odbc
D:\ignite-ignite-2.6\modules\platforms\cpp\odbc\src\ssl\secure_socket_client.cpp
331 
Error (active)  E0135   namespace "ignite::odbc::ssl" has no member
"SSL_connect_"  odbc
D:\ignite-ignite-2.6\modules\platforms\