[Patch] Fix linking error in plasma workspace

Martin Jansa Martin.Jansa at mk.cvut.cz
Fri Dec 19 10:00:27 GMT 2008


Hi,

while building kdebase/workspace/plasma/scriptengines I get lots of unresolved symbols from 
${QT_QTXML_LIBRARY} which are used in static library ${QT_QTUITOOLS_LIBRARY}

This patch added ${QT_QTXML_LIBRARY} but its before QTUITOOLS
http://websvn.kde.org/trunk/KDE/kdebase/workspace/plasma/scriptengines/qtscript/CMakeLists.txt?r1=872339&r2=888087

If its build with --as-needed and --no-undefined it fails with lots of
/usr/lib/qt4/libQtUiTools.a(ui4.o): In function
`QFormInternal::DomCustomWidgets::read(QDomElement const&)':
(.text+0x3c814): undefined reference to `QDomNode::firstChild() const'

I tried to remove --no-undefined from LD_FLAGS for this build but its
still there (maybe detected from QT LD_FLAGS or something).

There is patch which only moves ${QT_QTXML_LIBRARY} just AFTER
${QT_QTUITOOLS_LIBRARY}.

Please apply, issue is confirmed and patch reviewed by gentoo-devs..

Regards

-- 
uin:136542059                jid:JaMa at jabber.mk.cvut.cz
Jansa Martin                 sip:jamasip at voip.wengo.fr 
JaMa                         
-------------- next part --------------
diff -uNr plasma-workspace-4.1.82/plasma/scriptengines/qtscript/CMakeLists.txt plasma-workspace-4.1.82.new/plasma/scriptengines/qtscript/CMakeLists.txt
--- plasma-workspace-4.1.82/plasma/scriptengines/qtscript/CMakeLists.txt	2008-12-09 12:20:32.000000000 +0100
+++ plasma-workspace-4.1.82.new/plasma/scriptengines/qtscript/CMakeLists.txt	2008-12-09 13:42:02.000000000 +0100
@@ -15,9 +15,9 @@
 target_link_libraries(plasma_scriptengine_qscript
                        ${KDE4_KDECORE_LIBS}
                        plasma
-                       ${QT_QTXML_LIBRARY}
                        ${QT_QTSCRIPT_LIBRARY}
                        ${QT_QTUITOOLS_LIBRARY}
+                       ${QT_QTXML_LIBRARY}
                        )
 
 install(TARGETS plasma_scriptengine_qscript
@@ -35,9 +35,9 @@
 target_link_libraries(plasma_runner_scriptengine_qscript
                        ${KDE4_KDECORE_LIBS}
                        plasma
-                       ${QT_QTXML_LIBRARY}
                        ${QT_QTSCRIPT_LIBRARY}
                        ${QT_QTUITOOLS_LIBRARY}
+                       ${QT_QTXML_LIBRARY}
                        )
 
 install(TARGETS plasma_runner_scriptengine_qscript
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20081219/b868c107/attachment.sig>


More information about the kde-core-devel mailing list