<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Failure building tests with gcc 7.2.1, missing libm"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=103694">103694</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Failure building tests with gcc 7.2.1, missing libm
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Spice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>spice-gtk
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>spice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>tristan@upstairslabs.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>