DarkflameUniverse / DarkflameServer

The main repository for the Darkflame Universe Server Emulator project.
https://www.darkflameuniverse.org/
GNU Affero General Public License v3.0
654 stars 173 forks source link

BUILD: unknown type name 'MA_HAS_CTX'; did you mean 'MA_HASH_MAX'? #1629

Closed bingyto closed 3 months ago

bingyto commented 3 months ago

Make sure you've done the following:

DarkflameServer Version

2.3.0

Platform

WSL2

Architecture

x86

Error Logs

Everything was going smoothly, until it hit 73% and said "Building C object libmariadb/CMakeFiles/client_ed25519.dir/plugins/auth/ref10/open.c.o." That's where the error started. Then it said this

In file included from /home/docotrnefario/DarkflameServer/thirdparty/mariadb-connector-cpp/libmariadb/plugins/auth/ref10/crypto_hash_sha512.h:2, from /home/docotrnefario/DarkflameServer/thirdparty/mariadb-connector-cpp/libmariadb/plugins/auth/ref10/open.c:3: /home/docotrnefario/DarkflameServer/thirdparty/mariadb-connector-cpp/libmariadb/include/ma_crypt.h:67:1: error: unknown type name ‘MA_HASH_CTX’; did you mean ‘MA_HASH_MAX’? 67 | MA_HASH_CTX *ma_hash_new(unsigned int algorithm); | ^~~~~~~~~~~ | MA_HASH_MAX /home/docotrnefario/DarkflameServer/thirdparty/mariadb-connector-cpp/libmariadb/include/ma_crypt.h:76:19: error: unknown type name ‘MA_HASH_CTX’; did you mean ‘MA_HASH_MAX’? 76 | void ma_hash_free(MA_HASH_CTX *ctx); | ^~~~~~~~~~~ | MA_HASH_MAX /home/docotrnefario/DarkflameServer/thirdparty/mariadb-connector-cpp/libmariadb/include/ma_crypt.h:89:20: error: unknown type name ‘MA_HASH_CTX’; did you mean ‘MA_HASH_MAX’? 89 | void ma_hash_input(MA_HASH_CTX *ctx, | ^~~~~~~~~~~ | MA_HASH_MAX /home/docotrnefario/DarkflameServer/thirdparty/mariadb-connector-cpp/libmariadb/include/ma_crypt.h:101:21: error: unknown type name ‘MA_HASH_CTX’; did you mean ‘MA_HASH_MAX’? 101 | void ma_hash_result(MA_HASH_CTX *ctx, unsigned char *digest); | ^~~~~~~~~~~ | MA_HASH_MAX /home/docotrnefario/DarkflameServer/thirdparty/mariadb-connector-cpp/libmariadb/include/ma_crypt.h: In function ‘ma_has ’: /home/docotrnefario/DarkflameServer/thirdparty/mariadb-connector-cpp/libmariadb/include/ma_crypt.h:148:3: error: unknown type name ‘MA_HASH_CTX’; did you mean ‘MA_HASH_MAX’? 148 | MA_HASH_CTX *ctx= NULL; | ^~~~~~~~~~~ | MA_HASH_MAX gmake[5]: *** [libmariadb/CMakeFiles/client_ed25519.dir/build.make:160: libmariadb/CMakeFiles/client_ed25519.dir/plugins/auth/ref10/open.c.o] Error 1 gmake[4]: *** [CMakeFiles/Makefile2:397: libmariadb/CMakeFiles/client_ed25519.dir/all] Error 2 gmake[3]: *** [Makefile:156: all] Error 2 gmake[2]: *** [CMakeFiles/mariadb_connector_cpp.dir/build.make:95: thirdparty/mariadb-connector-cpp/src/mariadb_connector_cpp-stamp/mariadb_connector_cpp-build] Error 2 gmake[1]: *** [CMakeFiles/Makefile2:3040: CMakeFiles/mariadb_connector_cpp.dir/all] Error 2 gmake: *** [Makefile:146: all] Error 2

And nothing else happens. It just crashes at that point. I'm using Windows 10 22H2 and i'm using WSL in order to build the server. Any idea of what could be the cause of this? I accidentally closed the thread, so contact me on discord if you know what's the cause of this. My discord nickname is bingyto

bingyto commented 3 months ago

Oh no, i accidentally closed it