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

Summary: libSDL_mixer should be linked with -lm
Product: SDL_mixer Reporter: Hans de Goede <jwrdegoede>
Component: miscAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 1.2.11   
Hardware: Other   
OS: Linux   

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