[Bug 103694] New: Failure building tests with gcc 7.2.1, missing libm
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sun Nov 12 06:17:49 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=103694
Bug ID: 103694
Summary: Failure building tests with gcc 7.2.1, missing libm
Product: Spice
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: spice-gtk
Assignee: spice-bugs at lists.freedesktop.org
Reporter: tristan at upstairslabs.com
When building spice-gtk with modern gcc, the tests fail to build with the
following error below.
I've tried various combinations and modifications to the tests/Makefile.am to
explicitly add `-lm` to LDADD, AM_LDADD, AM_LIBS, etc, and was still unable to
come up with a working patch, not sure what's going on here.
libtool: link: gcc -g -O2 -o test-file-transfer file-transfer.o -L/usr/lib
../src/.libs/libspice-client-glib-2.0.a -L/usr/lib/x86_64-linux-gnu/mit-krb5
/usr/lib/libgthread-2.0.so -lopus -ljpeg -lpixman-1 -lssl -lcrypto
-lpulse-mainloop-glib -lpulse -lsasl2 /usr/lib/libphodav-2.0.so
/usr/lib/libsoup-2.4.so -lxml2 /usr/lib/x86_64-linux-gnu/libsqlite3.so
-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err /usr/lib/libgio-2.0.so
/usr/lib/libgmodule-2.0.so -ldl -lz -lselinux -lresolv
/usr/lib/libgobject-2.0.so -lffi /usr/lib/libglib-2.0.so -lpcre -lpthread
-pthread
libtool: link: gcc -g -O2 -o test-pipe pipe.o -L/usr/lib
../src/.libs/libspice-client-glib-2.0.a -L/usr/lib/x86_64-linux-gnu/mit-krb5
/usr/lib/libgthread-2.0.so -lopus -ljpeg -lpixman-1 -lssl -lcrypto
-lpulse-mainloop-glib -lpulse -lsasl2 /usr/lib/libphodav-2.0.so
/usr/lib/libsoup-2.4.so -lxml2 /usr/lib/x86_64-linux-gnu/libsqlite3.so
-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err /usr/lib/libgio-2.0.so
/usr/lib/libgmodule-2.0.so -ldl -lz -lselinux -lresolv
/usr/lib/libgobject-2.0.so -lffi /usr/lib/libglib-2.0.so -lpcre -lpthread
-pthread
/usr/bin/ld: ../src/.libs/libspice-client-glib-2.0.a(lines.o): undefined
reference to symbol 'hypot@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from
command line
collect2: error: ld returned 1 exit status
--
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/20171112/9f66dfe7/attachment.html>
More information about the spice-bugs
mailing list