← Back to team overview

maria-developers team mailing list archive

Compiling default MariaDB with OpenSSL in Windows

 

Hi,
Following Georg Richter recommendations for compiling MariaDB on
Windows 64bit, with OpenSSL using the following cmake commands:

cmake .. -DWITH_SSL=system -G "Visual Studio 15 2017 Win64"
cmake --build . --config relwithdebinfo --target package

However, several recipes fail to build, for the following errors:

"builddir\mysys_ssl\mysys_ssl.vcxproj" (default target) (8) ->
(ClCompile target) ->
  c:\users\braiam\src\mariadb-10.3.9\mysys_ssl\my_crypt.cc(42): error
C3861: 'bzero': identifier not found [C:\Users\br
aiam\src\mariadb-10.3.9\bld\mysys_ssl\mysys_ssl.vcxproj]

and

"builddir\package.vcxproj" (default target) (1) ->
"builddir\ALL_BUILD.vcxproj" (default target) (3) ->
"builddir\libmariadb\sha256_password.vcxproj" (default target) (205) ->
(Link target) ->
  sha256_pw.obj : error LNK2019: unresolved external symbol BIO_free
referenced in function auth_sha256_client [C:\User
s\braiam\src\mariadb-10.3.9\bld\libmariadb\sha256_password.vcxproj]
  sha256_pw.obj : error LNK2019: unresolved external symbol
BIO_new_mem_buf referenced in function auth_sha256_client [
builddir\libmariadb\sha256_password.vcxproj]
  sha256_pw.obj : error LNK2019: unresolved external symbol RSA_size
referenced in function auth_sha256_client [C:\User
s\braiam\src\mariadb-10.3.9\bld\libmariadb\sha256_password.vcxproj]
  sha256_pw.obj : error LNK2019: unresolved external symbol
RSA_public_encrypt referenced in function auth_sha256_clien
t [builddir\libmariadb\sha256_password.vcxproj]
  sha256_pw.obj : error LNK2019: unresolved external symbol RSA_free
referenced in function auth_sha256_client [C:\User
s\braiam\src\mariadb-10.3.9\bld\libmariadb\sha256_password.vcxproj]
  sha256_pw.obj : error LNK2019: unresolved external symbol
PEM_read_bio_RSA_PUBKEY referenced in function auth_sha256_
client [builddir\libmariadb\sha256_password.vcxproj]
  sha256_pw.obj : error LNK2019: unresolved external symbol
ERR_clear_error referenced in function auth_sha256_client [
builddir\libmariadb\sha256_password.vcxproj]
  builddir\libmariadb\RelWithDebInfo\sha256_password.dll : fatal error
LNK1120: 7 unresol
ved externals [builddir\libmariadb\sha256_password.vcxproj]

Using the OpenSSL 1.1.0i 64bit binaries from Shinning Light
Productions. Using the 1.0.2p version produce even more linking
errors. I also used FireDaemon but failed. Is there a recommended
Windows binary for compiling? Or do I need to compile my own openssl?

-- 
Braiam Peguero


Follow ups