You are not logged in.
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
Last edited by vertana (2009-02-04 01:24:26)
Offline
Add export CFLAGS="$CFLAGS -fPIC" and export CXXFLAGS="$CFLAGS" to the pkgbuild.
Last edited by Wintervenom (2009-01-31 19:09:42)
Offline
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
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
Offline