Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 570804 - media-libs/sdl2-mixer-2.0.1: multiple definition of `Mix_LoadMP3_RW'
Summary: media-libs/sdl2-mixer-2.0.1: multiple definition of `Mix_LoadMP3_RW'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-04 03:10 UTC by Erik Zeek
Modified: 2016-01-05 00:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log. (media-libs:sdl2-mixer-2.0.1:20160104-030126.log.gz,8.52 KB, application/gzip)
2016-01-04 03:10 UTC, Erik Zeek
Details
emerge --info '=media-libs/sdl2-mixer-2.0.1::gentoo' (emerge-info.txt,14.08 KB, text/plain)
2016-01-04 03:11 UTC, Erik Zeek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Zeek 2016-01-04 03:10:21 UTC
Created attachment 421838 [details]
Build log.

The file, build/.libs/load_mp3.o, occurs more than once in the link command.

/bin/sh ./libtool --mode=link x86_64-pc-linux-gnu-gcc -m32 -o build/libSDL2_mixer.la build/effect_position.lo build/effect_stereoreverse.lo build/effects_internal.lo build/load_aiff.lo build/load_voc.lo build/mixer.lo build/music.lo build/music_cmd.lo build/wavestream.lo build/dynamic_mod.lo build/music_mod.lo build/dynamic_fluidsynth.lo build/fluidsynth.lo build/dynamic_ogg.lo build/load_ogg.lo build/music_ogg.lo build/dynamic_flac.lo build/load_flac.lo build/music_flac.lo build/dynamic_mp3.lo build/load_mp3.lo build/music_mad.lo build/load_mp3.lo   -Wl,-O1 -Wl,--as-needed -lSDL2 -L/usr/lib32 -lmikmod -lopenal -laudio -lpulse-simple -lpulse -lasound -lm -lfluidsynth -lvorbisfile -lvorbis -lFLAC -L/usr/lib64 -lsmpeg2 -L/usr/lib32 -lSDL2 -lmad -lm -no-undefined -rpath /usr/lib32 -release 2.0 -version-info 0:1:0
libtool: link: x86_64-pc-linux-gnu-gcc -m32 -shared  build/.libs/effect_position.o build/.libs/effect_stereoreverse.o build/.libs/effects_internal.o build/.libs/load_aiff.o build/.libs/load_voc.o build/.libs/mixer.o build/.libs/music.o build/.libs/music_cmd.o build/.libs/wavestream.o build/.libs/dynamic_mod.o build/.libs/music_mod.o build/.libs/dynamic_fluidsynth.o build/.libs/fluidsynth.o build/.libs/dynamic_ogg.o build/.libs/load_ogg.o build/.libs/music_ogg.o build/.libs/dynamic_flac.o build/.libs/load_flac.o build/.libs/music_flac.o build/.libs/dynamic_mp3.o build/.libs/load_mp3.o build/.libs/music_mad.o build/.libs/load_mp3.o   -L/usr/lib32 -lmikmod -lopenal -laudio -lpulse-simple -lpulse -lasound -lfluidsynth -lvorbisfile -lvorbis -lFLAC -L/usr/lib64 -lsmpeg2 -lSDL2 -lmad -lm  -m32 -Wl,-O1 -Wl,--as-needed   -Wl,-soname -Wl,libSDL2_mixer-2.0.so.0 -o build/.libs/libSDL2_mixer-2.0.so.0.0.1
build/.libs/load_mp3.o: In function `Mix_LoadMP3_RW':
/gentoo/tmp/portage/media-libs/sdl2-mixer-2.0.1/work/SDL2_mixer-2.0.1/load_mp3.c:39: multiple definition of `Mix_LoadMP3_RW'
build/.libs/load_mp3.o:/gentoo/tmp/portage/media-libs/sdl2-mixer-2.0.1/work/SDL2_mixer-2.0.1/load_mp3.c:39: first defined here
collect2: error: ld returned 1 exit status
Makefile:66: recipe for target 'build/libSDL2_mixer.la' failed
Comment 1 Erik Zeek 2016-01-04 03:11:16 UTC
Created attachment 421840 [details]
emerge --info '=media-libs/sdl2-mixer-2.0.1::gentoo'
Comment 2 Ivan Iraci 2016-01-04 17:50:48 UTC
Same here.
Comment 3 farmboy0 2016-01-04 21:16:52 UTC
Can confirm:
USE flags for the package are
[ebuild     U ~] media-libs/sdl2-mixer-2.0.1::gentoo [2.0.0-r1::gentoo] USE="flac fluidsynth mad midi mod modplug mp3 smpeg timidity vorbis wav -mikmod -playtools -static-libs -tremor" ABI_X86="32 (64) (-x32)" 9.975 KiB
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2016-01-05 00:37:31 UTC
triggered by having both smpeg and mad support enabled.  fixed in portage.