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

svn won't compile

Tags: None
(comma "," separated)
sach
Registered Member
Posts
4
Karma
0

svn won't compile

Mon May 04, 2009 12:56 pm
Hi, I'm trying to compile amarok from svn, but I get the following error

Code: Select all
[ 86%] [ 86%] Building CXX object amarok/src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/SqlCollectionAdaptor.o
Building CXX object amarok/src/services/magnatune/CMakeFiles/amarok_service_magnatunestore.dir/MagnatuneStore.o
Scanning dependencies of target amarok_service_jamendo
[ 86%] Building CXX object amarok/src/services/jamendo/CMakeFiles/amarok_service_jamendo.dir/JamendoService.o
Scanning dependencies of target amarok_service_ampache
[ 86%] Building CXX object amarok/src/services/ampache/CMakeFiles/amarok_service_ampache.dir/amarok_service_ampache_automoc.o
Linking CXX shared module ../../../../lib/libamarok_collection-sqlcollection.so
/usr/bin/ld: /usr/lib/mysql/libmysqld.a(net_serv.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/mysql/libmysqld.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [lib/libamarok_collection-sqlcollection.so] Errore 1
make[1]: *** [amarok/src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/all] Errore 2
make[1]: *** In attesa di lavori non terminati...



I've tried compiling different versions of mysql (5.1.30-32-34) but still get the same error every time.
Does anyone know what am i doing wrong?

Thanks all
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS

Re: svn won't compile

Sun May 10, 2009 8:52 am
sach wrote:Hi, I'm trying to compile amarok from svn

A bit more information would be nice: what distribution are you using?


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
mikkoc
Registered Member
Posts
25
Karma
0

Re: svn won't compile

Sun May 10, 2009 9:00 am
sach wrote:Linking CXX shared module ../../../../lib/libamarok_collection-sqlcollection.so
/usr/bin/ld: /usr/lib/mysql/libmysqld.a(net_serv.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC


Since you're on amd64 you need to recompile mysql with -fPIC
http://www.google.it/search?hl=it&q=ama ... erca&meta=
sach
Registered Member
Posts
4
Karma
0

Re: svn won't compile

Fri May 15, 2009 2:50 pm
Hi! Thanks for your help!
Apparently the error is caused by cmake that finds mysql in the wrong place....
How do I set it to search for it in /opt/mysql instead  of /usr/include ?

Thanks again


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]