Bug 243880

Summary: build fails - linking issues
Product: [Frameworks and Libraries] Akonadi Reporter: tropikhajma <tropikhajma>
Component: Nepomuk Feeder AgentsAssignee: Tobias Koenig <tokoe>
Status: RESOLVED FIXED    
Severity: normal CC: kdepim-bugs, vkrause
Priority: NOR    
Version: 4.5   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Solaris   
Latest Commit: Version Fixed In:
Attachments: patch

Description tropikhajma 2010-07-07 20:18:54 UTC
Created attachment 48665 [details]
patch

Version:           4.5 (using Devel) 
OS:                Solaris

building kdepim from svn fails with
...
Error while building C++ executable  "akonadi_nepomuk_email_feeder" in target akonadi_nepomuk_email_feeder. 
Undefined			first referenced
 symbol  			    in file
QScriptValue::~QScriptValue()          ../lib/libmessageviewer.so.0.1.0
QScriptValue::QScriptValue()          ../lib/libmessageviewer.so.0.1.0
QScriptValue::QScriptValue(const QScriptValue&)       ../lib/libmessageviewer.so.0.1.0
ld: fatal: symbol referencing errors. No output written to akonadi_nepomuk_email_feeder

the attached patch fixes that

this is on opensolaris b134 with the sun studio 12u1 compiler

Reproducible: Always
Comment 1 Tobias Koenig 2010-08-03 09:50:41 UTC
Hej,

is this still an issue? Could you find out which component/library is dragging in the QtScript dependency, please?
I checked it on a Linux system here and neither ldd nor nm on libmessageviewer shows a linkage against or a symbol from QtScript.

Ciao,
Tobias
Comment 2 tropikhajma 2010-08-03 13:27:35 UTC
it's still present, but it seems the problem stems from kdewebkit:

ldd -r builddir-SunOS-CMake-2.8.1-sunstudio-12.1-cmake-2.8.1/lib/libmessageviewer.so | c++filt
...
        symbol not found: QScriptValue::QScriptValue()          (builddir-SunOS-CMake-2.8.1-sunstudio-12.1-cmake-2.8.1/lib/libmessageviewer.so)
        symbol not found: QScriptValue::QScriptValue(const QScriptValue&)               (builddir-SunOS-CMake-2.8.1-sunstudio-12.1-cmake-2.8.1/lib/libmessageviewer.so)
        symbol not found: QScriptValue::~QScriptValue()         (builddir-SunOS-CMake-2.8.1-sunstudio-12.1-cmake-2.8.1/lib/libmessageviewer.so)
        symbol not found: QScriptValue::QScriptValue()          (/export/home/test/Dashboards/installs/2.8.1/kdelibs/lib/libkdewebkit.so.5)
        symbol not found: QScriptValue::QScriptValue(const QScriptValue&)               (/export/home/test/Dashboards/installs/2.8.1/kdelibs/lib/libkdewebkit.so.5)
        symbol not found: QScriptValue::~QScriptValue()         (/export/home/test/Dashboards/installs/2.8.1/kdelibs/lib/libkdewebkit.so.5)
Comment 3 Tobias Koenig 2010-08-03 14:52:36 UTC
SVN commit 1158690 by tokoe:

Link against QtScript to make it compile on OpenSolaris

BUG: 243880


 M  +1 -0      CMakeLists.txt  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1158690