Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trying to emerge masked package
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
wiktor00
n00b
n00b


Joined: 17 Jun 2012
Posts: 6
Location: Poland

PostPosted: Sun Jun 17, 2012 12:09 pm    Post subject: Trying to emerge masked package Reply with quote

Hello, I wanted to install amarok1.4 on Gentoo, so I have found ebuild here: http://git.overlays.gentoo.org/, than I created directory for overlays and add this to make.conf. Porthole don't show any of versions of this package and it's marked as masked. I add "=media-sound/amarok-1.4.10_p20090130-r5" to /etc/portage/package.unmask and when I tried to emerge it in terminal, I got this message:
Quote:
ERROR: media-sound/amarok-1.4.10_p20090130-r5 failed (depend phase):
* kde.eclass could not be found by inherit()
*
* Call stack:
* ebuild.sh, line 521: Called source '/usr/local/portage/media-sound/amarok/amarok-1.4.10_p20090130-r5.ebuild'
* amarok-1.4.10_p20090130-r5.ebuild, line 18: Called inherit 'kde'
* ebuild.sh, line 255: Called die
* The specific snippet of code:
* [ ! -e "$location" ] && die "${1}.eclass could not be found by inherit()"
*
* If you need support, post the output of 'emerge --info =media-sound/amarok-1.4.10_p20090130-r5',
* the complete build log and the output of 'emerge -pqv =media-sound/amarok-1.4.10_p20090130-r5'.
* This ebuild is from an overlay named 'x-portage': '/usr/local/portage/'
* S: '/var/tmp/portage/media-sound/amarok-1.4.10_p20090130-r5/work/amarok-1.4.10_p20090130'
... done!

]!!! All ebuilds that could satisfy "=media-sound/amarok-1.4.10_p20090130-r5" have been masked.
!!! One of the following masked packages is required to complete your request:
- media-sound/amarok-1.4.10_p20090130-r5::x-portage (masked by: corruption)


What have I done wrong? Or is it possible to emerge it at all?
Back to top
View user's profile Send private message
khayyam
Advocate
Advocate


Joined: 07 Jun 2012
Posts: 2245

PostPosted: Sun Jun 17, 2012 1:47 pm    Post subject: Reply with quote

wiktor00 ...

I suspect this ebuild is ancient, and using an eclass that nolonger exists. Besides this, 2.4.3-r1 (which is arch) and 2.5.0-r2 (which is ~arch) exist in portage and so 1.4.10_p20090130-r5 should be avoided.

HTH & best ...

khay
Back to top
View user's profile Send private message
wiktor00
n00b
n00b


Joined: 17 Jun 2012
Posts: 6
Location: Poland

PostPosted: Sun Jun 17, 2012 2:04 pm    Post subject: Reply with quote

I realize that amarok 1.4 is quite ancient, but personally I think that v.2.x sucks ;)
I've used 1.4.x version before on Ubuntu, Mint, Opensuse and Debian while it was not supported any more, but on those distros the only problem was to find packages.
My question is, is it possible to install it by portage and when it not. I will have to compile and install it on my own, but I think I will have some problems with dependences so compiling on my own is the last resort, but I'm afraid it is unavoidable :(
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1641

PostPosted: Sun Jun 17, 2012 2:41 pm    Post subject: Reply with quote

You should use the "kde-sunset" overlay, which contains all the old KDE 3 packages.

Have you considered media-sound/clementine? It's modern fork of Amarok 1.4.
_________________
“And even in authoritarian countries, information networks are helping people discover new facts and making governments more accountable.”– Hillary Clinton, Jan. 21, 2010
Back to top
View user's profile Send private message
wiktor00
n00b
n00b


Joined: 17 Jun 2012
Posts: 6
Location: Poland

PostPosted: Sun Jun 17, 2012 2:52 pm    Post subject: Reply with quote

Etal wrote:
You should use the "kde-sunset", which contains all the old KDE 3 packages.


I used this ebuild: http://git.overlays.gentoo.org/gitweb/?p=proj/kde-sunset.git;a=tree;f=media-sound/amarok;h=10917dc1700889991ec2151bfb93fb1985c83ba4;hb=da05c1e0cb17c1080c2144044ad5d8064d722b28
It's a part of kde-sunset, but I download and store on my overlay directory only "media-sound/amarok" directory. Should I use the whole tree? Not only amarok package but also thousands of rest packages?

Etal wrote:
Have you considered media-sound/clementine? It's modern fork of Amarok 1.4.

I considered Clementine some time ago, but it doesn't support MySQL databases :(
Back to top
View user's profile Send private message
yngwin
Developer
Developer


Joined: 19 Dec 2002
Posts: 4396
Location: Suzhou, China

PostPosted: Sun Jun 17, 2012 2:58 pm    Post subject: Reply with quote

You will need the whole overlay, including its eclasses and ebuilds for Qt3 and kdelibs-3. It's easiest to just add the overlay with layman.
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
wiktor00
n00b
n00b


Joined: 17 Jun 2012
Posts: 6
Location: Poland

PostPosted: Thu Jun 21, 2012 10:18 am    Post subject: Reply with quote

yngwin wrote:
You will need the whole overlay, including its eclasses and ebuilds for Qt3 and kdelibs-3. It's easiest to just add the overlay with layman.


I've done everything as you said. While I was emerging amarok with these USE flags: +mp4, +mysql, +opengl, -amazon, -postgres, -visualization, -ipod, -ifp, -njb, -mtp, -musicbrainz, -daap, -python, -debug, -xinerama I got the message:
Quote:
* ERROR: media-sound/amarok-1.4.10_p20090130-r5 failed (compile phase):
* died running emake, kde_src_compile:make
*
* Call stack:
* ebuild.sh, line 85: Called src_compile
* environment, line 4545: Called kde_src_compile
* environment, line 3191: Called kde_src_compile 'all'
* environment, line 3206: Called kde_src_compile 'make'
* environment, line 3198: Called die
* The specific snippet of code:
* emake || die "died running emake, $FUNCNAME:make"
*
* If you need support, post the output of 'emerge --info =media-sound/amarok-1.4.10_p20090130-r5',
* the complete build log and the output of 'emerge -pqv =media-sound/amarok-1.4.10_p20090130-r5'.
* This ebuild used the following eclasses from overlays:
* /var/lib/layman/kde-sunset/eclass/kde.eclass
* /var/lib/layman/kde-sunset/eclass/kde-functions.eclass
* /var/lib/layman/kde-sunset/eclass/qt3.eclass
* This ebuild is from an overlay named 'kde-sunset': '/var/lib/layman/kde-sunset/'
* The complete build log is located at '/var/tmp/portage/media-sound/amarok-1.4.10_p20090130-r5/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-sound/amarok-1.4.10_p20090130-r5/temp/environment'.
* S: '/var/tmp/portage/media-sound/amarok-1.4.10_p20090130-r5/work/amarok-1.4.10'

>>> Failed to emerge media-sound/amarok-1.4.10_p20090130-r5, Log file:

>>> '/var/tmp/portage/media-sound/amarok-1.4.10_p20090130-r5/temp/build.log'

* Messages for package media-sound/amarok-1.4.10_p20090130-r5:

* ERROR: media-sound/amarok-1.4.10_p20090130-r5 failed (compile phase):
* died running emake, kde_src_compile:make
*
* Call stack:
* ebuild.sh, line 85: Called src_compile
* environment, line 4545: Called kde_src_compile
* environment, line 3191: Called kde_src_compile 'all'
* environment, line 3206: Called kde_src_compile 'make'
* environment, line 3198: Called die
* The specific snippet of code:
* emake || die "died running emake, $FUNCNAME:make"
*
* If you need support, post the output of 'emerge --info =media-sound/amarok-1.4.10_p20090130-r5',
* the complete build log and the output of 'emerge -pqv =media-sound/amarok-1.4.10_p20090130-r5'.
* This ebuild used the following eclasses from overlays:
* /var/lib/layman/kde-sunset/eclass/kde.eclass
* /var/lib/layman/kde-sunset/eclass/kde-functions.eclass
* /var/lib/layman/kde-sunset/eclass/qt3.eclass
* This ebuild is from an overlay named 'kde-sunset': '/var/lib/layman/kde-sunset/'
* The complete build log is located at '/var/tmp/portage/media-sound/amarok-1.4.10_p20090130-r5/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-sound/amarok-1.4.10_p20090130-r5/temp/environment'.
* S: '/var/tmp/portage/media-sound/amarok-1.4.10_p20090130-r5/work/amarok-1.4.10'

Everything else such as kdelibs etc. was emerged successfully. I also tried revdep-rebuild and everything is consistent.
I have no idea where is the problem.
Back to top
View user's profile Send private message
dol-sen
Developer
Developer


Joined: 30 Jun 2002
Posts: 2560
Location: Richmond, BC, Canada

PostPosted: Fri Jun 22, 2012 12:30 am    Post subject: Reply with quote

wiktor00 You didn't post the actual error which occurred earlier in the terminal output. Just the report of the error. It is usually best to find the actual error then start several lines before it to the final messages from emerge.
_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
wiktor00
n00b
n00b


Joined: 17 Jun 2012
Posts: 6
Location: Poland

PostPosted: Fri Jun 22, 2012 8:04 am    Post subject: Reply with quote

dol-sen wrote:
wiktor00 You didn't post the actual error which occurred earlier in the terminal output. Just the report of the error. It is usually best to find the actual error then start several lines before it to the final messages from emerge.


Here is part of .log file /var/tmp/portage/media-sound/amarok-1.4.10_p20090130-r5/temp/build.log,
Quote:
Good - your configure finished. Start make now

>>> Source configured.
>>> Compiling source in /var/tmp/portage/media-sound/amarok-1.4.10_p20090130-r5/work/amarok-1.4.10 ...
make -j5
make all-recursive
make[1]: Entering directory `/var/tmp/portage/media-sound/amarok-1.4.10_p20090130-r5/work/amarok-1.4.10'
Making all in amarok
make[2]: Entering directory `/var/tmp/portage/media-sound/amarok-1.4.10_p20090130-r5/work/amarok-1.4.10/amarok'
Making all in src
make[3]: Entering directory `/var/tmp/portage/media-sound/amarok-1.4.10_p20090130-r5/work/amarok-1.4.10/amarok/src'
Making all in amarokcore
make[4]: Entering directory `/var/tmp/portage/media-sound/amarok-1.4.10_p20090130-r5/work/amarok-1.4.10/amarok/src/amarokcore'
/usr/kde/3.5/bin/kconfig_compiler ./amarok.kcfg ./amarokconfig.kcfgc; ret=$?; \
if test "$ret" != 0; then rm -f amarokconfig.h ; exit $ret ; fi
/usr/qt/3/bin/moc ./amarokdcophandler.h -o amarokdcophandler.moc
/usr/kde/3.5/bin/dcopidl ./amarokdcopiface.h > amarokdcopiface.kidl || ( rm -f amarokdcopiface.kidl ; false )
/usr/kde/3.5/bin/dcopidl2cpp --c++-suffix cpp --no-signals --no-stub amarokdcopiface.kidl
/bin/sh ../../../libtool --silent --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../amarok/src -I../../../amarok/src/amarokcore -I../../../amarok/src -I../../../amarok/src/engine -I../../../amarok/src/plugin -I../../../amarok/src/statusbar -I../../../amarok/src/mediadevice -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=native -O2 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o amarokdcophandler.lo amarokdcophandler.cpp
/bin/sh ../../../libtool --silent --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../amarok/src -I../../../amarok/src/amarokcore -I../../../amarok/src -I../../../amarok/src/engine -I../../../amarok/src/plugin -I../../../amarok/src/statusbar -I../../../amarok/src/mediadevice -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=native -O2 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o crashhandler.lo crashhandler.cpp
/bin/sh ../../../libtool --silent --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../amarok/src -I../../../amarok/src/amarokcore -I../../../amarok/src -I../../../amarok/src/engine -I../../../amarok/src/plugin -I../../../amarok/src/statusbar -I../../../amarok/src/mediadevice -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=native -O2 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o amarokconfig.lo amarokconfig.cpp
/bin/sh ../../../libtool --silent --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../amarok/src -I../../../amarok/src/amarokcore -I../../../amarok/src -I../../../amarok/src/engine -I../../../amarok/src/plugin -I../../../amarok/src/statusbar -I../../../amarok/src/mediadevice -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=native -O2 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o amarokdcopiface_skel.lo amarokdcopiface_skel.cpp
In file included from ../../../amarok/src/collectiondb.h:17:0,
from amarokdcophandler.cpp:27:
../../../amarok/src/threadmanager.h:100:41: warning: type qualifiers ignored on function return type
../../../amarok/src/threadmanager.h:196:36: warning: type qualifiers ignored on function return type
In file included from ../../../amarok/src/collectiondb.h:17:0,
from amarokdcophandler.cpp:27:
../../../amarok/src/threadmanager.h:417:31: warning: type qualifiers ignored on function return type
In file included from ../../../amarok/src/collectiondb.h:23:0,
from amarokdcophandler.cpp:27:
/usr/qt/3/include/qimage.h: In member function 'bool QImageTextKeyLang::operator<(const QImageTextKeyLang&) const':
/usr/qt/3/include/qimage.h:61:61: warning: suggest parentheses around '&&' within '||'
In file included from amarokdcophandler.cpp:36:0:
../../../amarok/src/osd.h: At global scope:
../../../amarok/src/osd.h:40:74: error: cannot call constructor 'QImage::QImage' directly
../../../amarok/src/osd.h:40:74: error: for a function-style cast, remove the redundant '::QImage'
crashhandler.cpp: In static member function 'static void Amarok::Crash::crashHandler(int)':
crashhandler.cpp:156:61: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result
In file included from ../../../amarok/src/playlistbrowser.h:14:0,
from amarokdcophandler.cpp:38:
../../../amarok/src/playlistbrowseritem.h:124:24: warning: type qualifiers ignored on function return type
../../../amarok/src/playlistbrowseritem.h:268:28: warning: type qualifiers ignored on function return type
../../../amarok/src/playlistbrowseritem.h:274:37: warning: type qualifiers ignored on function return type
../../../amarok/src/playlistbrowseritem.h:282:37: warning: type qualifiers ignored on function return type
../../../amarok/src/playlistbrowseritem.h:303:29: warning: type qualifiers ignored on function return type
../../../amarok/src/playlistbrowseritem.h:365:33: warning: type qualifiers ignored on function return type
../../../amarok/src/playlistbrowseritem.h:377:35: warning: type qualifiers ignored on function return type
../../../amarok/src/playlistbrowseritem.h:378:35: warning: type qualifiers ignored on function return type
../../../amarok/src/playlistbrowseritem.h:379:35: warning: type qualifiers ignored on function return type
../../../amarok/src/playlistbrowseritem.h:380:35: warning: type qualifiers ignored on function return type
../../../amarok/src/playlistbrowseritem.h:381:35: warning: type qualifiers ignored on function return type
../../../amarok/src/playlistbrowseritem.h:416:75: warning: type qualifiers ignored on function return type
../../../amarok/src/playlistbrowseritem.h:562:33: warning: type qualifiers ignored on function return type
make[4]: *** [amarokdcophandler.lo] Error 1
make[4]: *** Waiting for unfinished jobs...
make[4]: Exit directory `/var/tmp/portage/media-sound/amarok-1.4.10_p20090130-r5/work/amarok-1.4.10/amarok/src/amarokcore'
make[3]: *** [all-recursive] Error 1
make[3]: Exit directory `/var/tmp/portage/media-sound/amarok-1.4.10_p20090130-r5/work/amarok-1.4.10/amarok/src'
make[2]: *** [all-recursive] Error 1
make[2]: Exit directory `/var/tmp/portage/media-sound/amarok-1.4.10_p20090130-r5/work/amarok-1.4.10/amarok'
make[1]: *** [all-recursive] Error 1
make[1]: Exit directory `/var/tmp/portage/media-sound/amarok-1.4.10_p20090130-r5/work/amarok-1.4.10'
make: *** [all] Error 2
emake failed
* ERROR: media-sound/amarok-1.4.10_p20090130-r5 failed (compile phase):
* died running emake, kde_src_compile:make
*
* Call stack:
* ebuild.sh, line 85: Called src_compile
* environment, line 4543: Called kde_src_compile
* environment, line 3189: Called kde_src_compile 'all'
* environment, line 3204: Called kde_src_compile 'make'
* environment, line 3196: Called die
* The specific snippet of code:
* emake || die "died running emake, $FUNCNAME:make"
*
* If you need support, post the output of 'emerge --info =media-sound/amarok-1.4.10_p20090130-r5',
* the complete build log and the output of 'emerge -pqv =media-sound/amarok-1.4.10_p20090130-r5'.
* This ebuild used the following eclasses from overlays:
* /var/lib/layman/kde-sunset/eclass/kde.eclass
* /var/lib/layman/kde-sunset/eclass/kde-functions.eclass
* /var/lib/layman/kde-sunset/eclass/qt3.eclass
* This ebuild is from an overlay named 'kde-sunset': '/var/lib/layman/kde-sunset/'
* The complete build log is located at '/var/tmp/portage/media-sound/amarok-1.4.10_p20090130-r5/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-sound/amarok-1.4.10_p20090130-r5/temp/environment'.
* S: '/var/tmp/portage/media-sound/amarok-1.4.10_p20090130-r5/work/amarok-1.4.10'
Back to top
View user's profile Send private message
wiktor00
n00b
n00b


Joined: 17 Jun 2012
Posts: 6
Location: Poland

PostPosted: Wed Jul 04, 2012 9:59 am    Post subject: Reply with quote

Is compiling on my own is the only solution to my problem or will it also fail?
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 9066

PostPosted: Wed Jul 04, 2012 10:44 pm    Post subject: Reply with quote

Compiling system packages on your own is never a good idea. It will fail here. The problem is that the code uses an obsolete syntax that is disallowed by newer versions of gcc. The code will need to be changed to make it work.
Back to top
View user's profile Send private message
cappellaiomatto
n00b
n00b


Joined: 04 Sep 2010
Posts: 8

PostPosted: Sun Jul 08, 2012 1:58 pm    Post subject: Reply with quote

Actually is possible to enjoy amarok-1.4 in a modern Gentoo system. Possible but tricky. This is the combination of overlays/packages/flags I use in my amd64 computer:

Code:

equery g media-sound/amarok-1.4.10_p20090130-r5
 * Searching for amarok1.4.10_p20090130-r5 in media-sound ...

 * dependency graph for media-sound/amarok-1.4.10_p20090130-r5
 `--  media-sound/amarok-1.4.10_p20090130-r5  amd64
   `--  dev-lang/ruby-1.8.7_p358  (=dev-lang/ruby-1.8*) ~amd64
   `--  media-libs/taglib-1.7.2  (>=media-libs/taglib-1.4) amd64
   `--  media-libs/xine-lib-1.2.1-r1  (>=media-libs/xine-lib-1.1.2_pre20060328-r8) amd64
   `--  media-libs/libifp-1.0.0.2  (media-libs/libifp) amd64
   `--  media-libs/libgpod-0.8.0  (>=media-libs/libgpod-0.5.2) amd64
   `--  media-libs/libmp4v2-2.0.0  (media-libs/libmp4v2) amd64
   `--  media-libs/libmtp-1.1.1  (>=media-libs/libmtp-0.3.0) amd64
   `--  media-libs/tunepimp-0.5.3-r3  (media-libs/tunepimp) amd64
   `--  virtual/mysql-5.1  (>=virtual/mysql-4.0) amd64
   `--  media-libs/libnjb-2.2.6  (>=media-libs/libnjb-2.2.4) amd64
   `--  virtual/opengl-7.0  (virtual/opengl) amd64
   `--  dev-db/postgresql-base-9.1.4  (dev-db/postgresql-base) amd64
   `--  media-libs/alsa-lib-1.0.25-r1  (media-libs/alsa-lib) amd64
   `--  media-libs/libsdl-1.2.15  (media-libs/libsdl) amd64
   `--  media-plugins/libvisual-plugins-0.4.0-r2  (=media-plugins/libvisual-plugins-0.4*) amd64
   `--  kde-base/kdelibs-3.5.10-r10  (=kde-base/kdelibs-3.5*) ~amd64
   `--  x11-libs/qt-meta-3.3.8b-r2  (=x11-libs/qt-meta-3*) amd64
   `--  sys-devel/automake-1.9.6-r3  (=sys-devel/automake-1.9*) amd64
   `--  sys-devel/autoconf-2.68  (>=sys-devel/autoconf-2.68) amd64
   `--  sys-devel/libtool-2.4-r1  (sys-devel/libtool) amd64
   `--  sys-devel/make-3.82-r1  (sys-devel/make) amd64
   `--  dev-util/pkgconfig-0.26  (dev-util/pkgconfig) amd64
   `--  dev-lang/perl-5.12.4-r1  (dev-lang/perl) amd64
   `--  x11-libs/libXt-1.1.3  (x11-libs/libXt) amd64
   `--  x11-proto/xf86vidmodeproto-2.3.1  (x11-proto/xf86vidmodeproto) amd64
   `--  x11-proto/xineramaproto-1.2.1  (x11-proto/xineramaproto) amd64
   `--  app-arch/unzip-6.0-r1  (app-arch/unzip) amd64
   `--  www-servers/mongrel-1.1.5-r3  (www-servers/mongrel) amd64
   `--  dev-python/PyQt-3.18.1  (dev-python/PyQt) amd64
   `--  x11-libs/libXinerama-1.1.2  (x11-libs/libXinerama) amd64
[ media-sound/amarok-1.4.10_p20090130-r5 stats: packages (31), max depth (1) ]


I also need a couple of other packages from kde-sunset
Code:

emerge -pv =kde-base/konqueror-3.5.10 =kde-base/kcontrol-3.5.10-r1 =kde-base/kdelibs-3.5.10-r10

These are the packages that would be merged, in order:

Calculating dependencies                          ... done!     
[ebuild   R   ~] kde-base/kdelibs-3.5.10-r10::kde-sunset  USE="acl alsa -arts -avahi bindist -branding -cups -debug -doc -fam jpeg2k kdehiddenvisibility -kerberos -legacyssl -lua -openexr -spell -tiff -utempter" 0 kB
[ebuild   R   ~] kde-base/kcontrol-3.5.10-r1::kde-sunset  USE="-arts -debug -ieee1394 -joystick kdehiddenvisibility -logitech-mouse opengl" 0 kB
[ebuild   R    ] kde-base/konqueror-3.5.10::kde-sunset  USE="-branding -debug -java kdehiddenvisibility" 0 kB

Total: 3 packages (3 reinstalls), Size of downloads: 0 kB


Recently I added the following line in /etc/portage/package.use
Code:

net-dns/avahi::kde-sunset qt3


Code:

Calculating dependencies   ... done!                       
[ebuild   R    ] net-dns/avahi-0.6.28-r1::kde-sunset  USE="-autoipd -bookmarks dbus -doc gdbm gtk -howl-compat ipv6 -mdnsresponder-compat -mono -python qt3 qt4 -test" 0 kB



As I sternly resisted the dis-installation of this version of Amarok in the last years, I could miss some details right now, feel free to ask.
Back to top
View user's profile Send private message
ChadJoan
n00b
n00b


Joined: 17 Oct 2010
Posts: 18

PostPosted: Sun Nov 11, 2012 4:29 am    Post subject: Reply with quote

I am also a diehard Amarok 1.4 fan ;)

I have run into this problem as well. I don't have the logs anymore, but the error message I was having was very similar (if not identical) to what was posted here. This snippet comes to mind:
Code:

../../../amarok/src/osd.h: At global scope:
../../../amarok/src/osd.h:40:74: error: cannot call constructor 'QImage::QImage' directly
../../../amarok/src/osd.h:40:74: error: for a function-style cast, remove the redundant '::QImage'


The way I fixed it was to use gcc-config to select an older version of gcc. In particular, I chose 4.4.7. The one that failed was 4.5.4.

This can be done like so:
Code:

chad@Hugin ~/ $ gcc-config -l
 [1] x86_64-pc-linux-gnu-4.4.7
 [2] x86_64-pc-linux-gnu-4.4.7-hardenednopie
 [3] x86_64-pc-linux-gnu-4.4.7-hardenednopiessp
 [4] x86_64-pc-linux-gnu-4.4.7-hardenednossp
 [5] x86_64-pc-linux-gnu-4.4.7-vanilla
 [6] x86_64-pc-linux-gnu-4.5.4 *
 [7] x86_64-pc-linux-gnu-4.5.4-hardenednopie
 [8] x86_64-pc-linux-gnu-4.5.4-hardenednopiessp
 [9] x86_64-pc-linux-gnu-4.5.4-hardenednossp
 [10] x86_64-pc-linux-gnu-4.5.4-vanilla
chad@Hugin ~/ $ sudo gcc-config 1
 * Switching native-compiler to x86_64-pc-linux-gnu-4.4.7 ...
>>> Regenerating /etc/ld.so.cache...                                                                                                                    [ ok ]

 * If you intend to use the gcc from the new profile in an already
 * running shell, please remember to do:

 *   . /etc/profile

chad@Hugin ~/ $ gcc-config -l
 [1] x86_64-pc-linux-gnu-4.4.7 *
 [2] x86_64-pc-linux-gnu-4.4.7-hardenednopie
 [3] x86_64-pc-linux-gnu-4.4.7-hardenednopiessp
 [4] x86_64-pc-linux-gnu-4.4.7-hardenednossp
 [5] x86_64-pc-linux-gnu-4.4.7-vanilla
 [6] x86_64-pc-linux-gnu-4.5.4
 [7] x86_64-pc-linux-gnu-4.5.4-hardenednopie
 [8] x86_64-pc-linux-gnu-4.5.4-hardenednopiessp
 [9] x86_64-pc-linux-gnu-4.5.4-hardenednossp
 [10] x86_64-pc-linux-gnu-4.5.4-vanilla


Don't forget to set it back to the way it was when you're done. This change is system-wide. Outside of Amarok, you'll probably want to use the more recent gcc ;)

I then had a different kind of failure:
Code:

/bin/sh ../../libtool --silent --tag=CXX --mode=link x86_64-pc-linux-gnu-g++  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=x86-64 -mtune=nocona -O2 -finline-functions -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION   -Wl,-O1 -Wl,--as-needed -o libamarok.la -rpath /usr/kde/3.5/lib64 -L/usr/kde/3.5/lib64 -L/usr/qt/3/lib64 -L/usr/lib64    -R /usr/kde/3.5/lib64 -R /usr/kde/3.5/lib64 -R /usr/qt/3/lib64 -R /usr/lib64 actionclasses.lo app.lo atomicstring.lo atomicurl.lo browserbar.lo clicklineedit.lo collectionbrowser.lo collectiondb.lo columnlist.lo configdialog.lo contextbrowser.lo coverfetcher.lo covermanager.lo cuefile.lo deletedialog.lo deviceconfiguredialog.lo devicemanager.lo directorylist.lo dynamicmode.lo enginebase.lo enginecontroller.lo
engineobserver.lo equalizergraph.lo equalizerpresetmanager.lo equalizersetup.lo expression.lo fht.lo filebrowser.lo hintlineedit.lo htmlview.lo iconloader.lo k3bexporter.lo kbookmarkhandler.lo ktrm.lo lastfm.lo mediabrowser.lo mediadevicemanager.lo medium.lo mediumpluginmanager.lo metabundle.lo metabundlesaver.lo moodbar.lo mountpointmanager.lo multitabbar.lo mydiroperator.lo osd.lo pixmapviewer.lo playerwindow.lo playlist.lo playlistbrowser.lo playlistbrowseritem.lo playlistitem.lo playlistloader.lo playlistselection.lo playlistwindow.lo pluginmanager.lo podcastsettings.lo prettypopupmenu.lo queuemanager.lo refreshimages.lo scancontroller.lo scriptmanager.lo scrobbler.lo sliderwidget.lo smartplaylisteditor.lo socketserver.lo starmanager.lo statistics.lo systray.lo tagdialog.lo tagguesser.lo threadmanager.lo tooltip.lo trackpickerdialog.lo tracktooltip.lo transferdialog.lo xmlloader.lo xspfplaylist.lo editfilterdialog.lo Options1.lo Options2.lo Options4.lo Options5.lo Options7.lo Options8.lo dbsetup.lo
deletedialogbase.lo firstrunwizard.lo newdynamic.lo organizecollectiondialog.lo podcastsettingsbase.lo scriptmanagerbase.lo tagdialogbase.lo tagguesserconfigdialog.lo trackpickerdialogbase.lo ../../amarok/src/amarokcore/libamarokcore.la ../../amarok/src/analyzers/libanalyzers.la ../../amarok/src/plugin/libplugin.la ../../amarok/src/statusbar/libstatusbar.la ../../amarok/src/metadata/libmetadata.la ../../amarok/src/magnatunebrowser/libmagnatunebrowser.la -lkutils -lkio -lkdeui -lkdecore -lkhtml -lknewstuff -ltag   -lGL  ../../amarok/src/sqlite/libsqlite.la -ltunepimp   
/bin/sh ../../libtool --silent --tag=CXX --mode=link x86_64-pc-linux-gnu-g++  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=x86-64 -mtune=nocona -O2 -finline-functions -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION   -Wl,-O1 -Wl,--as-needed -o amarokapp -L/usr/kde/3.5/lib64 -L/usr/qt/3/lib64 -L/usr/lib64    -R /usr/kde/3.5/lib64 -R /usr/kde/3.5/lib64 -R /usr/qt/3/lib64 -R /usr/lib64 main.o ../../amarok/src/amarokcore/libamarokcore.la libamarok.la ../../amarok/src/analyzers/libanalyzers.la ../../amarok/src/plugin/libplugin.la ../../amarok/src/statusbar/libstatusbar.la ../../amarok/src/metadata/libmetadata.la -lkutils -lkio -lkdeui -lkdecore -lkhtml -lknewstuff -ltag   -lGL  ../../amarok/src/sqlite/libsqlite.la  -ltunepimp   
/usr/lib64/libtag.so: undefined reference to `std::_List_node_base::_M_unhook()@GLIBCXX_3.4.14'
/usr/lib64/libtag.so: undefined reference to `std::_List_node_base::_M_hook(std::_List_node_base*)@GLIBCXX_3.4.14'
/usr/lib64/libtag.so: undefined reference to `std::_List_node_base::_M_transfer(std::_List_node_base*, std::_List_node_base*)@GLIBCXX_3.4.14'
collect2: ld returned 1 exit status
make[4]: *** [amarokapp] Error 1
make[4]: Leaving directory `/var/tmp/portage/media-sound/amarok-1.4.10_p20090130-r5/work/amarok-1.4.10/amarok/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/media-sound/amarok-1.4.10_p20090130-r5/work/amarok-1.4.10/amarok/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-sound/amarok-1.4.10_p20090130-r5/work/amarok-1.4.10/amarok'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-sound/amarok-1.4.10_p20090130-r5/work/amarok-1.4.10'
make: *** [all] Error 2
emake failed
 * ERROR: media-sound/amarok-1.4.10_p20090130-r5 failed (compile phase):
 *   died running emake, kde_src_compile:make
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 4570:  Called kde_src_compile
 *   environment, line 3192:  Called kde_src_compile 'all'
 *   environment, line 3207:  Called kde_src_compile 'make'
 *   environment, line 3199:  Called die
 * The specific snippet of code:
 *                   emake || die "died running emake, $FUNCNAME:make"
 *
 * If you need support, post the output of `emerge --info '=media-sound/amarok-1.4.10_p20090130-r5'`,
 * the complete build log and the output of `emerge -pqv '=media-sound/amarok-1.4.10_p20090130-r5'`.
 * This ebuild used the following eclasses from overlays:
 *   /var/lib/layman/kde-sunset/eclass/kde.eclass
 *   /var/lib/layman/kde-sunset/eclass/kde-functions.eclass
 *   /var/lib/layman/kde-sunset/eclass/qt3.eclass
 * This ebuild is from an overlay named 'kde-sunset': '/var/lib/layman/kde-sunset/'
 * The complete build log is located at '/var/tmp/portage/media-sound/amarok-1.4.10_p20090130-r5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-sound/amarok-1.4.10_p20090130-r5/temp/environment'.
 * Working directory: '/var/tmp/portage/media-sound/amarok-1.4.10_p20090130-r5/work/amarok-1.4.10'
 * S: '/var/tmp/portage/media-sound/amarok-1.4.10_p20090130-r5/work/amarok-1.4.10'

>>> Failed to emerge media-sound/amarok-1.4.10_p20090130-r5, Log file:

>>>  '/var/tmp/portage/media-sound/amarok-1.4.10_p20090130-r5/temp/build.log'

 * Messages for package media-sound/amarok-1.4.10_p20090130-r5:

 * ERROR: media-sound/amarok-1.4.10_p20090130-r5 failed (compile phase):
 *   died running emake, kde_src_compile:make
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 4570:  Called kde_src_compile
 *   environment, line 3192:  Called kde_src_compile 'all'
 *   environment, line 3207:  Called kde_src_compile 'make'
 *   environment, line 3199:  Called die
 * The specific snippet of code:
 *                   emake || die "died running emake, $FUNCNAME:make"
 *
 * If you need support, post the output of `emerge --info '=media-sound/amarok-1.4.10_p20090130-r5'`,
 * the complete build log and the output of `emerge -pqv '=media-sound/amarok-1.4.10_p20090130-r5'`.
 * This ebuild used the following eclasses from overlays:
 *   /var/lib/layman/kde-sunset/eclass/kde.eclass
 *   /var/lib/layman/kde-sunset/eclass/kde-functions.eclass
 *   /var/lib/layman/kde-sunset/eclass/qt3.eclass
 * This ebuild is from an overlay named 'kde-sunset': '/var/lib/layman/kde-sunset/'
 * The complete build log is located at '/var/tmp/portage/media-sound/amarok-1.4.10_p20090130-r5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-sound/amarok-1.4.10_p20090130-r5/temp/environment'.
 * Working directory: '/var/tmp/portage/media-sound/amarok-1.4.10_p20090130-r5/work/amarok-1.4.10'
 * S: '/var/tmp/portage/media-sound/amarok-1.4.10_p20090130-r5/work/amarok-1.4.10'


I did an "equery belongs /usr/lib64/libtag.so" and found that it was media-libs/taglib that was responsible. I recompiled that (now up to version 1.7.2) and then recompiled amarok. It worked!

I thought I'd share this because it was a way to compile Amarok without altering my use flags or changing Amarok's code.

For maintenance sake and because @preserved-rebuild required me to do so, I later recompiled Amarok without the musicbrainz use flag. I'm told that Amarok's musicbrainz client is so out of date that it will no longer work. The musicbrainz use flag causes Amarok to depend on the tunepimp library which no longer exists in the portage tree.

Happy listening!
Back to top
View user's profile Send private message
cappellaiomatto
n00b
n00b


Joined: 04 Sep 2010
Posts: 8

PostPosted: Sun Nov 11, 2012 9:55 am    Post subject: Reply with quote

I didn't have any problems with gcc, and I have installed only one version

Code:
gcc-config -l
 [1] x86_64-pc-linux-gnu-4.5.4 *


Though I had to workaround a similar issue with Ruby: ruby18 is required for compilation, thereafter you can select ruby19 as your system version
Back to top
View user's profile Send private message
mv
Advocate
Advocate


Joined: 20 Apr 2005
Posts: 4238

PostPosted: Sun Nov 11, 2012 10:11 am    Post subject: Reply with quote

ChadJoan wrote:
Code:

../../../amarok/src/osd.h: At global scope:
../../../amarok/src/osd.h:40:74: error: cannot call constructor 'QImage::QImage' directly
../../../amarok/src/osd.h:40:74: error: for a function-style cast, remove the redundant '::QImage'

This error is very clear, isn't it? There is a line with QImage::Qimage(...) which should be replaced by the correct Qimage(...). Older versions of gcc were also accepting the wrong syntax, but newer versions don't (unless perhaps you force them by corresponding arguments which I would not recommend. Better fix the problem where it ought to be fixed: Patch amarok/src/osd.h)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum