[Buildroot] [PATCH] package/mariadb: fix openssl RMD160 requirement
Thomas Perale
thomas.perale at mind.be
Thu Sep 11 19:19:48 UTC 2025
In reply of:
> On the autobuilder the mariadb package fails to build when the
> BR2_PACKAGE_LIBOPENSSL_ENABLE_RMD160 variable is not set.
>
> See the following autobuilder error:
>
> ```
> /workdir/instance-0/output-1/build/mariadb-10.11.11/libmariadb/libmariadb/secure/openssl_crypt.c: In function 'ma_hash_get_algorithm':
> /workdir/instance-0/output-1/build/mariadb-10.11.11/libmariadb/libmariadb/secure/openssl_crypt.c:40:12: error: implicit declaration of function 'EVP_ripemd160'; did you mean 'LN_ripemd160'? [-Wimplicit-function-declaration]
> 40 | return EVP_ripemd160();
> | ^~~~~~~~~~~~~
> | LN_ripemd160
> /workdir/instance-0/output-1/build/mariadb-10.11.11/libmariadb/libmariadb/secure/openssl_crypt.c:40:12: error: returning 'int' from a function with return type 'const EVP_MD *' {aka 'const struct evp_md_st *'} makes pointer from integer without a cast [-Wint-conversion]
> 40 | return EVP_ripemd160();
> | ^~~~~~~~~~~~~~~
> ```
>
> This error can be reproduced with the following config:
>
> ```
> cat <<EOF >.config
> BR2_arm=y
> BR2_cortex_a7=y
> BR2_TOOLCHAIN_EXTERNAL=y
> BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
> BR2_PACKAGE_LIBOPENSSL=y
> # BR2_PACKAGE_LIBOPENSSL_ENABLE_RMD160 is not set
> BR2_PACKAGE_MARIADB=y
> EOF
> make olddefconfig
> make mariadb
> ```
>
> This patch adds a requirement to the RMD160 crypto for the MariaDB
> package.
>
> Fixes: https://autobuild.buildroot.org/results/f2b/f2b749cb7019856c5434c27987e8bfb2dc179cda
> Signed-off-by: Thomas Perale <thomas.perale at mind.be>
Applied to 2025.02.x & 2025.05.x. Thanks
> ---
> Tested building by removing all the other crypto except DES & RMD160. It
> builds on that case.
> ---
> package/mariadb/Config.in | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/package/mariadb/Config.in b/package/mariadb/Config.in
> index acedd1da9d..142ec815ed 100644
> --- a/package/mariadb/Config.in
> +++ b/package/mariadb/Config.in
> @@ -12,6 +12,7 @@ config BR2_PACKAGE_MARIADB
> select BR2_PACKAGE_NCURSES
> select BR2_PACKAGE_OPENSSL
> select BR2_PACKAGE_LIBOPENSSL_ENABLE_DES if BR2_PACKAGE_LIBOPENSSL
> + select BR2_PACKAGE_LIBOPENSSL_ENABLE_RMD160 if BR2_PACKAGE_LIBOPENSSL
> select BR2_PACKAGE_PCRE2
> help
> MariaDB is one of the most popular database servers in the
> --
> 2.50.1
>
> _______________________________________________
> buildroot mailing list
> buildroot at buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
More information about the buildroot
mailing list