Bug 607357

Summary: pkgconfig file of SDL_mixer should add -lm
Product: [Fedora] Fedora Reporter: Philip Chimento <philip.chimento>
Component: SDL_mixerAssignee: Hans de Goede <hdegoede>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: dev, hdegoede, iprikryl, thomasj
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-06-24 08:26:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Philip Chimento 2010-06-23 21:43:33 UTC
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):
1.2.11-2

How reproducible:
Compile a program which includes
PKG_CHECK_MODULES([WHATEVER], [SDL_mixer])
in its configure.ac.

Steps to Reproduce:
see above
  
Actual results:
/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

Expected results:
no error

Additional info:
Can be solved by adding
WHATEVER_LIBS="$WHATEVER_LIBS -lm"
to configure.ac.

Comment 1 Hans de Goede 2010-06-24 07:58:40 UTC
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.

Comment 2 Hans de Goede 2010-06-24 08:26:00 UTC
A fixed build is on its way to rawhide. I've also filed an upstream bug for this:
http://bugzilla.libsdl.org/show_bug.cgi?id=1010

Comment 3 Fedora Update System 2010-06-25 07:26:20 UTC
SDL_mixer-1.2.11-3.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/SDL_mixer-1.2.11-3.fc13

Comment 4 Hans de Goede 2010-06-25 07:39:16 UTC
(In reply to comment #3)
> SDL_mixer-1.2.11-3.fc13 has been submitted as an update for Fedora 13.
> http://admin.fedoraproject.org/updates/SDL_mixer-1.2.11-3.fc13    

Hi,

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.

Regards,

Hans

Comment 5 Thomas Janssen 2010-06-25 14:31:06 UTC
Ok, thanks for taking care. I will revoke the update then.