Should be built with -lm
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(
return 0;
}
Output:
$ gcc test.c -ltrio
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
collect2: error: ld returned 1 exit status
This also causes builds of mednafen package to fail.
This bug was fixed in the package libtrio - 1.16+dfsg1-3ubuntu1
--------------- 3ubuntu1) wily; urgency=medium
libtrio (1.16+dfsg1-
* Link with math library using "-lm" linker option (LP: #1371782).
-- Till Kamppeter <email address hidden> Wed, 22 Jul 2015 14:02:45 -0300