https://gitlab.gnome.org/World/dLeyna/-/commit/8c8e17a77dc666738a6f1c309b46056dd25fe576 From: Brahmajit Das Date: Mon, 5 Aug 2024 07:07:37 +0000 Subject: [PATCH] Fix implicit declaration of basename On musl there is only one implementation of basename, which comes from the libgen.h header file. However, in this case the code is using GNU implementation of basename, which is not available on musl. This results in build error: ../dLeyna-v0.8.3/libdleyna/core/log.c: In function 'dleyna_log_init': ../dLeyna-v0.8.3/libdleyna/core/log.c:156:17: error: implicit declaration of function 'basename'; did you mean 'g_basename'? [-Wimplicit-function-declaration] 156 | openlog(basename(program), option, LOG_DAEMON); | ^~~~~~~~ | g_basename ../dLeyna-v0.8.3/libdleyna/core/log.c:156:17: error: passing argument 1 of 'openlog' makes pointer from integer without a cast [-Wint-conversion] 156 | openlog(basename(program), option, LOG_DAEMON); | ^~~~~~~~~~~~~~~~~ | | | int In file included from ../dLeyna-v0.8.3/libdleyna/core/log.h:27, from ../dLeyna-v0.8.3/libdleyna/core/log.c:30: Please also reffer: https://bugs.gentoo.org/936939 Co-authored-by: Jens Georg Signed-off-by: Brahmajit Das --- a/libdleyna/core/log.c +++ b/libdleyna/core/log.c @@ -153,7 +153,7 @@ void dleyna_log_init(const char *program, const char *version) s_log_context.log_domain = g_strdup(program); prv_set_flags_from_param(); - openlog(basename(program), option, LOG_DAEMON); + openlog(NULL, option, LOG_DAEMON); old = setlogmask(LOG_MASK(LOG_INFO)); syslog(LOG_INFO, "dLeyna core version %s", VERSION); -- GitLab