We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1010 - libSDL_mixer should be linked with -lm
Summary: libSDL_mixer should be linked with -lm
Status: RESOLVED FIXED
Alias: None
Product: SDL_mixer
Classification: Unclassified
Component: misc (show other bugs)
Version: 1.2.11
Hardware: Other Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-24 01:24 UTC by Hans de Goede
Modified: 2011-02-17 13:21 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hans de Goede 2010-06-24 01:24:22 UTC
Hi,

SDL_mixer uses pow (in timidity/instrum.c), so it should be linked with -lm. As SDL_mixer links against SDL, which in turn is linked against -lm this is normally not a problem. But with the recent changes to gnu ld's rule form implicit dso linkage this can cause compile errors for programming using SDL_mixer, see:
https://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking
https://fedoraproject.org/wiki/UnderstandingDSOLinkChange
https://bugzilla.redhat.com/show_bug.cgi?id=607357

Regards,

Hans
Comment 1 Sam Lantinga 2011-02-17 13:21:03 UTC
This is fixed, thanks!
http://hg.libsdl.org/SDL_mixer/rev/db31b63abab9