crypto_backend build fail
Issue description
build fails with the following error
../lib/crypto_backend/crypto_openssl.c:713:6: error: call to undeclared library function 'snprintf' with type 'int (char *, unsigned long, const char *, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 713 | r = snprintf(cipher_name, sizeof(cipher_name), "%s-%d-%s", name, key_bits, mode); | ^ ../lib/crypto_backend/crypto_openssl.c:713:6: note: include the header <stdio.h> or explicitly provide a declaration for 'snprintf'
Steps for reproducing the issue
build with clang for arm64 with musl libc using under ubuntu 22.04.3
Additional info
https://www.kernel.org/pub/linux/utils/cryptsetup/v2.7/cryptsetup-2.7.2.tar.xz
Debug log
Output with --debug option:
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating makefiles....
Updating goal targets....
File 'all-am' does not exist.
File 'cryptsetup' does not exist.
File 'libcryptsetup.la' does not exist.
File 'libcrypto_backend.la' does not exist.
File 'lib/crypto_backend/libcrypto_backend_la-crypto_openssl.lo' does not exist.
Must remake target 'lib/crypto_backend/libcrypto_backend_la-crypto_openssl.lo'.
make[2]: Entering directory './cryptsetup/cryptsetup-2.7.2/build'
CC lib/crypto_backend/libcrypto_backend_la-crypto_openssl.lo
../lib/crypto_backend/crypto_openssl.c:713:6: error: call to undeclared library function 'snprintf' with type 'int (char *, unsigned long, const char *, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
713 | r = snprintf(cipher_name, sizeof(cipher_name), "%s-%d-%s", name, key_bits, mode);
| ^
../lib/crypto_backend/crypto_openssl.c:713:6: note: include the header <stdio.h> or explicitly provide a declaration for 'snprintf'
1 error generated.