MySQLe link issue

Jeff Mitchell kde-dev at emailgoeshere.com
Tue Sep 23 19:50:18 CEST 2008


I'm on *32-bit* Gentoo, and I'm getting the following.  Note that this
is all the output with make VERBOSE=1, even though it only really shows
a warning and then errors out:

Linking CXX shared module ../../../lib/libamarok_collection-sqlcollection.so
cd /home/jmitchell/kde4svn/build/amarok/src/collection/sqlcollection &&
/usr/bin/cmake -E cmake_link_script
CMakeFiles/amarok_collection-sqlcollection.dir/link.txt --verbose=1
/usr/bin/c++  -fPIC  -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 -fvisibility=hidden -fvisibility-inlines-hidden -g3
-fno-inline -Wl,--enable-new-dtags -Wl,--fatal-warnings
-Wl,--no-undefined -lc  -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/SqliteCollection.oCMakeFiles/amarok_collection-sqlcollection.dir/__/__/sqlite/sqlite3.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/home/jmitchell/kde4svn/build/amarok/lib
-L/home/jmitchell/kde4svn/kde/lib -L/home/jmitchell/kde4svn/qt-copy/lib
-L/usr/lib/mysql ../../../lib/libamaroklib.so.1.0.0
../../../lib/libamarokpud.so.1.0.0
/home/jmitchell/kde4svn/kde/lib/libkdeui.so -lkdeui -lkdecore
/home/jmitchell/kde4svn/qt-copy/lib/libQtSvg.so
/home/jmitchell/kde4svn/qt-copy/lib/libQtNetwork.so
/home/jmitchell/kde4svn/qt-copy/lib/libQtXml.so
/home/jmitchell/kde4svn/qt-copy/lib/libQtGui.so
/home/jmitchell/kde4svn/kde/lib/libkio.so
/home/jmitchell/kde4svn/qt-copy/lib/libQtDBus.so
/home/jmitchell/kde4svn/qt-copy/lib/libQtCore.so -lpthread
/home/jmitchell/kde4svn/kde/lib/libthreadweaver.so -ldl
/usr/lib/mysql/libmysqld.a -lcrypt -lssl -lcrypto -lz
/home/jmitchell/kde4svn/kde/lib/libkdeui.so -lkdeui -lkdecore
/home/jmitchell/kde4svn/qt-copy/lib/libQtNetwork.so
/home/jmitchell/kde4svn/qt-copy/lib/libQtXml.so
/home/jmitchell/kde4svn/qt-copy/lib/libQtGui.so
/home/jmitchell/kde4svn/kde/lib/libkio.so
/home/jmitchell/kde4svn/qt-copy/lib/libQtCore.so -lpthread
/home/jmitchell/kde4svn/kde/lib/libthreadweaver.so -ldl
/usr/lib/mysql/libmysqld.a -lcrypt -lssl -lcrypto -lz
-Wl,-rpath,/home/jmitchell/kde4svn/build/amarok/lib:/home/jmitchell/kde4svn/kde/lib:/home/jmitchell/kde4svn/qt-copy/lib
-Wl,-rpath-link,/home/jmitchell/kde4svn/build/amarok/lib
/usr/lib/gcc/i686-pc-linux-gnu/4.2.4/../../../../i686-pc-linux-gnu/bin/ld:
warning: creating a DT_TEXTREL in object.
collect2: ld returned 1 exit status
make[2]: *** [lib/libamarok_collection-sqlcollection.so] Error 1
make[2]: Leaving directory `/home/jmitchell/kde4svn/build/amarok'
make[1]: ***
[src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/all]
Error 2
make[1]: Leaving directory `/home/jmitchell/kde4svn/build/amarok'
make: *** [all] Error 2


Anyone have any ideas?  Googling seems to show it being an -fPIC issue,
but I thought that wasn't the case on 32-bit systems.

--Jeff


More information about the Amarok-devel mailing list