Discussion:
Error when upgrading cmus
Paul Kramer
2011-10-11 01:42:09 UTC
Permalink
Hello, I am trying to upgrade cmus via Gentoo's portage tree and get the following compile error:

http://paste.pocoo.org/show/490806/

Any Idea on how to fix this?

Regards,
Paul
Gregory Petrosyan
2011-10-11 11:33:41 UTC
Permalink
Post by Paul Kramer
http://paste.pocoo.org/show/490806/
Quick fix will be to disable the ffmpeg input plugin :-)
Post by Paul Kramer
* Package: media-sound/cmus-2.4.2
* Applying cmus-2.4.2-ffmpeg.patch ...
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-sound/cmus/files/cmus-2.4.2-ffmpeg.patch?view=markup

Can you please try v2.4.2 without this patch, and -maint branch from
the git repository?

                Gregory
Johannes Weißl
2011-10-27 16:37:42 UTC
Permalink
Hi Paul,
Post by Paul Kramer
http://paste.pocoo.org/show/490806/
Any Idea on how to fix this?
Ok, really strange... it seems you are running a version of
libavutil < 51.5.0 which still has AV_DICT_IGNORE_SUFFIX defined.

Is the problem already solved? And if not, can you mail me your
/usr/include/libavformat/avformat.h and /usr/include/libavutil/avutil.h
?

@Gregory: A solution would be to not check for the version of libavutil,
but for the defined macro, e.g.:

diff --git a/ffmpeg.c b/ffmpeg.c
index e884274..27adacc 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -55,7 +55,7 @@
#endif
#endif

-#if (LIBAVUTIL_VERSION_INT < ((51<<16)+(5<<8)+0))
+#ifndef AV_DICT_IGNORE_SUFFIX
#define AV_DICT_IGNORE_SUFFIX AV_METADATA_IGNORE_SUFFIX
#define av_dict_get av_metadata_get
#define AVDictionaryEntry AVMetadataTag



Johannes

Loading...