You are not logged in.

#1 2009-01-31 18:57:08

vertana
Member
Registered: 2009-01-31
Posts: 26

[SOLVED]Can anybody help me with Amarok 2.0.1.1 please?

I'm on the 64-bit architecture and I'm installing Amarok 2.0.1.1 based on the AUR PKGBUILD. I've installed all the dependiencies (once again, going off the list in the pkgbuild and AUR site), but this compilation keeps failing at 85% with this error...

                
[ 85%] Building CXX object src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/XesamCollectionBuilder.o   
[ 85%] Building CXX object src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/SqlCollectionAdaptor.o     
Linking CXX shared module ../../../lib/libamarok_collection-sqlcollection.so                                                      
/usr/bin/ld: /usr/lib/mysql/libmysqld.a(client.o): relocation R_X86_64_32 against `mysql_server_last_error' 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] Error 1 
make[1]: *** [src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/all] Error 2                            
make: *** [all] Error 2                                          
==> ERROR: Build Failed.                                         
    Aborting...

If compiling with that flag above would really solve the problem (as opposed to be a quick/hacky solution) then how would I pass that (-fPIC) using makepkg? Thank you in advance for any help smile

Last edited by vertana (2009-02-04 01:24:26)

Offline

#2 2009-01-31 19:09:25

Wintervenom
Member
Registered: 2008-08-20
Posts: 1,011

Re: [SOLVED]Can anybody help me with Amarok 2.0.1.1 please?

Add export CFLAGS="$CFLAGS -fPIC" and export CXXFLAGS="$CFLAGS" to the pkgbuild.

Last edited by Wintervenom (2009-01-31 19:09:42)

Offline

#3 2009-01-31 19:21:18

vertana
Member
Registered: 2009-01-31
Posts: 26

Re: [SOLVED]Can anybody help me with Amarok 2.0.1.1 please?

Thanks for the fast reply! Just one last question, can this be added to the Amarok 2.0.1.1 pkgbuild or would it need to be added to the MySQL pkgbuild?

Offline

#4 2009-01-31 19:32:34

vertana
Member
Registered: 2009-01-31
Posts: 26

Re: [SOLVED]Can anybody help me with Amarok 2.0.1.1 please?

I take back my own question. You would put the above lines in the PKGBUILD of the MySQL package in abs and then compile/install that first. http://wiki.archlinux.org/index.php/ABS … use_ABS.3F   Thanks a lot Winter big_smile

Offline

Board footer

Powered by FluxBB