Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 387017 - media-sound/cmus-2.4.2 - ffmpeg.c:459:51: error: 'AV_DICT_IGNORE_SUFFIX' undeclared (first use in this function)
Summary: media-sound/cmus-2.4.2 - ffmpeg.c:459:51: error: 'AV_DICT_IGNORE_SUFFIX' unde...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Christian Faulhammer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-13 08:19 UTC by Sven Müller
Modified: 2011-10-19 19:23 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Müller 2011-10-13 08:19:29 UTC
Hello, 

I tried to build cmus-2.4.2 on amd64. It fails to compile:

   CC     nomad.lo
   LD     mad.so
   CC     mpc.lo
   LD     mpc.so
   CC     vorbis.lo
   LD     vorbis.so
   CC     wavpack.lo
   LD     wavpack.so
   CC     wav.lo
   LD     wav.so
   CC     mp4.lo
   LD     mp4.so
   CC     aac.lo
   LD     aac.so
   CC     ffmpeg.lo
ffmpeg.c:60:0: warning: "AV_DICT_IGNORE_SUFFIX" redefined
/usr/include/libavutil/dict.h:29:0: note: this is the location of the previous definition
ffmpeg.c: In function 'ffmpeg_open':
ffmpeg.c:187:2: warning: 'av_open_input_file' is deprecated (declared at /usr/include/libavformat/avformat.h:1170)
ffmpeg.c: In function 'ffmpeg_read_comments':
ffmpeg.c:457:2: warning: 'AVMetadataTag' is deprecated (declared at /usr/include/libavutil/dict.h:36)
ffmpeg.c:459:2: warning: 'av_metadata_get' is deprecated (declared at /usr/include/libavformat/avformat.h:145)
ffmpeg.c:459:51: error: 'AV_DICT_IGNORE_SUFFIX' undeclared (first use in this function)
ffmpeg.c:459:51: note: each undeclared identifier is reported only once for each function it appears in
make: *** [ffmpeg.lo] Error 1
 * ERROR: media-sound/cmus-2.4.2 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of 'emerge --info =media-sound/cmus-2.4.2',
 * the complete build log and the output of 'emerge -pqv =media-sound/cmus-2.4.2'.
 * The complete build log is located at '/var/tmp/portage/media-sound/cmus-2.4.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-sound/cmus-2.4.2/temp/environment'.
 * S: '/var/tmp/portage/media-sound/cmus-2.4.2/work/cmus-v2.4.2'

According to http://comments.gmane.org/gmane.comp.audio.cmus.devel/490 I removed the ffmpeg patch and got it compiled with warnings:

  CC     prog.o
   CC     xmalloc.o
   CC     main.o
   CC     flac.lo
   CC     mad.lo
   CC     nomad.lo
   CC     modplug.lo
   CC     mpc.lo
   CC     vorbis.lo
   CC     wavpack.lo
   CC     wav.lo
   CC     mp4.lo
   CC     aac.lo
   CC     ffmpeg.lo
   CC     pulse.lo
   CC     oss.lo
ffmpeg.c: In function 'ffmpeg_open':
ffmpeg.c:173:2: warning: 'av_open_input_file' is deprecated (declared at /usr/include/libavformat/avformat.h:1170)
ffmpeg.c: In function 'ffmpeg_read_comments':
ffmpeg.c:430:2: warning: 'AVMetadataTag' is deprecated (declared at /usr/include/libavutil/dict.h:36)
ffmpeg.c:432:2: warning: 'av_metadata_get' is deprecated (declared at /usr/include/libavformat/avformat.h:145)
   CC     mixer_oss.lo
   CC     ao.lo
   HOSTCC     Doc/ttman.o
Doc/ttman.c: In function 'output_buf':
Doc/ttman.c:582:8: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result   CC     input.o

   LD     cmus-remote
   LD     flac.so
   LD     mad.so
   LD     modplug.so
   LD     mpc.so

So please check, if the ffmpeg patch could be removed for that version.

Reproducible: Always
Comment 1 Tim Harder gentoo-dev 2011-10-19 19:23:40 UTC
Fixed in CVS.