maria-developers team mailing list archive
-
maria-developers team
-
Mailing list archive
-
Message #11420
Re: Compiling default MariaDB with OpenSSL in Windows
Hi,
you cannot build because of the build for OpenSSL on Windows was broken, until I fixed it couple of minutes ago. We do not build with OpenSSL often on Windows, so it can be broken from time to time.
I had no success Shining Light distro. Link is fine, but there are runtime errors as described in https://www.openssl.org/docs/faq.html#PROG3 . I did not try the workaround with applink.c that they propose.
What worked for me however, was a static openssl build using vcpkg, a Windows library manager from https://github.com/Microsoft/vcpkg
The whole procedure, including building vcpkg itself (instructions assume cmd command prompt), if you would like to right now. Or you can wait until next 10.3 comes out
1.Bootstrap vcpkg
C:
cd \
git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
bootstrap-vcpkg.bat
2.Install static openssl for x64
vcpkg install openssl-windows:x64-windows-static
3.Clone a fresh 10.3
cd \
git clone https://github.com/mariadb/server -b 10.3 10.3
4. Build with vcpkg-provided openssl
cd 10.3 && mkdir bld && cd bld
cmake -G "Visual Studio 15 Win64" .. -DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static -DWITH_SSL=system
cmake --build . --config RelWithDebinfo --target package -- -m
From: Braiam Peguero
Sent: Thursday, August 23, 2018 10:03 PM
To: maria-developers@xxxxxxxxxxxxxxxxxxx
Subject: [Maria-developers] 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
_______________________________________________
Mailing list: https://launchpad.net/~maria-developers
Post to : maria-developers@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~maria-developers
More help : https://help.launchpad.net/ListHelp
Follow ups
References