Should be built with -lm

Bug #1371782 reported by Sergey Basalaev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libtrio (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Affected versions:
in trusty 1.14+dfsg-2
in utopic 1.16+dfsg1-2

libtrio uses math library and should be linked with it. Current versions
are not linked with it and are unusable.

Test file:

#include <trio.h>

int main(int argc, char* argv[]) {
 trio_printf("Test\n");
 return 0;
}

Output:
$ gcc test.c -ltrio
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libtrio.so: undefined reference to `__fpclassify'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libtrio.so: undefined reference to `powl'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libtrio.so: undefined reference to `fmodl'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libtrio.so: undefined reference to `ceill'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libtrio.so: undefined reference to `log10l'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libtrio.so: undefined reference to `floorl'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libtrio.so: undefined reference to `floor'
collect2: error: ld returned 1 exit status

This also causes builds of mednafen package to fail.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libtrio - 1.16+dfsg1-3ubuntu1

---------------
libtrio (1.16+dfsg1-3ubuntu1) wily; urgency=medium

  * Link with math library using "-lm" linker option (LP: #1371782).

 -- Till Kamppeter <email address hidden> Wed, 22 Jul 2015 14:02:45 -0300

Changed in libtrio (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.