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 2743

Summary: building against libmad is broken (with fix)
Product: SDL_mixer Reporter: Ozkan Sezer <sezeroz>
Component: miscAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2 CC: email, fran, juan_memo19, prefer.irc, sezeroz
Version: 2.0.0   
Hardware: All   
OS: All   
Attachments: build fix for mp3-mad
build fix for mp3-mad (updated)

Description Ozkan Sezer 2014-09-30 18:52:09 UTC
Created attachment 1887 [details]
build fix for mp3-mad

Configuring current hg with --disable-music-mp3-smpeg --enable-music-mp3-mad-gpl
fails compilation:

mixer.c: In function ‘Mix_LoadWAV_RW’:
mixer.c:655: warning: assignment makes pointer from integer without a cast
build/.libs/libSDL2_mixer.so: undefined reference to `Mix_LoadMP3_RW'
collect2: ld returned 1 exit status
build/.libs/libSDL2_mixer.so: undefined reference to `Mix_LoadMP3_RW'

The attached simple patch fixes this.
Comment 1 Ozkan Sezer 2014-09-30 18:57:39 UTC
*** Bug 2744 has been marked as a duplicate of this bug. ***
Comment 2 Francisco de la Peña 2014-10-01 14:12:42 UTC
This patch looks better than the proposed at bug #2399 (duplicate of this).
Comment 3 Ozkan Sezer 2014-10-02 06:50:48 UTC
Created attachment 1888 [details]
build fix for mp3-mad (updated)

Updated the patch to regenerate configure and also set MIX_INIT_MP3 in mixer.c for libmad-enabled builds.
Comment 4 Tobias Leich 2015-07-24 18:58:33 UTC
*** Bug 3069 has been marked as a duplicate of this bug. ***
Comment 5 Tobias Leich 2015-07-24 19:00:09 UTC
I'm bumping priority because it affects all debian-esque systems.
Comment 6 Sam Lantinga 2015-08-02 04:59:09 UTC
I changed the configure.in patch, please check if this works.
https://hg.libsdl.org/SDL_mixer/rev/1aca2b6d570f

Thanks!
Comment 7 Francisco de la Peña 2015-08-02 05:15:55 UTC
*** Bug 2399 has been marked as a duplicate of this bug. ***
Comment 8 Francisco de la Peña 2015-08-02 05:36:35 UTC
Works for me, thanks!
Comment 9 Sam Lantinga 2015-08-02 18:47:03 UTC
Great, thanks!
Comment 10 Sam Lantinga 2017-10-13 05:32:46 UTC
*** Bug 3119 has been marked as a duplicate of this bug. ***