This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Re: Gentoo, Amarok 2 and Mysql

Tags: None
(comma "," separated)
magge
Registered Member
Posts
8
Karma
0

Gentoo, Amarok 2 and Mysql

Thu Oct 16, 2008 8:36 am
Hello,

I'm on Gentoo (amd64), KDE 4.1.2. I tried to install Amarok 2 (from SVN) just a little while ago. This proved very difficult because:

Amarok demands that some MySQL client lib is compiled with -fPIC. I don't think I've any way of controlling that when installing the Mysql ebuild. I tried installing multiple times, one time even with CCFLAGS="-fPIC" - compiling the entire MySQL package with -fPIC (which is not recommended either).

I thought Mysql support in Amarok was optional? But I could not find any option to disable it. Anyway, it would be neat to have Mysql support too...

Could anyone advice on how I can get the latest Amarok installed? ...or does anyone know if theres a fix planned (either in Amarok, Gentoo or Mysql) that will improve the situation.

Sorry if my issue is allready solved and I didn't notice it, please RTFM me then
- I really just wanted to ask about this before starting on hours of compiling failing miserably like my last attempt.  :wink:

Thanks,
Magnus

Last edited by magge on Thu Oct 16, 2008 8:39 am, edited 1 time in total.
User avatar
dangle_wtf
Moderator
Posts
1252
Karma
0

Re: Gentoo, Amarok 2 and Mysql

Thu Oct 16, 2008 10:17 am
Did you enable the 'embedded' USE flag for mysql? If not, do this, re-emerge mysql, then re-emerge amarok svn.


"There are two theories to arguing with women. Neither one works."
.
If men could get pregnant, we'd learn the true meaning of "screaming nancyboy wuss"
magge
Registered Member
Posts
8
Karma
0

Re: Gentoo, Amarok 2 and Mysql

Thu Oct 16, 2008 10:33 am
Yes. The embedded USE flag has been enabled and mysql has been re-emerged.
I don't think -fPIC is related to this flag?
magge
Registered Member
Posts
8
Karma
0

Re: Gentoo, Amarok 2 and Mysql

Thu Oct 16, 2008 10:38 am
This Gentoo bug has some information and a possible workaround building an experimental Mysql package with -fPIC support.

http://bugs.gentoo.org/show_bug.cgi?id=238487

Maybe this one is not in the hands of the Amarok crew - but they are affected by this issue.
User avatar
dangle_wtf
Moderator
Posts
1252
Karma
0

Re: Gentoo, Amarok 2 and Mysql

Thu Oct 16, 2008 10:43 pm
As far as I was aware, the -fPIC thing wasn't an issue any more - what errors/messages are you getting, and where did you get the amarok svn ebuild? There are several different ebuilds floating around - the one in gentoo's kde4-live overlay works without any -fPIC magic...
Also, are you using exclusive 64bit, or multilib?


"There are two theories to arguing with women. Neither one works."
.
If men could get pregnant, we'd learn the true meaning of "screaming nancyboy wuss"
magge
Registered Member
Posts
8
Karma
0

Re: Gentoo, Amarok 2 and Mysql

Fri Oct 17, 2008 3:06 pm
Ok - since you're saying this might no longer be an issue I'll give it another go.

I'm using KDE 4.1.2 thats now in the Gentoo tree, so no overlays. I had some problems with the ebuild, so I've downloaded the SVN and ran cmake manually.

As for exclusive or multilib - I'm not sure how to tell... ? Sorry for the ignorance :)
xeonman9000
Registered Member
Posts
10
Karma
0

Re: Gentoo, Amarok 2 and Mysql

Sun Oct 19, 2008 1:55 am
I've just come across this very problem and found that adding the embedded USE flag solved it, Amarok 2 is compiling as I type :).
magge
Registered Member
Posts
8
Karma
0

Re: Gentoo, Amarok 2 and Mysql

Sun Oct 19, 2008 6:50 pm
xeonman9000 wrote:I've just come across this very problem and found that adding the embedded USE flag solved it, Amarok 2 is compiling as I type :).


Ok. I tried building after just manually checking out from SVN. Which is not a very Gentoo way to do things.
Where did you find an Amarok 2 ebuild? ...did you have to use an overlay?

Thanks,
Magnus
xeonman9000
Registered Member
Posts
10
Karma
0

Re: Gentoo, Amarok 2 and Mysql

Mon Oct 20, 2008 10:45 pm
Sorry I posted that a bit too soon. I recompiled MySQL with the embedded USE flag, downloaded the amarok beta release and managed to get past the cmake stage which I hadn't before I re-emerged MySQL, compilation then failed at about 96%.
magge
Registered Member
Posts
8
Karma
0

Re: Gentoo, Amarok 2 and Mysql

Mon Oct 20, 2008 11:17 pm
Yeah. That sounds like what I experienced. It's probably the -fPIC issue there.
Perhaps there's an ebuild in some overlay that has some config flag or something that fixes this.
Haven't had time to try it out any more yet - but my next step would probably be trying to add the kde4-live overlay (as mentioned by dangle earlier, see quote) and then hopefully be able to unmask and emerge only amarok 2 from it.

As far as I was aware, the -fPIC thing wasn't an issue any more - what errors/messages are you getting, and where did you get the amarok svn ebuild? There are several different ebuilds floating around - the one in gentoo's kde4-live overlay works without any -fPIC magic...
Also, are you using exclusive 64bit, or multilib?

Last edited by magge on Mon Oct 20, 2008 11:20 pm, edited 1 time in total.
xeonman9000
Registered Member
Posts
10
Karma
0

Re: Gentoo, Amarok 2 and Mysql

Mon Oct 20, 2008 11:42 pm
Here is the console output at the point at which it fails, if this is of any use to anyone:

Code: Select all
ction-ipodcollection.dir/IpodMeta.o
[ 92%] Building CXX object src/collection/ipodcollection/CMakeFiles/amarok_collection-ipodcollection.dir/IpodCollection.o
[ 92%] Building CXX object src/collection/ipodcollection/CMakeFiles/amarok_collection-ipodcollection.dir/IpodCollectionLocation.o
[ 92%] Building CXX object src/collection/ipodcollection/CMakeFiles/amarok_collection-ipodcollection.dir/handler/IpodHandler.o
/tmp/amarok-1.92.2/src/collection/ipodcollection/handler/IpodHandler.cpp: In member function 'void Ipod::IpodHandler::getCoverArt(Itdb_Track*, Meta::IpodTrackPtr)':
/tmp/amarok-1.92.2/src/collection/ipodcollection/handler/IpodHandler.cpp:1122: warning: missing sentinel in function call
Linking CXX shared module ../../../lib/libamarok_collection-ipodcollection.so
[ 92%] Built target amarok_collection-ipodcollection
Generating MtpCollectionLocation.moc
Generating mtpmeta.moc
Generating MtpCollection.moc
Generating moc_MtpHandler.cpp
Scanning dependencies of target amarok_collection-mtpcollection
[ 93%] Building CXX object src/collection/mtpcollection/CMakeFiles/amarok_collection-mtpcollection.dir/amarok_collection-mtpcollection_automoc.o
/tmp/amarok-1.92.2/src/collection/mtpcollection/handler/MtpHandler.h:66: error:'LIBMTP_raw_device_t' has not been declared
/tmp/amarok-1.92.2/src/collection/mtpcollection/handler/MtpHandler.h:158: error: 'LIBMTP_raw_device_t' has not been declared
/tmp/amarok-1.92.2/src/collection/mtpcollection/handler/MtpHandler.h:169: error: ISO C++ forbids declaration of 'LIBMTP_raw_device_t' with no type
/tmp/amarok-1.92.2/src/collection/mtpcollection/handler/MtpHandler.h:169: error: expected ';' before '*' token
make[2]: *** [src/collection/mtpcollection/CMakeFiles/amarok_collection-mtpcollection.dir/amarok_collection-mtpcollection_automoc.o] Error 1
make[1]: *** [src/collection/mtpcollection/CMakeFiles/amarok_collection-mtpcollection.dir/all] Error 2
make: *** [all] Error 2
magge
Registered Member
Posts
8
Karma
0

Re: Gentoo, Amarok 2 and Mysql

Tue Oct 21, 2008 12:15 am
Hm - but that looks like a syntax error. I might have to take back what I said about -fPIC in your case.  :)
magge
Registered Member
Posts
8
Karma
0

Re: Gentoo, Amarok 2 and Mysql

Tue Oct 21, 2008 6:01 am
I was able to build and install Amarok 2 Beta (v 1.90-r1) by:

- adding the "kde" overlay
Code: Select all
layman -a kde

- adding a portage keyword
Code: Select all
echo "media-sound/amarok ~amd64" >> /etc/portage/package.keywords

- emerging
Code: Select all
emerge -vat amarok


But download the SVN and compile directly with cmake gave me trouble.

KDE 4.1.2 is in the Gentoo tree, but as far as I can tell the latest Amarok version there is 1.4.10-r1. Theres also a version called 1.4.9999-r2, which I thought maybe was the latest 2-beta, but I wasn't able to unmask that (since I'm such a noob?). Anyways - an easy way to get the Amarok 2 beta is to add the overlay etc. I'm not sure if it's ideal.
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS

Re: Gentoo, Amarok 2 and Mysql

Tue Oct 21, 2008 4:33 pm
1.90 is Beta1.


--
Mark Kretschmann - Amarok Developer
d-fens
Registered Member
Posts
9
Karma
0

Re: Gentoo, Amarok 2 and Mysql

Tue Oct 28, 2008 12:57 pm
hi,

i'm kinda puzzled about the current situation in gentoo for amarok, as i am using 1.4.10-r1 and wanted to check the latest  svn state, but to no avail.
Code: Select all
[U] media-sound/amarok
     Available versions:
        (0)     1.4.8 1.4.9.1 (~)1.4.9.1-r1 1.4.10 (~)1.4.10-r1 [M](**)1.4.9999-r2
        (4.1)   [m](~)1.90 (~)1.90-r1 [m](**)1.92.2[1]

[1] "kde" /usr/portage/local/layman/kde-testing


i tried to emerge 1.92.2 (also -fpic mysql, but no help) from kde-testing which died like this

Code: Select all
Linking CXX shared module ../../../../lib/libqtscript_gui.so
[ 98%] Built target qtscript_gui
make: *** [all] Fehler 2


right now i'm unmerging 1.4.10 and trying 1.90-r1 as a file collision prevents the two installed at the same time (yes, they're supposed to be slotted, arghh)
Any idea how to get a 1.4.10 and amarok2-(beta,svn,whatever)  running at the same time? Where did the svn ebuild hide to?


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot], Yahoo [Bot]