[Bug 103694] Failure building tests with gcc 7.2.1, missing libm

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Nov 16 14:32:40 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=103694

Christophe Fergeau <teuf at gnome.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |teuf at gnome.org

--- Comment #1 from Christophe Fergeau <teuf at gnome.org> ---
It's spice-common/common/Makefile.am which would need to have -lm, or
src/Makefile.am as libspice-client-glib-2.0.a uses hypot() from libm

Something like
diff --git a/m4/spice-deps.m4 b/m4/spice-deps.m4
index 68e3091..1bfc116 100644
--- a/m4/spice-deps.m4
+++ b/m4/spice-deps.m4
@@ -50,6 +50,9 @@ AC_DEFUN([SPICE_CHECK_SYSDEPS], [
     AC_FUNC_ERROR_AT_LINE
     AC_FUNC_FORK
     AC_CHECK_FUNCS([dup2 floor inet_ntoa memmove memset pow sqrt])
+    AC_SEARCH_LIBS([hypot], [m], [], [
+        AC_MSG_ERROR([unable to find the hypot() function])
+    ])
 ])

applied in the spice-common subdirectory (+ autogen.sh) should help.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/spice-bugs/attachments/20171116/560cf65d/attachment.html>


More information about the spice-bugs mailing list