Red Hat Bugzilla – Bug 607357
pkgconfig file of SDL_mixer should add -lm
Last modified: 2010-06-25 10:31:06 EDT
Description of problem:
When compiling a program using SDL_mixer, linking halted, complaining about not being linked to -lm.
Version-Release number of selected component (if applicable):
Compile a program which includes
in its configure.ac.
Steps to Reproduce:
/usr/bin/ld: /usr/lib/libSDL_mixer.so: undefined reference to symbol 'pow@@GLIBC_2.0'
/usr/bin/ld: note: 'pow@@GLIBC_2.0' is defined in DSO /lib/libm.so.6 so try adding it to the linker command line
Can be solved by adding
Note that the -lm does not need to be present in pkg-config, instead SDL_mixer itself should be directly linked against -lm.
I'll take care of fixing this.
A fixed build is on its way to rawhide. I've also filed an upstream bug for this:
SDL_mixer-1.2.11-3.fc13 has been submitted as an update for Fedora 13.
(In reply to comment #3)
> SDL_mixer-1.2.11-3.fc13 has been submitted as an update for Fedora 13.
It really is not necessary to do an F-13 update for this, as it only causes
problems when compiling things and people compiling things / other packages which do need to issue an update for F-13 should be able to work around this easily.
Ok, thanks for taking care. I will revoke the update then.