| View previous topic :: View next topic |
| Author |
Message |
dr_Fell Apprentice

Joined: 10 Nov 2004 Posts: 170 Location: Sosnowiec, Poland
|
Posted: Sat Jul 16, 2011 6:11 am Post subject: [WORKAROUND] amarok 2.4.1 crashing at start, emerge failed |
|
|
Suddenly my Amarok stopped to work (could be related to minor KDE upgrade).
| Code: |
michal@localhost ~ $ amarok
KGlobal::locale::Warning your global KLocale is being recreated with a valid main component instead of a fake component, this usually means you tried to call i18n related functions before your main component was created. You should not do that since it most likely will not work
unnamed app(21505): Communication problem with "amarok" , it probably crashed.
Error message was: "org.freedesktop.DBus.Error.NoReply" : " "Message did not receive a reply (timeout by message bus)" "
KCrash: Application 'amarok' crashing...
KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi from kdeinit
sock_file=/home/michal/.kde4/socket-localhost/kdeinit4__0
QSocketNotifier: Invalid socket 17 and type 'Read', disabling...
michal@localhost ~ $
|
When I try to reemerge it crashes:
| Code: |
[ 96%] Building CXX object src/core-impl/collections/db/sql/mysqlecollection/CMakeFiles/amarok_collection-mysqlecollection.dir/__/mysql-shared/MySqlStorage.o
/var/tmp/portage/media-sound/amarok-2.4.1/work/amarok-2.4.1/src/core-impl/collections/db/sql/mysql-shared/MySqlStorage.cpp:31:19: fatal error: mysql.h: No such file or directory
compilation terminated.
make[2]: *** [src/core-impl/collections/db/sql/mysqlecollection/CMakeFiles/amarok_collection-mysqlecollection.dir/__/mysql-shared/MySqlStorage.o] Error 1
make[1]: *** [src/core-impl/collections/db/sql/mysqlecollection/CMakeFiles/amarok_collection-mysqlecollection.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 96%] Building CXX object src/services/opmldirectory/CMakeFiles/amarok_service_opmldirectory.dir/OpmlDirectoryModel.o
[ 96%] Building CXX object src/services/magnatune/CMakeFiles/amarok_service_magnatunestore.dir/MagnatuneStore.o
[ 96%] Building CXX object src/services/opmldirectory/CMakeFiles/amarok_service_opmldirectory.dir/OpmlDirectoryView.o
[ 97%] Building CXX object src/services/magnatune/CMakeFiles/amarok_service_magnatunestore.dir/MagnatuneUrlRunner.o
[ 97%] Building CXX object src/services/magnatune/CMakeFiles/amarok_service_magnatunestore.dir/MagnatuneXmlParser.o
Linking CXX shared module ../../../lib/amarok_service_opmldirectory.so
[ 97%] Built target amarok_service_opmldirectory
Linking CXX shared module ../../../lib/amarok_service_magnatunestore.so
[ 97%] Built target amarok_service_magnatunestore
make: *** [all] Error 2
emake failed
* ERROR: media-sound/amarok-2.4.1 failed (compile phase):
* Make failed!
*
* Call stack:
* ebuild.sh, line 56: Called src_compile
* environment, line 4117: Called kde4-base_src_compile
* environment, line 3203: Called cmake-utils_src_compile
* environment, line 1371: Called _execute_optionaly 'src_compile'
* environment, line 754: Called enable_cmake-utils_src_compile
* environment, line 1622: Called cmake-utils_src_make
* environment, line 1390: Called die
* The specific snippet of code:
* emake "$@" || die "Make failed!";
*
* If you need support, post the output of 'emerge --info =media-sound/amarok-2.4.1',
* the complete build log and the output of 'emerge -pqv =media-sound/amarok-2.4.1'.
* The complete build log is located at '/var/tmp/portage/media-sound/amarok-2.4.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-sound/amarok-2.4.1/temp/environment'.
* S: '/var/tmp/portage/media-sound/amarok-2.4.1/work/amarok-2.4.1'
|
| Code: |
Calculating dependencies... done!
[ebuild R ] media-sound/amarok-2.4.1 USE="cdda embedded opengl player semantic-desktop utils -daap -debug -handbook -ipod (-kdeenablefinal) -lastfm -mp3tunes -mtp -playdar -upnp" LINGUAS="de pl -bg -ca -cs -da -en_GB -es -et -eu -fi -fr -hu -it -ja -km -nb -nds -nl -pa -pt -pt_BR -ru -sl -sr -sr@latin -sv -th -tr -uk -wa -zh_TW" 0 kB
|
revdep-rebuild done - no results, all consistent
I am stuck - most informations, I managed to find, seem to be a bit outdated and related to bugs, that are already solved. I have found one topic about similar problem in polish language - but there's no solution there. I will be grateful for any suggestions.
Last edited by dr_Fell on Wed Jul 20, 2011 8:19 am; edited 1 time in total |
|
| Back to top |
|
 |
s_bernstein Apprentice

Joined: 11 Mar 2006 Posts: 172 Location: Bremen, Germany
|
Posted: Sat Jul 16, 2011 7:00 am Post subject: |
|
|
Some suggestions for you.
If amarok crashes on start it may have the following reasons:
- some parts of amarok are still running, so a restart or manual kill could help
- you've updated amarok and part of kde (esp. kdelibs) in the wrong order. try to update kdelibs, phonon-kde and kdemultimedia-kioslaves before updating amarok
Your build is crashing because mysql.h is missing. Maybe you've delete / unmerged mysql but amarok will need some parts of it |
|
| Back to top |
|
 |
dr_Fell Apprentice

Joined: 10 Nov 2004 Posts: 170 Location: Sosnowiec, Poland
|
Posted: Sat Jul 16, 2011 9:15 am Post subject: |
|
|
| s_bernstein wrote: | Some suggestions for you.
If amarok crashes on start it may have the following reasons:
- some parts of amarok are still running, so a restart or manual kill could help
|
No effect, I have this problem for some days and there were some restarts between attempts to run amarok.
| s_bernstein wrote: |
- you've updated amarok and part of kde (esp. kdelibs) in the wrong order. try to update kdelibs, phonon-kde and kdemultimedia-kioslaves before updating amarok
|
I did emerge --oneshot -av kdelibs phonon-kde kdemultimedia-kioslaves , then tried to emerge amarok - without success (the same error). I tried it after reemerging mysql, with
mysql.h existing in the system.
| s_bernstein wrote: |
Your build is crashing because mysql.h is missing. Maybe you've delete / unmerged mysql but amarok will need some parts of it |
As above - I have reemerged dev-db/mysql-5.1.58, and mysql.h exist:
| Code: | localhost michal # find / -name mysql.h
/usr/include/mysql/mysql.h
|
still the same errors when building / starting |
|
| Back to top |
|
 |
schachti Advocate


Joined: 28 Jul 2003 Posts: 3765 Location: Gifhorn, Germany
|
Posted: Sat Jul 16, 2011 9:53 am Post subject: |
|
|
Same problem here.  _________________ Never argue with an idiot. He brings you down to his level, then beats you with experience.
How-To: Daten verschlüsselt auf DVD speichern. |
|
| Back to top |
|
 |
phil_r Apprentice


Joined: 14 Mar 2006 Posts: 265 Location: Omaha, NE, USA
|
Posted: Sat Jul 16, 2011 7:01 pm Post subject: |
|
|
| schachti wrote: | Same problem here.  |
Me too.
What a surprise, Amarok failing due to an issue with MySQL. Who'd of thought it, with Gentoo's QA process?
Why the hell can't this kind of stuff be disabled with use keywords? I don't even use Ampache, which is the part of the build where Amarok's dying. Awesome.
[ 97%] Building CXX object src/services/ampache/CMakeFiles/amarok_service_ampache.dir/amarok_service_ampache_automoc.o
/tmp/portage/media-sound/amarok-2.4.1/work/amarok-2.4.1/src/core-impl/collections/db/sql/mysqlecollection/MySqlEmbeddedStorage.cpp: In constructor 'MySqlEmbeddedStorage::MySqlEmbeddedStorage(const QString&)':
/tmp/portage/media-sound/amarok-2.4.1/work/amarok-2.4.1/src/core-impl/collections/db/sql/mysqlecollection/MySqlEmbeddedStorage.cpp:86:31: warning: deprecated conversion from string constant to 'char*'
Linking CXX shared module ../../../../../../lib/amarok_collection-mysqlservercollection.so
Linking CXX shared module ../../../../../../lib/amarok_collection-mysqlecollection.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lmysqld
collect2: ld returned 1 exit status
make[2]: *** [lib/amarok_collection-mysqlecollection.so] Error 1
make[1]: *** [src/core-impl/collections/db/sql/mysqlecollection/CMakeFiles/amarok_collection-mysqlecollection.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 97%] Building CXX object src/services/ampache/CMakeFiles/amarok_service_ampache.dir/AmpacheService.o
Linking CXX shared module ../../../lib/amarok_service_opmldirectory.so
[ 97%] Built target amarok_collection-mysqlservercollection _________________ Just when you think you know the answers, I change the questions. |
|
| Back to top |
|
 |
i_hate_your_os Tux's lil' helper


Joined: 29 Aug 2002 Posts: 128 Location: Manhattan Beach, CA
|
Posted: Sat Jul 16, 2011 9:34 pm Post subject: |
|
|
| phil_r wrote: | | schachti wrote: | Same problem here.  |
Me too.
What a surprise, Amarok failing due to an issue with MySQL. Who'd of thought it, with Gentoo's QA process?
|
I see what you mean. When people just complain in the forums instead of filing bug reports, there is no hope for Gentoo's QA process.
| phil_r wrote: |
Why the hell can't this kind of stuff be disabled with use keywords? I don't even use Ampache, which is the part of the build where Amarok's dying. Awesome.
|
It can be disabled via keywords, the build is not failing in ampache, and it isn't awesome.
It's failing to find the mysql-server libraries (which seem to be in /usr/lib64/mysql instead of /usr/lib64; perhaps this changed recently) when you build with the "embedded" use-flag. Turn it off and it compiles, although if you choose to go this route you will need to move your amarok database into your system's mysql server. Instructions on how to migrate from mysql-embedded to server are available here, upstream. Unfortunately, so far, on my system, it still crashes. But it looks like something has gone haywire with my dbus and I haven't yet been able to reboot so ymmv.
Your only alternatives would be to:
- Run stable Gentoo by removing the "~" from ACCEPT_KEYWORDS in your /etc/make.conf, or by removing the mysql-server and amarok refspecs from your /etc/portage/package.keywords. If you are fed up with Gentoo's QA process it may be because you are running the unstable versions which are intended for developers and people who don't mind things breaking.
- Figure out the problem and fix it yourself (it would be nice if you told someone how you did it).
- File a bug report, throwing yourself upon the mercies of the Gentoo QA process which you apparently distrust.
- Try Ubuntu or some other Linux distribution. Perhaps Gentoo is not the best fit for your needs?
- Think of some creative solution to the problem that I haven't.
| phil_r wrote: |
[ 97%] Building CXX object src/services/ampache/CMakeFiles/amarok_service_ampache.dir/amarok_service_ampache_automoc.o
/tmp/portage/media-sound/amarok-2.4.1/work/amarok-2.4.1/src/core-impl/collections/db/sql/mysqlecollection/MySqlEmbeddedStorage.cpp: In constructor 'MySqlEmbeddedStorage::MySqlEmbeddedStorage(const QString&)':
/tmp/portage/media-sound/amarok-2.4.1/work/amarok-2.4.1/src/core-impl/collections/db/sql/mysqlecollection/MySqlEmbeddedStorage.cpp:86:31: warning: deprecated conversion from string constant to 'char*'
Linking CXX shared module ../../../../../../lib/amarok_collection-mysqlservercollection.so
Linking CXX shared module ../../../../../../lib/amarok_collection-mysqlecollection.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lmysqld
collect2: ld returned 1 exit status
make[2]: *** [lib/amarok_collection-mysqlecollection.so] Error 1
make[1]: *** [src/core-impl/collections/db/sql/mysqlecollection/CMakeFiles/amarok_collection-mysqlecollection.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 97%] Building CXX object src/services/ampache/CMakeFiles/amarok_service_ampache.dir/AmpacheService.o
Linking CXX shared module ../../../lib/amarok_service_opmldirectory.so
[ 97%] Built target amarok_collection-mysqlservercollection |
_________________ -IHYOS
"All laws which are repugnant to the constitution are null and void."
-Marbury vs. Madison, 5 US (2 Cranch) 137, 174, 176, (1803) |
|
| Back to top |
|
 |
mark_alec Bodhisattva


Joined: 11 Sep 2004 Posts: 6066 Location: Melbourne, Australia
|
Posted: Sun Jul 17, 2011 3:41 am Post subject: |
|
|
See bug 375063. It's being looked into, in the meantime, consider downgrading mysql to 5.1.56. _________________ www.gentoo.org.au || #gentoo-au |
|
| Back to top |
|
 |
i_hate_your_os Tux's lil' helper


Joined: 29 Aug 2002 Posts: 128 Location: Manhattan Beach, CA
|
Posted: Sun Jul 17, 2011 8:33 pm Post subject: |
|
|
Voilà!. Enjoy your workaround. _________________ -IHYOS
"All laws which are repugnant to the constitution are null and void."
-Marbury vs. Madison, 5 US (2 Cranch) 137, 174, 176, (1803) |
|
| Back to top |
|
 |
loopx Advocate


Joined: 01 Apr 2005 Posts: 2787 Location: Belgium / Liège
|
Posted: Mon Jul 18, 2011 4:32 pm Post subject: |
|
|
Got some compilation problem with last package of ~amd64 ... Don't know if it's the same problem as you ... I will simply wait a little  _________________ Mon MediaWiki perso : http://pix-mania.dyndns.org |
|
| Back to top |
|
 |
i_hate_your_os Tux's lil' helper


Joined: 29 Aug 2002 Posts: 128 Location: Manhattan Beach, CA
|
Posted: Tue Jul 19, 2011 5:20 am Post subject: |
|
|
| loopx wrote: | Got some compilation problem with last package of ~amd64 ... Don't know if it's the same problem as you ... I will simply wait a little  |
Patience and inaction: the easy workaround that will fix almost any Gentoo bug  _________________ -IHYOS
"All laws which are repugnant to the constitution are null and void."
-Marbury vs. Madison, 5 US (2 Cranch) 137, 174, 176, (1803) |
|
| Back to top |
|
 |
dr_Fell Apprentice

Joined: 10 Nov 2004 Posts: 170 Location: Sosnowiec, Poland
|
Posted: Wed Jul 20, 2011 8:17 am Post subject: |
|
|
| i_hate_your_os wrote: | Voilà!. Enjoy your workaround.
|
Are You sure this is the same problem ? It looks like, that they talk about problems with amarok compiled without embedded USE flag. For them, version compiled with embedded seem to work (unlike for me). Also when trying to start Amarok, they got other error than me.
| mark_alec wrote: | See bug 375063. It's being looked into, in the meantime, consider downgrading mysql to 5.1.56.
|
Downgraded. Works like a charm !
Thank You all ! I have my amarok back  |
|
| Back to top |
|
 |
the.root Apprentice


Joined: 29 Apr 2007 Posts: 210 Location: -84.706059324915, -62.4843750666430
|
Posted: Fri Jul 22, 2011 3:46 am Post subject: |
|
|
Hey, I had this problem recently. First it was crashing due to the
| Code: | | KGlobal::locale::Warning your global KLocale is being recreated with a valid main component instead of a fake component, this usually means you tried to call i18n related functions before your main component was created. You should not do that since it most likely will not work |
message.. I fixed that by going into (KDE) System Settings and changing the "Locale" settings : "Country" to "United States". It was originally set to blank ()..
As far as the failing to compile - mine was due to the embedded use flag. You can just convert it to an external mysql database, and unuse that flag with no problems.
Good luck! _________________ Ps = (1.5 x 6 x .75) / {(4/3) (pi) [(31.039 x 10^15) (46.5 x 10^9)]^3}
Seems like a waste.. |
|
| Back to top |
|
 |
|
|
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
|
|