After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 685678 - Tests need to link with -lm
Tests need to link with -lm
Status: RESOLVED FIXED
Product: librsvg
Classification: Core
Component: general
2.36.x
Other Linux
: Normal minor
: ---
Assigned To: librsvg maintainers
librsvg maintainers
Depends on:
Blocks:
 
 
Reported: 2012-10-07 20:27 UTC by Adam Sampson
Modified: 2012-10-12 20:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Use $(LIBM) as in the main Makefile.am (568 bytes, patch)
2012-10-07 20:28 UTC, Adam Sampson
accepted-commit_now Details | Review

Description Adam Sampson 2012-10-07 20:27:37 UTC
rsvg-size-callback.c uses the floor function, but when it's built into libtest-utils, it's not linked with -lm. This causes a build failure when using --as-needed:

  CCLD   rsvg-test
/gar/bin/ld: ../tests/.libs/libtest-utils.a(rsvg-size-callback.o): undefined ref
erence to symbol 'floor@@GLIBC_2.2.5'
/gar/bin/ld: note: 'floor@@GLIBC_2.2.5' is defined in DSO /gar/lib/libm.so so tr
y adding it to the linker command line
/gar/lib/libm.so: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
Comment 1 Adam Sampson 2012-10-07 20:28:17 UTC
Created attachment 226001 [details] [review]
Use $(LIBM) as in the main Makefile.am