Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 513448 - media-sound/amarok-2.8.0-r2 - In file included from ...work/amarok-2.8.0/src/musicbrainz/MusicDNSAudioDecoder.cpp:27: /usr/include/libavutil/common.h:30:2: error: #error missing -D__STDC_CONSTANT_MACROS / #define __STDC_CONSTANT_MACROS
Summary: media-sound/amarok-2.8.0-r2 - In file included from ...work/amarok-2.8.0/src/...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jorge Manuel B. S. Vicetto
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-16 09:16 UTC by jms
Modified: 2015-10-10 18:32 UTC (History)
2 users (show)

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


Attachments
amarok-2.8.0-r2.log.tar.gz (amarok-2.8.0-r2.log.tar.gz,70.41 KB, application/gzip-compressed-tar)
2014-06-16 09:25 UTC, jms
Details
environment (environment,148.77 KB, text/plain)
2014-06-16 09:27 UTC, jms
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jms 2014-06-16 09:16:06 UTC
amarok-2.8.0 fail to compile.was compiled previously without problem.

after update wastold to run 
emerge @preserved-rebuild
because:
!!! existing preserved libs:
>>> package: media-video/ffmpeg-2.2.3-r1
 *  - /usr/lib64/libavformat.so.54
 *  - /usr/lib64/libavformat.so.54.63.104
 *      used by /usr/lib64/gegl-0.2/ff-load.so (media-libs/gegl-0.2.0-r2)
 *      used by /usr/lib64/kde4/k3bffmpegdecoder.so (app-cdr/k3b-2.0.2_p20140225)
 *      used by /usr/lib64/libamaroklib.so.1.0.0 (media-sound/amarok-2.8.0-r2)
 *      used by 4 other files
 *  - /usr/lib64/libavcodec.so.54
 *  - /usr/lib64/libavcodec.so.54.92.100
 *      used by /usr/lib64/alsa-lib/libasound_module_pcm_a52.so (media-plugins/alsa-plugins-1.0.27-r3)
 *      used by /usr/lib64/alsa-lib/libasound_module_rate_lavcrate.so (media-plugins/alsa-plugins-1.0.27-r3)
 *      used by /usr/lib64/gegl-0.2/ff-load.so (media-libs/gegl-0.2.0-r2)
 *      used by 6 other files

rebuilding give me this:
/var/tmp/portage/media-sound/amarok-2.8.0-r2/work/amarok-2.8.0/src/musicbrainz/MusicDNSAudioDecoder.cpp: In member function ‘int MusicDNSAudioDecoder::decode(const QString&, DecodedAudioData*, int)’:
/var/tmp/portage/media-sound/amarok-2.8.0-r2/work/amarok-2.8.0/src/musicbrainz/MusicDNSAudioDecoder.cpp:226:36: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3422) [-Wdeprecated-declarations]
                     decodedFrame = avcodec_alloc_frame();
                                    ^
/var/tmp/portage/media-sound/amarok-2.8.0-r2/work/amarok-2.8.0/src/musicbrainz/MusicDNSAudioDecoder.cpp:226:56: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3422) [-Wdeprecated-declarations]
                     decodedFrame = avcodec_alloc_frame();
                                                        ^
/var/tmp/portage/media-sound/amarok-2.8.0-r2/work/amarok-2.8.0/src/musicbrainz/MusicDNSAudioDecoder.cpp:234:25: warning: ‘void avcodec_get_frame_defaults(AVFrame*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3432) [-Wdeprecated-declarations]
                         avcodec_get_frame_defaults( decodedFrame );
                         ^
/var/tmp/portage/media-sound/amarok-2.8.0-r2/work/amarok-2.8.0/src/musicbrainz/MusicDNSAudioDecoder.cpp:234:66: warning: ‘void avcodec_get_frame_defaults(AVFrame*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3432) [-Wdeprecated-declarations]
                         avcodec_get_frame_defaults( decodedFrame );
                                                                  ^
make[2]: *** [src/CMakeFiles/amaroklib.dir/musicbrainz/MusicDNSAudioDecoder.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/media-sound/amarok-2.8.0-r2/work/amarok-2.8.0_build'
make[1]: *** [src/CMakeFiles/amaroklib.dir/all] Error 2
make[1]: Leaving directory `/var/tmp/portage/media-sound/amarok-2.8.0-r2/work/amarok-2.8.0_build'
make: *** [all] Error 2
 * ERROR: media-sound/amarok-2.8.0-r2::gentoo failed (compile phase):
 *   emake failed
Comment 1 jms 2014-06-16 09:20:55 UTC
note I use multilib
and it´s about media-sound/amarok-2.8.0-r2


emerge --info amarok   
Portage 2.2.10 (default/linux/amd64/13.0/desktop/kde, gcc-4.8.3, glibc-2.17, 3.14.3-gentoo-jms-r9 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.14.3-gentoo-jms-r9-x86_64-Intel-R-_Core-TM-_i5-3210M_CPU_@_2.50GHz-with-gentoo-2.2
KiB Mem:     7675864 total,   3329724 free
KiB Swap:    8396796 total,   8395608 free
Timestamp of tree: Mon, 16 Jun 2014 07:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.3.3
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo pinkbyte gamerlay x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe "
DISTDIR="/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/portage"
PORTDIR_OVERLAY="/var/lib/layman/pinkbyte /var/lib/layman/gamerlay /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 ao avahi avx bash-completion berkdb bindist bluetooth branding bzip2 cairo cdaudio cdda cddb cdparanoia cdr cjk cli consolekit cracklib crypt css cups cxx dbus declarative dhcpcd dri dts dv dvb dvd dvdnav dvdr emboss encode evdev exif ffmpeg firefox flac fontconfig fortran gd gdbm gif gpm gtk gzip iconv icu imap inotify ipv6 jpeg jpeg2k kde kipi laptop lcms ldap libav libkms libnotify lzma lzo mad maildir matroska memlimit mhash mikmod mime mmap mmx mng mod modules motif mp3 mp4 mpeg mtp multilib mysql ncurse ncurses nls nptl ogg openal opengl openmp oss pam pango pcmcia pcre pdf phonon plasma png policykit ppds pulseaudio qt3support qt4 quicktime raw readline resolvconf scanner sdl semantic-desktop sematic-deskyop session smp spell sse sse2 sse4 sse4_1 sse4_2 ssl ssse3 startup-notification svg syslog taglib tcpd theora thumbnail tidy tiff truetype udev udisks unicode upower usb utf8 v4l v4l2 vaapi vcd vdpau video vim-syntax vorbis wifi win32codecs wxwidgets x x264 xcb xcomposit xcomposite xine xinerama xml xosd xpm xscreensaver xulrunner xv xvid xvmc zip zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB en es fr en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3 php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel nvidia modesetting" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

media-sound/amarok-2.8.0-r2 was built with the following:
USE="cdda handbook ipod lastfm mtp ofa opengl utils (-aqua) -debug -embedded -mp3tunes -nepomuk -test" LINGUAS="en_GB es fr -bs -ca -ca@valencia -cs -da -de -el -et -eu -fi -ga -gl -hu -it -ja -lt -lv -nb -nl -pa -pl -pt -pt_BR -ro -ru -sl -sr -sr@ijekavian -sr@ijekavianlatin -sr@latin -sv -tr -uk -zh_CN -zh_TW"
Comment 2 jms 2014-06-16 09:25:44 UTC
Created attachment 378994 [details]
amarok-2.8.0-r2.log.tar.gz
Comment 3 jms 2014-06-16 09:27:21 UTC
Created attachment 378996 [details]
environment
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2014-06-16 20:37:54 UTC
Comment on attachment 378994 [details]
amarok-2.8.0-r2.log.tar.gz

Why did you put a single file in a tar archive?
Comment 5 Michael Palimaka (kensington) gentoo-dev 2014-06-21 17:38:14 UTC
Which version of ffmpeg/libav and musicbrainz do you have?
Comment 6 jms 2014-06-21 18:32:19 UTC
Hi,
 eix -I musicbrainz
No matches found.
I thought muzicbrain was embeded in amarok

I don't have libav
eix -I libav
[I] sys-libs/libavc1394                                                                                                                                            
     Available versions:  0.5.3 0.5.4 0.5.4-r1 {static-libs ABI_MIPS="n32 n64 o32" ABI_X86="32 64 x32"}                                                            
     Installed versions:  0.5.4-r1(15:53:37 01/08/13)(-static-libs ABI_MIPS="-n32 -n64 -o32" ABI_X86="32 64 -x32")                                                 
     Homepage:            http://www.linux1394.org/ http://sourceforge.net/projects/libavc1394/                                                                    
     Description:         library for the 1394 Trade Association AV/C (Audio/Video Control) Digital Interface Command Set                                          
                                                 
as for ffmpeg 

[I] media-plugins/gst-plugins-ffmpeg
     Available versions:  (0.10) 0.10.13_p201211 0.10.13_p201211-r1 ~0.10.13_p201211-r2
       {+orc ABI_MIPS="n32 n64 o32" ABI_X86="32 64 x32"}
     Installed versions:  0.10.13_p201211-r1(0.10)(09:53:39 16/06/14)(orc)
     Homepage:            http://gstreamer.freedesktop.org/modules/gst-ffmpeg.html
     Description:         FFmpeg based gstreamer plugin

[I] media-video/ffmpeg
     Available versions:  
     (0.10) (~)0.10.12 ~0.10.13
     (0)    1.0.8 ~1.0.9 1.2.6 ~1.2.6-r1 ~2.2.2(0/52.55.55) ~2.2.3(0/52.55.55) (~)2.2.3-r1(0/52.55.55) **9999(0/52.55.55)
       {3dnow 3dnowext X aac aacplus alsa altivec amr amrenc armv5te armv6 armv6t2 armvfp avx avx2 bindist bluray +bzip2 cdio celt cpudetection debug dirac doc +encode examples faac fdk flite fma3 fma4 fontconfig frei0r gme gnutls gsm +hardcoded-tables +iconv iec61883 ieee1394 jack jpeg2k ladspa libass libcaca libsoxr libv4l mips32r2 mipsdspr1 mipsdspr2 mipsfpu mmx mmxext modplug mp3 neon +network openal opengl openssl opus oss pic pulseaudio quvi rtmp schroedinger sdl speex sse sse2 sse3 sse4 sse4_2 ssh ssse3 static-libs test theora threads truetype twolame v4l vaapi vdpau vis vorbis vpx wavpack webp x264 x265 xvid +zlib zvbi ABI_MIPS="n32 n64 o32" ABI_X86="32 64 x32" FFTOOLS="+aviocat +cws2fws +ffescape +ffeval +ffhash +fourcc2pixfmt +graph2dot +ismindex +pktdumper +qt-faststart +trasher"}
     Installed versions:  0.10.12(0.10)(11:54:51 15/05/14)(X aac alsa avx bindist bzip2 encode hardcoded-tables jpeg2k mmx mp3 network openal oss pulseaudio sdl ssse3 theora threads truetype v4l vaapi vdpau vorbis x264 xvid zlib -3dnow -3dnowext -aacplus -altivec -amr -cdio -celt -cpudetection -debug -dirac -doc -faac -frei0r -gnutls -gsm -ieee1394 -jack -libass -libv4l -mmxext -modplug -neon -openssl -pic -rtmp -schroedinger -speex -static-libs -test -vis -vpx ABI_MIPS="-n32 -n64 -o32" ABI_X86="32 64 -x32") 2.2.3-r1(19:26:33 15/06/14)(X aac alsa avx bindist bzip2 encode fontconfig hardcoded-tables iconv jpeg2k mmx mp3 network openal opengl opus oss pulseaudio sdl sse sse2 sse4 sse4_2 ssse3 theora threads truetype v4l vaapi vdpau vorbis x264 xvid zlib -3dnow -3dnowext -aacplus -altivec -amr -amrenc -armv5te -armv6 -armv6t2 -armvfp -avx2 -bluray -cdio -celt -cpudetection -debug -doc -examples -faac -fdk -flite -fma3 -fma4 -frei0r -gme -gnutls -gsm -iec61883 -ieee1394 -jack -ladspa -libass -libcaca -libsoxr -libv4l -mips32r2 -mipsdspr1 -mipsdspr2 -mipsfpu -mmxext -modplug -neon -openssl -pic -quvi -rtmp -schroedinger -speex -sse3 -ssh -static-libs -test -twolame -vpx -wavpack -webp -x265 -zvbi ABI_MIPS="-n32 -n64 -o32" ABI_X86="32 64 -x32" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart trasher")
     Homepage:            http://ffmpeg.org/
     Description:         Complete solution to record, convert and stream audio and video. Includes libavcodec.

[I] virtual/ffmpeg
     Available versions:  0.10.3 (~)9 (~)9-r1 {X +encode gsm jpeg2k mp3 opus sdl speex theora threads truetype vaapi vdpau x264 ABI_MIPS="n32 n64 o32" ABI_X86="32 64 x32"}
     Installed versions:  9-r1(19:26:51 15/06/14)(X encode jpeg2k mp3 opus sdl theora threads truetype vaapi vdpau x264 -gsm -speex ABI_MIPS="-n32 -n64 -o32" ABI_X86="32 64 -x32")
     Description:         Virtual package for FFmpeg implementation
Comment 7 jms 2014-07-22 17:19:55 UTC
so checking up a bit further into this.
Amarok now use libofa for musicbrainz (flag ofa)
I had this set

eix -I ofa
[I] media-libs/libofa
     Available versions:  0.9.3 0.9.3-r1 {ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  0.9.3-r1(05:50:02 22/07/14)(ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32")
     Homepage:            http://code.google.com/p/musicip-libofa/
     Description:         Open Fingerprint Architecture

I can't compile amarok with libofa with either 
media-libs/libofa-0.9.3 or media-libs/libofa-0.9.3-r1 
and with
media-video/ffmpeg-2.2.3-r1
media-sound/amarok-2.8.0-r2

and get the reported error.
Note that if removing the ofa flag amarok will build just fine of course.

and media-sound/amarok-2.8.0-r2 use="ofa" doesn't build with media-video/ffmpeg-2.2.4 + media-libs/libofa-0.9.3-r1
either ,same error
Comment 8 Michael Palimaka (kensington) gentoo-dev 2015-10-10 18:32:05 UTC
Is this still an issue for you? I wasn't able to reproduce, and the code path leading to the error seems to have changed.