Amarok trunk compilation issue: libmysqld.a and relocation R_X86_64_32
Dâniel Fraga
fragabr at gmail.com
Wed Sep 24 01:06:28 UTC 2008
Linux 2.6.26
gcc 4.3.2
Linking CXX shared module ../../../lib/libamarok_collection-sqlcollection.so
cd /usr/local/src/svn/amarok/b/src/collection/sqlcollection && /usr/local/bin/cmake -E cmake_link_script CMakeFiles/amarok_collection-sqlcollection.dir/link.txt --verbose=1
/usr/local/bin/c++ -fPIC -O2 -march=native -pipe -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -g3 -fno-inline -Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined -lc -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB/lib -shared -Wl,-soname,libamarok_collection-sqlcollection.so -o ../../../lib/libamarok_collection-sqlcollection.so CMakeFiles/amarok_collection-sqlcollection.dir/amarok_collection-sqlcollection_automoc.o CMakeFiles/amarok_collection-sqlcollection.dir/DatabaseUpdater.o CMakeFiles/amarok_collection-sqlcollection.dir/OrganizeCollectionDialog.o CMakeFiles/amarok_collection-sqlcollection.dir/ScanManager.o CMakeFiles/amarok_collection-sqlcollection.dir/ScanResultProcessor.o CMakeFiles/amarok_collection-sqlcollection.dir/SqlCollection.o CMakeFiles/amarok_collection-sqlcollection.dir/SqlCollectionDBusHandler.o CMakeFiles/amarok_collection-sqlcollection.dir/SqlCollectionLocation.o CMakeFiles/amarok_collection-sqlcollection.dir/SqlQueryMaker.o CMakeFiles/amarok_collection-sqlcollection.dir/SqlRegistry.o CMakeFiles/amarok_collection-sqlcollection.dir/SqlMeta.o CMakeFiles/amarok_collection-sqlcollection.dir/MySqlEmbeddedCollection.o CMakeFiles/amarok_collection-sqlcollection.dir/XesamDbus.o CMakeFiles/amarok_collection-sqlcollection.dir/XesamCollectionBuilder.o CMakeFiles/amarok_collection-sqlcollection.dir/SqlCollectionAdaptor.o -L/usr/local/src/svn/amarok/b/lib -L/usr/local/kde4/lib -L/usr/local/Trolltech/Qt-4.4.2/lib -L/usr/local/lib/mysql -L/usr/local/lib ../../../lib/libamaroklib.so.1.0.0 ../../../lib/libamarokpud.so.1.0.0 /usr/local/kde4/lib/libkdeui.so -lkdeui -lkdecore /usr/local/Trolltech/Qt-4.4.2/lib/libQtSvg.so /usr/local/Trolltech/Qt-4.4.2/lib/libQtNetwork.so /usr/local/Trolltech/Qt-4.4.2/lib/libQtXml.so /usr/local/Trolltech/Qt-4.4.2/lib/libQtGui.so /usr/local/kde4/lib/libkio.so /usr/local/Trolltech/Qt-4.4.2/lib/libQtDBus.so /usr/local/Trolltech/Qt-4.4.2/lib/libQtCore.so -lpthread /usr/local/kde4/lib/libthreadweaver.so /usr/local/lib/mysql/libmysqld.a /usr/local/lib/libz.a -lcrypt -lcrypto -lssl /usr/local/kde4/lib/libkdeui.so -lkdeui -lkdecore /usr/local/Trolltech/Qt-4.4.2/lib/libQtNetwork.so /usr/local/Trolltech/Qt-4.4.2/lib/libQtXml.so /usr/local/Trolltech/Qt-4.4.2/lib/libQtGui.so /usr/local/kde4/lib/libkio.so /usr/local/Trolltech/Qt-4.4.2/lib/libQtCore.so -lpthread /usr/local/kde4/lib/libthreadweaver.so /usr/local/lib/mysql/libmysqld.a /usr/local/lib/libz.a -lcrypt -lcrypto -lssl -Wl,-rpath,/usr/local/src/svn/amarok/b/lib:/usr/local/kde4/lib:/usr/local/Trolltech/Qt-4.4.2/lib -Wl,-rpath-link,/usr/local/src/svn/amarok/b/lib
/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.3.2/../../../../x86_64-unknown-linux-gnu/bin/ld: /usr/local/lib/mysql/libmysqld.a(array.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/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[2]: Leaving directory `/usr/local/src/svn/amarok/b'
make[1]: *** [src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/all] Error 2
make[1]: Leaving directory `/usr/local/src/svn/amarok/b'
make: *** [all] Error 2
***
Any hints? Thanks.
--
Linux 2.6.26: Rotary Wombat
http://u-br.net
http://www.soninha23.can.br
More information about the Amarok
mailing list