From: Michael Tremer Date: Tue, 27 Jan 2026 11:10:57 +0000 (+0000) Subject: openvmtools: Fix build against glibc >= 2.43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f796249bd7c82b1266486b0a1e771ce3b8e30e5;p=ipfire-2.x.git openvmtools: Fix build against glibc >= 2.43 Signed-off-by: Michael Tremer --- diff --git a/lfs/openvmtools b/lfs/openvmtools index 57acb1148..6134cb4d4 100644 --- a/lfs/openvmtools +++ b/lfs/openvmtools @@ -42,7 +42,7 @@ DEPS = SERVICES = openvmtools # Fix build with GCC 15 -CFLAGS += -std=gnu17 -Wno-error=array-bounds +CFLAGS += -std=gnu17 -Wno-error=array-bounds -Wno-error=discarded-qualifiers ############################################################################### # Top-level Rules @@ -84,6 +84,11 @@ $(subst %,%_BLAKE2,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && sed -i '/^void g_free(/i #undef g_free' lib/rpcChannel/glib_stubs.c + cd $(DIR_APP) && sed -i '/^void \*g_malloc(/i #undef g_malloc' lib/rpcChannel/glib_stubs.c + cd $(DIR_APP) && sed -i '/^void \*g_malloc0(/i #undef g_malloc0' lib/rpcChannel/glib_stubs.c + cd $(DIR_APP) && sed -i '/^void \*g_realloc(/i #undef g_realloc' lib/rpcChannel/glib_stubs.c + cd $(DIR_APP) && sed -i '/^char \*g_strdup(/i #undef g_strdup' lib/rpcChannel/glib_stubs.c cd $(DIR_APP) && autoreconf -vfi cd $(DIR_APP) && ./configure \ --prefix=/usr \