From b3f5af88e8f76ef48d923e1bccc0d6d2f6b6b947 Mon Sep 17 00:00:00 2001 From: Charles Roelli Date: Wed, 30 Jul 2025 15:16:59 +0200 Subject: [PATCH] gnu: tcp-wrappers: Fix build with gcc-14. * gnu/packages/networking.scm (tcp-wrappers)[arguments]<#:phases>{build}: Add more flags to the gcc call. Change-Id: I5a06b00a4e51b5511f8fc8df9dedf803709189f0 Signed-off-by: Andreas Enge --- gnu/packages/networking.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index 9dc4b24cd04..1ee7d342380 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -1412,7 +1412,13 @@ or server shell scripts with network connections.") (lambda _ (chmod "." #o755) ;; Upstream doesn't generate a shared library. So we have to do it. - (setenv "CC" "gcc -fno-builtin -fPIC") + (setenv "CC" (string-join '("gcc" + "-fno-builtin" + "-fPIC" + "-Wno-implicit-function-declaration" + "-Wno-implicit-int" + "-Wno-return-mismatch") + " ")) (substitute* "Makefile" (("^(all[^\n]*)" line) (string-append line " libwrap.so\n libwrap.so: $(LIB_OBJ)\n