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 4489 - sdl2_mixer 2.0.4 doesn't correctly find static mpg123 library (MSYS2/MinGW-w64)
Summary: sdl2_mixer 2.0.4 doesn't correctly find static mpg123 library (MSYS2/MinGW-w64)
Status: RESOLVED ABANDONED
Alias: None
Product: SDL_mixer
Classification: Unclassified
Component: misc (show other bugs)
Version: 2.0.4
Hardware: x86_64 Windows 10
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-05 12:31 UTC by Joshua Morrison
Modified: 2020-11-02 11:51 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Morrison 2019-02-05 12:31:29 UTC
I'm having some issues getting sdl2_mixer to configure correctly with MP3 support via mpg123. Specifically, it keeps saying it can't find mpg123_replace_reader_handle() in -lmpg123. I can verify that that function should be available in that library, so I'm not sure what's going wrong. Any thoughts?

Build Environment:
- MSYS2 (latest version) with GCC 8.2.1 and MinGW-w64 7.0.0-git
- SDL2 2.0.9 (static libraries only)
- mpg123 1.25.10 (static libraries only)
- Configure call:
../src/configure --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 \
--target=x86_64-w64-mingw32 --prefix=$X_WORKDIR_ROOT/dest --disable-shared \
--disable-music-ogg-shared --disable-music-flac-shared \
--disable-music-mp3-mpg123-shared

I'll get a full configure output later in the day, I'm currently a little too busy to do so.
Comment 1 Joshua Morrison 2019-02-06 00:32:25 UTC
Here's the output of the configure call. The script does work outside of not properly detecting mpg123:

+ ../src/configure --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/d/mingw-distro-setup/dest --disable-shared --disable-music-ogg-shared --disable-music-flac-shared --enable-music-mp3 --enable-music-mp3-mpg123 --disable-music-mp3-mpg123-shared
configure: loading site script /etc/config.site
checking build system type... x86_64-w64-mingw32
checking host system type... x86_64-w64-mingw32
checking for x86_64-w64-mingw32-gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... c:/mingw/x86_64-w64-mingw32/bin/ld.exe
checking if the linker (c:/mingw/x86_64-w64-mingw32/bin/ld.exe) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /c/mingw/bin/nm
checking the name lister (/c/mingw/bin/nm) interface... BSD nm
checking whether ln -s works... no, using cp -pR
checking the maximum length of command line arguments... 8192
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for c:/mingw/x86_64-w64-mingw32/bin/ld.exe option to reload object files... -r
checking for x86_64-w64-mingw32-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-w64-mingw32-ar... ar
checking for x86_64-w64-mingw32-strip... no
checking for strip... strip
checking for x86_64-w64-mingw32-ranlib... no
checking for ranlib... ranlib
checking command to parse /c/mingw/bin/nm output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... no
checking for x86_64-w64-mingw32-as... as
checking for x86_64-w64-mingw32-dlltool... no
checking for dlltool... dlltool
checking for x86_64-w64-mingw32-objdump... objdump
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (c:/mingw/x86_64-w64-mingw32/bin/ld.exe) supports shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for x86_64-w64-mingw32-gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... yes
checking for windres... windres
checking for an ANSI C-conforming const... yes
checking for GCC -MMD -MT option... yes
checking for x86_64-w64-mingw32-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for SDL... no
checking for sdl2-config... /d/mingw-distro-setup/dest/bin/sdl2-config
checking for SDL - version >= 2.0.7... yes
checking for pow in -lm... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for setbuf... yes
checking for GCC -fvisibility=hidden option... yes
checking for fork... no
checking for vfork... no
checking for MODPLUG... no
checking libmodplug/modplug.h usability... no
checking libmodplug/modplug.h presence... no
checking for libmodplug/modplug.h... no
checking for ModPlug_Load in -lmodplug... no
configure: WARNING: *** Unable to find ModPlug library (http://modplug-xmms.sourceforge.net/)
configure: WARNING: MOD support disabled
checking fluidsynth.h usability... no
checking fluidsynth.h presence... no
checking for fluidsynth.h... no
checking for fluid_player_add_mem in -lfluidsynth... no
configure: WARNING: *** Unable to find FluidSynth library (http://www.fluidsynth.org/)
configure: WARNING: FluidSynth support disabled
checking vorbis/vorbisfile.h usability... yes
checking vorbis/vorbisfile.h presence... yes
checking for vorbis/vorbisfile.h... yes
checking for ov_open_callbacks in -lvorbisfile... yes
checking FLAC/export.h usability... yes
checking FLAC/export.h presence... yes
checking for FLAC/export.h... yes
checking for libflac so-name version >= 8... yes
checking FLAC/stream_decoder.h usability... yes
checking FLAC/stream_decoder.h presence... yes
checking for FLAC/stream_decoder.h... yes
checking for FLAC__stream_decoder_new in -lFLAC... no
checking mpg123.h usability... yes
checking mpg123.h presence... yes
checking for mpg123.h... yes
checking for mpg123_replace_reader_handle in -lmpg123... no
configure: WARNING: *** Unable to find mpg123 library (https://www.mpg123.de)
configure: WARNING: mpg123 support disabled
configure: WARNING: MP3 support disabled
checking for OPUSFILE... no
checking opus/opusfile.h usability... no
checking opus/opusfile.h presence... no
checking for opus/opusfile.h... no
checking for op_open_callbacks in -lopusfile... no
configure: WARNING: *** Unable to find opusfile library (http://opus-codec.org/)
configure: creating ./config.status
config.status: executing libtool commands
configure: creating ./config.status
config.status: creating Makefile
config.status: creating SDL2_mixer.spec
config.status: creating SDL2_mixer.pc
config.status: executing libtool commands
config.status: executing default commands
Comment 2 Ozkan Sezer 2020-10-25 21:06:32 UTC
Is this this an issue?

If it is, we'll need the relevant portions of config.log
where it fails to see mpg123_replace_reader_handle()
Comment 3 Ozkan Sezer 2020-11-02 11:51:11 UTC
No answer from issue reported -> abandoned.