Summary: | x11-libs/qt-4.1.2 fails: relocation R_X86_64_PC32 against `mysql_debug' can not be used when making a shared object; recompile with -fPIC | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Christian Korff <christian.korff> |
Component: | New packages | Assignee: | Qt Bug Alias <qt> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | amd64 |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Christian Korff
2006-07-28 05:08:23 UTC
same with qt 3.3.6-r1: x86_64-pc-linux-gnu-g++ -c -pipe -I/usr/include/mysql -I/usr/include/postgresql/server -I/usr/include/postgresql/pgsql -I/usr/include/postgresql/pgsql/server -fno-exceptions -Wall -W -O2 -march=nocona -pipe -fno-strict-aliasing -D_REENTRANT -fPIC -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -DQT_SHARED -I/var/tmp/portage/qt-3.3.6-r1/work/qt-x11-free-3.3.6/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I../../../../include -I/usr/include -I.moc/release-shared-mt/ -o .obj/qsql_mysql.o ../../../../src/sql/drivers/mysql/qsql_mysql.cpp test -d ../../../sqldrivers/ || mkdir -p ../../../sqldrivers/ rm -f libqsqlmysql.so x86_64-pc-linux-gnu-g++ -fno-exceptions -shared -o libqsqlmysql.so .obj/main.o .obj/qsql_mysql.o -L/usr/lib64 -L/usr/lib64/mysql -L/var/tmp/portage/qt-3.3.6-r1/work/qt-x11-free-3.3.6/lib -L/usr/X11R6/lib64 -lmysqlclient -lqt-mt -lmng -ljpeg -lpng -lz -lXi -lXrender -lXrandr -lXcursor -lXinerama -lXft -lfreetype -lfontconfig -lXext -lX11 -lm -lSM -lICE -ldl -lpthread /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object. /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/mysql/libmysqlclient.a(libmysql.o): relocation R_X86_64_PC32 against `mysql_debug' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status make[3]: *** [../../../sqldrivers/libqsqlmysql.so] Error 1 make[3]: Leaving directory `/var/tmp/portage/qt-3.3.6-r1/work/qt-x11-free-3.3.6/plugins/src/sqldrivers/mysql' make[2]: *** [sub-mysql] Error 2 make[2]: Leaving directory `/var/tmp/portage/qt-3.3.6-r1/work/qt-x11-free-3.3.6/plugins/src/sqldrivers' make[1]: *** [sub-sqldrivers] Error 2 make[1]: Leaving directory `/var/tmp/portage/qt-3.3.6-r1/work/qt-x11-free-3.3.6/plugins/src' make: *** [sub-plugins] Error 2 !!! ERROR: x11-libs/qt-3.3.6-r1 failed. Call stack: ebuild.sh, line 1539: Called dyn_compile ebuild.sh, line 939: Called src_compile qt-3.3.6-r1.ebuild, line 207: Called die !!! (no error message) !!! If you need support, post the topmost build error, and the call stack if relevant. Your error is: /usr/lib64/mysql/libmysqlclient_r.a(libmysql.o): relocation R_X86_64_PC32 against `mysql_debug' can not be used when making a shared object; recompile with -fPIC So, that seems more like something wrong with your mysql than with qt. I'd try a re-emerge of mysql. Likely a dup of 78720 seems to be more like bug 88360 to me. did you compile mysql with the static USE flag? if not, please reopen this bug *** This bug has been marked as a duplicate of 88360 *** Yes, I used the static use flag. However according to the MySQL bugreport ( http://bugs.mysql.com/bug.php?id=8796 ) 4.1.11 and later should work. Since the other bug is not confirmed as closed I leave this to resolved duplicate but something seems to be wrong or different (In reply to comment #4) > Yes, I used the static use flag. > However according to the MySQL bugreport ( > http://bugs.mysql.com/bug.php?id=8796 ) 4.1.11 and later should work. If you have a closer look you can see that qt fails on libmysqlclient_r.a where the upstream bug is about libmysqlclient.a. I guess they simply forgot about the _r version, so the bug is only fixed half-way. We'll keep the other bug open to handle that because it's really the same issue just applied to two files |