[MacPorts] #40605: mpd 0.17.5 fails to build due to ffmpeg AVCODEC_MAX_AUDIO_FRAME_SIZE missing
#40605: mpd 0.17.5 fails to build due to ffmpeg AVCODEC_MAX_AUDIO_FRAME_SIZE missing ----------------------+-------------------------------- Reporter: lwarxx@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Keywords: | Port: ----------------------+-------------------------------- mpd 0.17.5 fails to build with ffmpeg 2.0.1_1: {{{ :info:build mv -f src/decoder/.deps/libdecoder_plugins_a-dsdlib.Tpo src/decoder/.deps/libdecoder_plugins_a-dsdlib.Po :info:build mv -f src/decoder/.deps/libdecoder_plugins_a- dsf_decoder_plugin.Tpo src/decoder/.deps/libdecoder_plugins_a- dsf_decoder_plugin.Po :info:build depbase=`echo src/filter/chain_filter_plugin.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ :info:build /usr/bin/clang -DHAVE_CONFIG_H -I. -DNDEBUG -I./src -D_REENTRANT -isystem /opt/local/include/glib-2.0 -isystem /opt/local/lib/glib-2.0/include -isystem /opt/local/include -DSYSTEM_CONFIG_FILE_LOCATION='"/opt/local/etc/mpd.conf"' -I/opt/local/include -pipe -Os -I/opt/local/include -arch x86_64 -Wall -Wextra -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wcast-qual -Wwrite-strings -pedantic -MT src/filter/chain_filter_plugin.o -MD -MP -MF $depbase.Tpo -c -o src/filter/chain_filter_plugin.o src/filter/chain_filter_plugin.c &&\ :info:build mv -f $depbase.Tpo $depbase.Po :info:build depbase=`echo src/filter/autoconvert_filter_plugin.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ :info:build /usr/bin/clang -DHAVE_CONFIG_H -I. -DNDEBUG -I./src -D_REENTRANT -isystem /opt/local/include/glib-2.0 -isystem /opt/local/lib/glib-2.0/include -isystem /opt/local/include -DSYSTEM_CONFIG_FILE_LOCATION='"/opt/local/etc/mpd.conf"' -I/opt/local/include -pipe -Os -I/opt/local/include -arch x86_64 -Wall -Wextra -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wcast-qual -Wwrite-strings -pedantic -MT src/filter/autoconvert_filter_plugin.o -MD -MP -MF $depbase.Tpo -c -o src/filter/autoconvert_filter_plugin.o src/filter/autoconvert_filter_plugin.c &&\ :info:build mv -f $depbase.Tpo $depbase.Po :info:build src/decoder/ffmpeg_decoder_plugin.c:302:26: error: use of undeclared identifier 'AVCODEC_MAX_AUDIO_FRAME_SIZE' :info:build uint8_t aligned_buffer[(AVCODEC_MAX_AUDIO_FRAME_SIZE * 3) / 2 + 16]; :info:build ^ :info:build 1 error generated. :info:build make[1]: *** [src/decoder/libdecoder_plugins_a- ffmpeg_decoder_plugin.o] Error 1 :info:build make[1]: *** Waiting for unfinished jobs.... :info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_mpd/mpd/work/mpd-0.17.5' :info:build make: *** [all] Error 2 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_mpd/mpd/work/mpd-0.17.5' :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_mpd/mpd/work/mpd-0.17.5" && /usr/bin/make -j4 -w all :info:build Exit code: 2 :error:build org.macports.build for port mpd returned: command execution failed :debug:build Error code: CHILDSTATUS 41715 2 :debug:build Backtrace: command execution failed while executing "system -nice 0 $fullcmdstring" ("eval" body line 1) invoked from within "eval system $notty $nice \$fullcmdstring" invoked from within "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" }}} -- Ticket URL: <https://trac.macports.org/ticket/40605> MacPorts <http://www.macports.org/> Ports system for OS X
#40605: mpd 0.17.5 fails to build due to ffmpeg AVCODEC_MAX_AUDIO_FRAME_SIZE missing -----------------------+-------------------------------- Reporter: lwarxx@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: | -----------------------+-------------------------------- Comment (by lwarxx@…): Upstream bug report: http://bugs.musicpd.org/view.php?id=3805 {{{ diff -Naur mpd-0.17.5.orig/src/decoder/ffmpeg_decoder_plugin.c mpd-0.17.5/src/decoder/ffmpeg_decoder_plugin.c --- src/decoder/ffmpeg_decoder_plugin.c 2013-08-04 19:20:16.000000000 +0700 +++ src/decoder/ffmpeg_decoder_plugin.c 2013-09-28 13:25:06.000000000 +0700 @@ -47,6 +47,8 @@ #undef G_LOG_DOMAIN #define G_LOG_DOMAIN "ffmpeg" +#define MAX_AUDIO_FRAME_SIZE 192000 + static GLogLevelFlags level_ffmpeg_to_glib(int level) { @@ -299,11 +301,11 @@ #endif #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(53,25,0) - uint8_t aligned_buffer[(AVCODEC_MAX_AUDIO_FRAME_SIZE * 3) / 2 + 16]; + uint8_t aligned_buffer[(MAX_AUDIO_FRAME_SIZE * 3) / 2 + 16]; const size_t buffer_size = sizeof(aligned_buffer); #else /* libavcodec < 0.8 needs an aligned buffer */ - uint8_t audio_buf[(AVCODEC_MAX_AUDIO_FRAME_SIZE * 3) / 2 + 16]; + uint8_t audio_buf[(MAX_AUDIO_FRAME_SIZE * 3) / 2 + 16]; size_t buffer_size = sizeof(audio_buf); int16_t *aligned_buffer = align16(audio_buf, &buffer_size); #endif }}} -- Ticket URL: <https://trac.macports.org/ticket/40605#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#40605: mpd 0.17.5 fails to build due to ffmpeg AVCODEC_MAX_AUDIO_FRAME_SIZE missing -----------------------+----------------------------- Reporter: lwarxx@… | Owner: rmstonecipher@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: mpd | -----------------------+----------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => rmstonecipher@… * port: => mpd -- Ticket URL: <https://trac.macports.org/ticket/40605#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#40605: mpd 0.17.5 fails to build due to ffmpeg AVCODEC_MAX_AUDIO_FRAME_SIZE missing -----------------------+----------------------------- Reporter: lwarxx@… | Owner: rmstonecipher@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: mpd | -----------------------+----------------------------- Comment (by macsforever2000@…): This is similar to #40581 in gpac and is due to the move to ffmpeg 2.0. -- Ticket URL: <https://trac.macports.org/ticket/40605#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#40605: mpd 0.17.5 fails to build due to ffmpeg AVCODEC_MAX_AUDIO_FRAME_SIZE missing -----------------------+----------------------------- Reporter: lwarxx@… | Owner: rmstonecipher@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: mpd | -----------------------+----------------------------- Comment (by devans@…): See fix in upstream git master [http://git.musicpd.org/cgit/master/mpd.git/commit/?id=3f846cf6b86d0b9f0fe500... here] -- Ticket URL: <https://trac.macports.org/ticket/40605#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#40605: mpd 0.17.5 fails to build due to ffmpeg AVCODEC_MAX_AUDIO_FRAME_SIZE missing -----------------------+----------------------------- Reporter: lwarxx@… | Owner: rmstonecipher@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: mpd | -----------------------+----------------------------- Comment (by lwarxx@…): It looks like current upstream is rewritten using C++. Upstream patch can not be applied to released version. -- Ticket URL: <https://trac.macports.org/ticket/40605#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#40605: mpd 0.17.5 fails to build due to ffmpeg AVCODEC_MAX_AUDIO_FRAME_SIZE missing -----------------------+----------------------------- Reporter: lwarxx@… | Owner: rmstonecipher@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: fixed | Keywords: Port: mpd | -----------------------+----------------------------- Changes (by devans@…): * status: new => closed * resolution: => fixed Comment: Fix committed in r111824. -- Ticket URL: <https://trac.macports.org/ticket/40605#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts