Bug 243880 - build fails - linking issues
Summary: build fails - linking issues
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Nepomuk Feeder Agents (show other bugs)
Version: 4.5
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: Tobias Koenig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-07 20:18 UTC by tropikhajma
Modified: 2010-08-03 14:52 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
patch (420 bytes, patch)
2010-07-07 20:18 UTC, tropikhajma
Details

Note You need to log in before you can comment on or make changes to this bug.
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