Bug 607357 - pkgconfig file of SDL_mixer should add -lm
Summary: pkgconfig file of SDL_mixer should add -lm
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: SDL_mixer (Show other bugs)
(Show other bugs)
Version: 13
Hardware: All Linux
low
medium
Target Milestone: ---
Assignee: Hans de Goede
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-06-23 21:43 UTC by Philip Chimento
Modified: 2010-06-25 14:31 UTC (History)
4 users (show)

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: ---


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.