Opened 12 years ago
Closed 11 years ago
#37159 closed defect (fixed)
moc @2.4.4 -autojack +vorbis build breaks
Reported by: | dnied@… | Owned by: | eu@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.2 |
Keywords: | ffmpeg | Cc: | cody.eachann@… |
Port: | moc |
Description
Pasting relevant part of shell I/O. Full log is attached.
Mac OS X 10.6.8, Intel Core2 Duo.
~# port -vc install moc -autojack +vorbis [...] make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_moc/moc/work/moc-2.4.4/decoder_plugins/sndfile' Making all in ffmpeg make[3]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_moc/moc/work/moc-2.4.4/decoder_plugins/ffmpeg' if /bin/sh ../../libtool --tag=CC --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I. -I../.. -I/opt/local/include -I/opt/local/include -I../.. -pipe -O2 -arch x86_64 -Wall -W -I/opt/local/include -g -I/opt/local/include -I/opt/local/include -MT libffmpeg_decoder_la-ffmpeg.lo -MD -MP -MF ".deps/libffmpeg_decoder_la-ffmpeg.Tpo" -c -o libffmpeg_decoder_la-ffmpeg.lo `test -f 'ffmpeg.c' || echo './'`ffmpeg.c; \ then mv -f ".deps/libffmpeg_decoder_la-ffmpeg.Tpo" ".deps/libffmpeg_decoder_la-ffmpeg.Plo"; else rm -f ".deps/libffmpeg_decoder_la-ffmpeg.Tpo"; exit 1; fi libtool: compile: /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I. -I../.. -I/opt/local/include -I/opt/local/include -I../.. -pipe -O2 -arch x86_64 -Wall -W -I/opt/local/include -g -I/opt/local/include -I/opt/local/include -MT libffmpeg_decoder_la-ffmpeg.lo -MD -MP -MF .deps/libffmpeg_decoder_la-ffmpeg.Tpo -c ffmpeg.c -fno-common -DPIC -o .libs/libffmpeg_decoder_la-ffmpeg.o ffmpeg.c:45: error: expected specifier-qualifier-list before ‘AVFormatParameters’ ffmpeg.c: In function ‘ffmpeg_info’: ffmpeg.c:68: error: ‘AVFormatParameters’ undeclared (first use in this function) ffmpeg.c:68: error: (Each undeclared identifier is reported only once ffmpeg.c:68: error: for each function it appears in.) ffmpeg.c:68: error: expected ‘;’ before ‘ap’ ffmpeg.c:72: error: ‘ap’ undeclared (first use in this function) ffmpeg.c:74: warning: implicit declaration of function ‘av_open_input_file’ ffmpeg.c:78: warning: ‘av_find_stream_info’ is deprecated (declared at /opt/local/include/libavformat/avformat.h:1446) ffmpeg.c:84: error: ‘AVFormatContext’ has no member named ‘track’ ffmpeg.c:85: error: ‘AVFormatContext’ has no member named ‘track’ ffmpeg.c:86: error: ‘AVFormatContext’ has no member named ‘title’ ffmpeg.c:87: error: ‘AVFormatContext’ has no member named ‘title’ ffmpeg.c:88: error: ‘AVFormatContext’ has no member named ‘author’ ffmpeg.c:89: error: ‘AVFormatContext’ has no member named ‘author’ ffmpeg.c:90: error: ‘AVFormatContext’ has no member named ‘album’ ffmpeg.c:91: error: ‘AVFormatContext’ has no member named ‘album’ ffmpeg.c: In function ‘ffmpeg_open’: ffmpeg.c:107: error: ‘struct ffmpeg_data’ has no member named ‘ok’ ffmpeg.c:109: error: ‘struct ffmpeg_data’ has no member named ‘error’ ffmpeg.c:110: error: ‘struct ffmpeg_data’ has no member named ‘ap’ ffmpeg.c:110: error: ‘struct ffmpeg_data’ has no member named ‘ap’ ffmpeg.c:110: error: ‘struct ffmpeg_data’ has no member named ‘ap’ ffmpeg.c:110: error: ‘struct ffmpeg_data’ has no member named ‘ap’ ffmpeg.c:110: error: ‘struct ffmpeg_data’ has no member named ‘ap’ ffmpeg.c:110: error: ‘struct ffmpeg_data’ has no member named ‘ap’ ffmpeg.c:112: error: ‘struct ffmpeg_data’ has no member named ‘ic’ ffmpeg.c:112: error: ‘struct ffmpeg_data’ has no member named ‘ap’ ffmpeg.c:114: error: ‘struct ffmpeg_data’ has no member named ‘error’ ffmpeg.c:118: warning: ‘av_find_stream_info’ is deprecated (declared at /opt/local/include/libavformat/avformat.h:1446) ffmpeg.c:118: error: ‘struct ffmpeg_data’ has no member named ‘ic’ ffmpeg.c:120: error: ‘struct ffmpeg_data’ has no member named ‘error’ ffmpeg.c:123: warning: ‘av_close_input_file’ is deprecated (declared at /opt/local/include/libavformat/avformat.h:1622) ffmpeg.c:123: error: ‘struct ffmpeg_data’ has no member named ‘ic’ ffmpeg.c:127: error: ‘struct ffmpeg_data’ has no member named ‘ic’ ffmpeg.c:128: error: ‘struct ffmpeg_data’ has no member named ‘ic’ ffmpeg.c:129: error: ‘struct ffmpeg_data’ has no member named ‘enc’ ffmpeg.c:129: error: ‘struct ffmpeg_data’ has no member named ‘ic’ ffmpeg.c:130: error: ‘struct ffmpeg_data’ has no member named ‘enc’ ffmpeg.c:130: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in this function) ffmpeg.c:136: error: ‘struct ffmpeg_data’ has no member named ‘error’ ffmpeg.c:138: warning: ‘av_close_input_file’ is deprecated (declared at /opt/local/include/libavformat/avformat.h:1622) ffmpeg.c:138: error: ‘struct ffmpeg_data’ has no member named ‘ic’ ffmpeg.c:143: error: ‘struct ffmpeg_data’ has no member named ‘enc’ ffmpeg.c:144: error: ‘struct ffmpeg_data’ has no member named ‘enc’ ffmpeg.c:146: error: ‘struct ffmpeg_data’ has no member named ‘codec’ ffmpeg.c:146: error: ‘struct ffmpeg_data’ has no member named ‘enc’ ffmpeg.c:147: error: ‘struct ffmpeg_data’ has no member named ‘codec’ ffmpeg.c:147: warning: ‘avcodec_open’ is deprecated (declared at /opt/local/include/libavcodec/avcodec.h:3569) ffmpeg.c:147: error: ‘struct ffmpeg_data’ has no member named ‘enc’ ffmpeg.c:147: error: ‘struct ffmpeg_data’ has no member named ‘codec’ ffmpeg.c:148: error: ‘struct ffmpeg_data’ has no member named ‘error’ ffmpeg.c:150: warning: ‘av_close_input_file’ is deprecated (declared at /opt/local/include/libavformat/avformat.h:1622) ffmpeg.c:150: error: ‘struct ffmpeg_data’ has no member named ‘ic’ ffmpeg.c:154: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf’ ffmpeg.c:155: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf_len’ ffmpeg.c:157: error: ‘struct ffmpeg_data’ has no member named ‘ok’ ffmpeg.c:158: error: ‘struct ffmpeg_data’ has no member named ‘bitrate’ ffmpeg.c:158: error: ‘struct ffmpeg_data’ has no member named ‘ic’ ffmpeg.c: In function ‘ffmpeg_close’: ffmpeg.c:167: error: ‘struct ffmpeg_data’ has no member named ‘ok’ ffmpeg.c:168: error: ‘struct ffmpeg_data’ has no member named ‘enc’ ffmpeg.c:169: warning: ‘av_close_input_file’ is deprecated (declared at /opt/local/include/libavformat/avformat.h:1622) ffmpeg.c:169: error: ‘struct ffmpeg_data’ has no member named ‘ic’ ffmpeg.c:171: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf’ ffmpeg.c:172: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf’ ffmpeg.c:175: error: ‘struct ffmpeg_data’ has no member named ‘error’ ffmpeg.c: In function ‘ffmpeg_seek’: ffmpeg.c:182: warning: unused variable ‘err’ ffmpeg.c:181: warning: unused variable ‘data’ ffmpeg.c:179: warning: unused parameter ‘sec’ ffmpeg.c: In function ‘put_in_remain_buf’: ffmpeg.c:202: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf_len’ ffmpeg.c:203: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf’ ffmpeg.c:204: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf’ ffmpeg.c:204: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf’ ffmpeg.c:204: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf’ ffmpeg.c:204: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf’ ffmpeg.c: In function ‘add_to_remain_buf’: ffmpeg.c:212: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf’ ffmpeg.c:212: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf’ ffmpeg.c:213: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf_len’ ffmpeg.c:214: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf’ ffmpeg.c:214: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf_len’ ffmpeg.c:214: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf’ ffmpeg.c:214: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf_len’ ffmpeg.c:214: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf’ ffmpeg.c:214: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf_len’ ffmpeg.c:214: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf’ ffmpeg.c:214: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf_len’ ffmpeg.c:215: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf_len’ ffmpeg.c:217: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf_len’ ffmpeg.c: In function ‘ffmpeg_decode’: ffmpeg.c:232: error: ‘struct ffmpeg_data’ has no member named ‘error’ ffmpeg.c:234: error: ‘struct ffmpeg_data’ has no member named ‘enc’ ffmpeg.c:235: error: ‘struct ffmpeg_data’ has no member named ‘enc’ ffmpeg.c:238: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf’ ffmpeg.c:239: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf_len’ ffmpeg.c:239: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf_len’ ffmpeg.c:243: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf’ ffmpeg.c:243: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf’ ffmpeg.c:245: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf_len’ ffmpeg.c:246: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf’ ffmpeg.c:246: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf’ ffmpeg.c:246: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf’ ffmpeg.c:246: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf_len’ ffmpeg.c:246: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf’ ffmpeg.c:246: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf’ ffmpeg.c:246: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf’ ffmpeg.c:246: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf_len’ ffmpeg.c:248: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf_len’ ffmpeg.c:252: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf’ ffmpeg.c:253: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf’ ffmpeg.c:254: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf_len’ ffmpeg.c:261: error: ‘struct ffmpeg_data’ has no member named ‘ic’ ffmpeg.c:273: warning: implicit declaration of function ‘avcodec_decode_audio’ ffmpeg.c:273: error: ‘struct ffmpeg_data’ has no member named ‘enc’ ffmpeg.c:279: error: ‘struct ffmpeg_data’ has no member named ‘error’ ffmpeg.c:311: error: ‘struct ffmpeg_data’ has no member named ‘bitrate’ ffmpeg.c:311: error: ‘struct ffmpeg_data’ has no member named ‘remain_buf_len’ ffmpeg.c: In function ‘ffmpeg_get_bitrate’: ffmpeg.c:323: error: ‘struct ffmpeg_data’ has no member named ‘bitrate’ ffmpeg.c: In function ‘ffmpeg_get_duration’: ffmpeg.c:330: error: ‘struct ffmpeg_data’ has no member named ‘ic’ ffmpeg.c:330: error: ‘struct ffmpeg_data’ has no member named ‘ic’ ffmpeg.c: In function ‘ffmpeg_get_error’: ffmpeg.c:363: error: ‘struct ffmpeg_data’ has no member named ‘error’ make[3]: *** [libffmpeg_decoder_la-ffmpeg.lo] Error 1 make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_moc/moc/work/moc-2.4.4/decoder_plugins/ffmpeg' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_moc/moc/work/moc-2.4.4/decoder_plugins' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_moc/moc/work/moc-2.4.4' make: *** [all] Error 2 make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_moc/moc/work/moc-2.4.4' Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_moc/moc/work/moc-2.4.4" && /usr/bin/make -j2 -w all Exit code: 2 Error: org.macports.build for port moc returned: command execution failed Warning: targets not executed for moc: org.macports.activate org.macports.build org.macports.destroot org.macports.install Please see the log file for port moc for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_moc/moc/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port moc failed Exit 1 ~# uname -a Darwin MiniMe.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386 ~#
Attachments (2)
Change History (8)
Changed 12 years ago by dnied@…
comment:1 Changed 12 years ago by jmroot (Joshua Root)
Keywords: | moc removed |
---|---|
Owner: | changed from macports-tickets@… to eu@… |
comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | cody.eachann@… added |
---|
As mentioned here, this old version of moc is too old for the new ffmpeg 1.0 that we have in MacPorts. In that thread, it is recommended that we update the moc port to version 2.5.0-beta1.
comment:3 Changed 11 years ago by gross.jonas@…
I've got the same configuration( Macbook 2.1(Intel Core Duo) - Mac OS X 10.6.8) and found a workaround:
sudo port install moc // fails sudo sed -i -e "s/configure.args --with-jack --without-vorbis/configure.args --with-jack --without-vorbis --without-ffmpeg/" /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/multimedia/moc/Portfile sudo port install moc
But "--with-jack" doesn't work. So you need to
jackd -d coreaudio
once before you start
mocp
.
I tried compiling Rev. 2529 (HEAD since 2013-04-11 for now), but
autoreconf -vis
but got
glibtoolize: `COPYING.LIB' not found in `/usr/bin/../share/libtool/libltdl' autoreconf: glibtoolize failed with exit status: 1
Any ideas?
comment:4 Changed 11 years ago by dbevans (David B. Evans)
I'm attaching a patch that updates the port to version 2.5.0-beta1 plus upstream patches to svn revision 2529 which introduces additional ffmpeg fixes. This builds for me using both the current ffmpeg-1.2.2 and the recently updated ffmpeg-devel (effectively ffmpeg-2.0). I have disabled the +autojack variant for now as it conflicts with the updated source (option -j is now used for other purposes). License and livecheck are also added.
Changed 11 years ago by dbevans (David B. Evans)
Attachment: | patch-moc-2.5.0-beta1.diff added |
---|
Proposed patch with ffmeg fixes
comment:5 Changed 11 years ago by dbevans (David B. Evans)
Proposed patch committed in r108945, maintainer timeout.
comment:6 Changed 11 years ago by dbevans (David B. Evans)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Please remember to Cc the maintainer.