Amarok fails to build with KDE 4.7. I solved the problem by copying media-sound/amarok to my local overlay, copying amarok-2.4.1.ebuild to amarok-2.4.1.90.ebuild, and downloading that version from: ftp://ftp.kde.org/pub/kde/unstable/amarok/2.4.1.90/src/amarok-2.4.1.90.tar.bz2 New version compiles without error. Here is the error from 2.4.1: Linking CXX shared module ../../../../lib/amarok_data_engine_upcomingEvents.so distcc[12765] ERROR: compile (null) on localhost failed In file included from /var/tmp/portage/media-sound/amarok-2.4.1/work/amarok-2.4.1/src/context/scriptengine/javascript/simplejavascriptapplet.cpp:43: /var/tmp/portage/media-sound/amarok-2.4.1/work/amarok-2.4.1/src/context/scriptengine/javascript/bind_dataengine.h:32: error: redefinition of 'struct QMetaTypeId<Plasma::Service*>' /usr/include/plasma/service.h:321: error: previous definition of 'struct QMetaTypeId<Plasma::Service*>' In file included from /var/tmp/portage/media-sound/amarok-2.4.1/work/amarok-2.4.1/src/context/scriptengine/javascript/simplejavascriptapplet.cpp:43: /var/tmp/portage/media-sound/amarok-2.4.1/work/amarok-2.4.1/src/context/scriptengine/javascript/bind_dataengine.h:33: error: redefinition of 'struct QMetaTypeId<Plasma::ServiceJob*>' /usr/include/KDE/Plasma/../../plasma/servicejob.h:136: error: previous definition of 'struct QMetaTypeId<Plasma::ServiceJob*>' make[2]: *** [src/context/scriptengine/javascript/CMakeFiles/amarok_appletscript_simple_javascript.dir/simplejavascriptapplet.o] Error 1 make[1]: *** [src/context/scriptengine/javascript/CMakeFiles/amarok_appletscript_simple_javascript.dir/all] Error 2 Reproducible: Always Steps to Reproduce: 1.Upgrade to KDE 4.7 2.emerge =media-sound/amarok-2.4.1 3. Actual Results: /var/tmp/portage/media-sound/amarok-2.4.1/work/amarok-2.4.1/src/context/scriptengine/javascript/bind_dataengine.h:32: error: redefinition of 'struct QMetaTypeId<Plasma::Service*>' /usr/include/plasma/service.h:321: error: previous definition of 'struct QMetaTypeId<Plasma::Service*>' Expected Results: >>> Installing (1 of 1) media-sound/amarok-2.4.1 * Updating icons cache ... [ ok ] * Updating desktop mime database ... * Updating shared mime info database ... >>> Auto-cleaning packages... The tarball for the new version is at: ftp://ftp.kde.org/pub/kde/unstable/amarok/2.4.1.90/src/amarok-2.4.1.90.tar.bz2
*** This bug has been marked as a duplicate of bug 373455 ***